[alsa-devel] How to test new SDPIF implementation?

Jaroslav Kysela perex at perex.cz
Sun May 10 21:25:58 CEST 2009


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 at perex.cz>
Linux Kernel Sound Maintainer
ALSA Project, Red Hat, Inc.



More information about the Alsa-devel mailing list