[alsa-devel] Transmitting ac3 content via spdif
Fabio Estevam
festevam at gmail.com
Fri Nov 2 02:58:27 CET 2012
On Fri, Oct 26, 2012 at 7:50 PM, Fabio Estevam <festevam at gmail.com> wrote:
> On Fri, Oct 26, 2012 at 5:30 PM, Fabio Estevam <festevam at gmail.com> wrote:
>> Hi,
>>
>> I am trying to transmit ac3 content via spdif on a mx6 (on a yet
>> non-mainlined driver).
>>
>> Tried to force non-audio mode via iecset:
>>
>> # iecset audio 0
>> control "IEC958 Playback Default" (index -1) not found
>
> Ok, need to pass "-c 1" option to iecset:
>
> $ iecset -c 1 audio 0
> Mode: consumer
> Data: non-audio
> Rate: 44100 Hz
> Copyright: permitted
> Emphasis: none
> Category: general
> Original: 1st generation
> Clock: 1000 ppm
> root at imx6qsabrelite:/home# aplay -D hw:1,0 -f dat /home/mcxpk_audio_capture.ac3
> Playing raw data '/home/mcxpk_audio_capture.ac3' : Signed 16 bit
> Little Endian, Rate 48000 Hz, Stereo
Just to close this issue, in case someone else wants to do the same thing.
Managed to stream AC3 via HDMI using ac3dec tool:
ac3dec -D hw:1,0 -C test.ac3
Regards,
Fabio Estevam
More information about the Alsa-devel
mailing list