[alsa-devel] How to test new SDPIF implementation?
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. -- Jon Smirl jonsmirl@gmail.com
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