[alsa-devel] How to test new SDPIF implementation?
![](https://secure.gravatar.com/avatar/67cb6fef42a83929955ce5a5b3f33f6e.jpg?s=120&d=mm&r=g)
I would like to test my SPDIF driver implementation. How can I used command line tools to play sample 5.1 music over SPDIF?
I have a file 5.1 AC3 encoded file -- w.ac3
This doesn't work:
iecset -D hw:0 audio off aplay -c 2 -r 48000 -f S16_BE -D hw:0,1 w.ac3
I can play uncompressed music on SDPIF without problem. I know my audio system will play the compressed music, I can use A52 from my desktop.
![](https://secure.gravatar.com/avatar/a3dd0965b05b71c3dff6eb289eb43e59.jpg?s=120&d=mm&r=g)
On Sun, 10 May 2009, Jon Smirl wrote:
I would like to test my SPDIF driver implementation. How can I used command line tools to play sample 5.1 music over SPDIF?
I have a file 5.1 AC3 encoded file -- w.ac3
This doesn't work:
iecset -D hw:0 audio off aplay -c 2 -r 48000 -f S16_BE -D hw:0,1 w.ac3
Use 'ac3dec -C <ac3file>' from alsa-tools to play .ac3 files. The spdif output of ac3 format requires some padding. You cannot send contents of .ac3 file directly to PCM device.
Jaroslav
----- Jaroslav Kysela perex@perex.cz Linux Kernel Sound Maintainer ALSA Project, Red Hat, Inc.
participants (2)
-
Jaroslav Kysela
-
Jon Smirl