Search
SailfishOS Open Build Service
>
Projects
>
home:ballock
:
archosG9
>
kernel-adaptation-archos-gen9
> sound-disable-16bit-MMUL.patch
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File sound-disable-16bit-MMUL.patch of Package kernel-adaptation-archos-gen9
From: Sebastien Guiriec <s-guiriec@ti.com> Date: Tue, 24 Jan 2012 14:43:24 +0000 (+0100) Subject: ASoC: ABE: disable 16bits support on MM_UL path X-Git-Tag: ti-ubuntu-3.1-1282.10~1 X-Git-Url: http://dev.omapzoom.org/?p=integration%2Fkernel-ubuntu.git;a=commitdiff_plain;h=8b5836d9539d23c4876a68e155a967a0b8a98c7e ASoC: ABE: disable 16bits support on MM_UL path 16 bits support is broken on MM_UL path, resulting in a noisy channel on stereo record. This work-around disables 16bits support (32bits remains). If required, the format conversion shall be handled by SW layers (alsa). Another alternative is to use MM_UL2 path (that properly supports 16bits). Example how to setup and test MM_UL2: amixer cset name='MUX_UL10' 11 amixer cset name='MUX_UL11' 12 arecord -v -D plughw:0,1 -d 5 -f S16_LE -c 2 -r 48000 record.wav Signed-off-by: Sebastien Jan <s-jan@ti.com> --- diff --git a/sound/soc/omap/omap-abe.c b/sound/soc/omap/omap-abe.c index 0f32f05..a30d278 100644 --- a/sound/soc/omap/omap-abe.c +++ b/sound/soc/omap/omap-abe.c @@ -1458,7 +1458,7 @@ static struct snd_soc_dai_driver omap_abe_dai[] = { .channels_min = 2, .channels_max = 8, .rates = SNDRV_PCM_RATE_48000, - .formats = OMAP_ABE_FORMATS, + .formats = SNDRV_PCM_FMTBIT_S32_LE, }, .ops = &omap_abe_dai_ops, .widgets = mm1_widgets,