Table of Contents

Raspberry Pi I2S PCM5102A DAC Setup Guide

1. 개요

본 문서는 Raspberry Pi에서 PCM5102A (PCM5201 계열 포함) I2S DAC를 사용하기 위한 설정 방법을 정리한 것이다.
구성은 다음 두 단계로 이루어진다.

  1. config.txt 설정 (하드웨어 인식)
  2. asound.conf 설정 (ALSA 오디오 경로 및 볼륨 제어)

2. config.txt 설정

파일 위치:

/boot/firmware/config.txt

다음 내용을 추가한다.

dtparam=audio=off
dtparam=i2s=on
dtoverlay=hifiberry-dac

설명

설정 후 재부팅:

sudo reboot

3. 장치 확인

aplay -l

정상 출력 예:

card 1: sndrpihifiberry ...
device 0: ...

4. asound.conf 설정

파일 위치:

/etc/asound.conf

최종 설정:

pcm.softvol {
    type softvol
    slave.pcm "hw:CARD=sndrpihifiberry,DEV=0"
    control {
        name "PCM"
        card sndrpihifiberry
    }
    min_dB -50.0
    max_dB 0.0
}

pcm.!default {
    type plug
    slave.pcm "softvol"
}

ctl.!default {
    type hw
    card sndrpihifiberry
}

5. 설정 설명

5.1 softvol

5.2 plug

5.3 hw:CARD 지정


6. 사용 방법

재생

ogg123 file.ogg

볼륨 조절

amixer set PCM 70%

또는

alsamixer

7. 주의사항


8. 결론

이 설정을 통해 다음이 가능하다: