[alsa-devel] Transmitting ac3 content via spdif
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
root@imx6qsabrelite:~# aplay -l **** List of PLAYBACK Hardware Devices **** card 0: sgtl5000audio [sgtl5000-audio], device 0: HiFi sgtl5000-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: imxhdmisoc [imx-hdmi-soc], device 0: IMX HDMI TX mxc-hdmi-soc-0 [] Subdevices: 1/1 Subdevice #0: subdevice #0
Transmitting a wav file works fine though.
Any suggestions as to how provide the "IEC958 Playback Default" control?
Thanks,
Fabio Estevam
On Fri, Oct 26, 2012 at 5:30 PM, Fabio Estevam festevam@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@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
Thanks,
Fabio Estevam
On Fri, Oct 26, 2012 at 7:50 PM, Fabio Estevam festevam@gmail.com wrote:
On Fri, Oct 26, 2012 at 5:30 PM, Fabio Estevam festevam@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@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
participants (1)
-
Fabio Estevam