projects/Cuboxi/patches/linux: add patches to fix audio issues, creadits to geexbox/openbricks, thanks to Christian for reporting and testing

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2014-02-24 18:29:35 +01:00
parent 95c179dbc3
commit d58d129372
2 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,30 @@
From b565d5fc613b00f4853fd7048db82f272f112de2 Mon Sep 17 00:00:00 2001
From: wolfgar <stephan.rafin@laposte.net>
Date: Sun, 10 Nov 2013 04:13:41 +0100
Subject: [PATCH] Remove 24bits imx analog sound output for now to avoid to
trigger XBMC bug
---
sound/soc/imx/imx-ssi.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/sound/soc/imx/imx-ssi.c b/sound/soc/imx/imx-ssi.c
index a4ff902..79ae8ca 100644
--- a/sound/soc/imx/imx-ssi.c
+++ b/sound/soc/imx/imx-ssi.c
@@ -61,8 +61,11 @@
#define SSI_SACNT_DEFAULT (SSI_SACNT_AC97EN | SSI_SACNT_FV)
#define IMX_SSI_FORMATS \
+ (SNDRV_PCM_FMTBIT_S16_LE)
+
+/*#define IMX_SSI_FORMATS \
(SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE | \
- SNDRV_PCM_FMTBIT_S24_LE)
+ SNDRV_PCM_FMTBIT_S24_LE)*/
#ifdef CONFIG_SND_MXC_SOC_IRAM
static int UseIRAM;
#endif
--
1.8.5.1

View File

@ -0,0 +1,17 @@
diff -Naur a/sound/soc/codecs/mxc_spdif.h b/sound/soc/codecs/mxc_spdif.h
--- a/sound/soc/codecs/mxc_spdif.h 2013-12-06 16:18:39.000000000 +0100
+++ b/sound/soc/codecs/mxc_spdif.h 2014-01-21 18:44:54.301081422 +0100
@@ -150,9 +150,13 @@
SNDRV_PCM_RATE_64000 | \
SNDRV_PCM_RATE_96000)
+// !!! temporary workaround for broken 24bit mode !!!
+#define MXC_SPDIF_FORMATS_PLAYBACK (SNDRV_PCM_FMTBIT_S16_LE)
+/*
#define MXC_SPDIF_FORMATS_PLAYBACK (SNDRV_PCM_FMTBIT_S16_LE | \
SNDRV_PCM_FMTBIT_S20_3LE | \
SNDRV_PCM_FMTBIT_S24_LE)
+*/
#define MXC_SPDIF_FORMATS_CAPTURE (SNDRV_PCM_FMTBIT_S24_LE)