Open iec958 audio device
- Our audio driver not support open device
with AES parameter, so just use hw: device name
- i.mx specific for audio passthrough
https://bugzilla.gnome.org/show_bug.cgi?id=757258
Signed-off-by: Lyon Wang <lyon.wang@nxp.com>
diff --git a/ext/alsa/gstalsa.c b/ext/alsa/gstalsa.c
index d49a2ff..08f6c81 100644
--- a/ext/alsa/gstalsa.c
+++ b/ext/alsa/gstalsa.c
@@ -462,12 +462,14 @@
* SPDIF_CON: Non-audio flag set:
* spdif:{AES0 0x2 AES1 0x82 AES2 0x0 AES3 0x2}
*/
- sprintf (devstr,
+/* sprintf (devstr,
"%s:{AES0 0x%02x AES1 0x%02x AES2 0x%02x AES3 0x%02x}",
device,
IEC958_AES0_CON_EMPHASIS_NONE | IEC958_AES0_NONAUDIO,
IEC958_AES1_CON_ORIGINAL | IEC958_AES1_CON_PCM_CODER,
- 0, IEC958_AES3_CON_FS_48000);
+ 0, IEC958_AES3_CON_FS_48000);*/
+
+ sprintf (devstr, "%s", device);
GST_DEBUG_OBJECT (obj, "Generated device string \"%s\"", devstr);
iec958_pcm_name = devstr;