우분투 리눅스 spdif 설정법
$ aplay -l
**** PLAYBACK 하드웨어 장치 목록 ****
0 카드: CK804 [NVidia CK804], 0 장치: Intel ICH [NVidia CK804]
하위장치: 1/1
하위장치 #0: subdevice #0
0 카드: CK804 [NVidia CK804], 2 장치: Intel ICH - IEC958 [NVidia CK804 - IEC958]
하위장치: 1/1
하위장치 #0: subdevice #0
$ aplay -L
front:CARD=CK804,DEV=0
NVidia CK804, NVidia CK804
Front speakers
...
iec958:CARD=CK804,DEV=0
NVidia CK804, NVidia CK804 - IEC958
IEC958 (S/PDIF) Digital Audio Output
null
Discard all samples (playback) or generate zero samples (capture)
$ cat /proc/asound/devices
2: : timer
3: : sequencer
4: [ 0- 2]: digital audio playback
5: [ 0- 1]: digital audio capture
6: [ 0- 0]: digital audio playback
7: [ 0- 0]: digital audio capture
8: [ 0] : control
위 정보에서 spdif passthrough 는 hw=0.2(또는 0)라고 판단됨. 다음 명령어로 mplayer 실행
DD
mplayer -ac hwac3 -ao alsa:device=hw=0.1
DTS
mplayer -ac hwdts -ao alsa:device=hw=0.1
*[[http://alsa.opensrc.org/index.php/DigitalOut|DigitalOut]]