android_kernel_xiaomi_sm8350/sound/soc
Lars-Peter Clausen 338ee25393 ASoC: codecs: wm8753: Fix DAI mode switching
The wm8753 codec supports switching between different DAI modes.
The current drivers tries to implement this by changing the DAI driver at
runtime. But to properly work this would require support from the ASoC core.

So this patch takes a different approch on how the DAI mode switching is
implemented.

The only difference, from a driver point of view, between the different DAI modes
is how to program the DAI format to the hardware. So what this patch is, it
stores the current format for each DAI in the drivers private struct and when
the DAI mode is changed the format gets simply reprogrammed according to the
new DAI mode.

Futhermore this patch restricts the changing of the DAI format to when the
codec is inactive.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
2011-02-07 12:02:49 +00:00
..
atmel ASoC: Fix codec device id format used by some dai_links 2011-01-25 15:12:36 +00:00
au1x ASoC: Do not include soc-dapm.h 2010-11-22 14:04:41 +00:00
blackfin ASoC: Fix codec device id format used by some dai_links 2011-01-25 15:12:36 +00:00
codecs ASoC: codecs: wm8753: Fix DAI mode switching 2011-02-07 12:02:49 +00:00
davinci asoc: davinci: da830/omap-l137: correct cpu_dai_name 2011-02-03 20:16:09 +00:00
ep93xx ASoC: ep93xx-ac97: remove extra empty line 2011-02-04 14:36:30 +00:00
fsl ASoC: Replace pdev with card in machine driver probe and remove 2011-01-27 11:56:13 +00:00
imx Merge branch 'for-2.6.37' into for-2.6.38 2010-11-25 11:17:24 +00:00
jz4740 ASoC: Do not include soc-dapm.h 2010-11-22 14:04:41 +00:00
kirkwood ASoC: Do not include soc-dapm.h 2010-11-22 14:04:41 +00:00
mid-x86 ASoC: mid-x86: Fix dependency on intel_sst driver 2011-02-07 11:23:45 +00:00
nuc900 Merge branch 'for-2.6.37' into for-2.6.38 2010-11-30 11:35:43 +00:00
omap Merge branch 'for-2.6.39' of git://git.kernel.org/pub/scm/linux/kernel/git/lrg/asoc-2.6 into for-2.6.39 2011-02-01 14:55:10 +00:00
pxa ASoC: PXA: formatting 2011-02-02 20:45:37 +00:00
s6000 ASoC: Remove needless inclusion of tlv320aic3x.h from machine drivers 2011-01-05 11:28:50 +00:00
samsung ASoC: neo1973_wm8753 audio support does not require scoop 2011-01-31 13:31:29 +00:00
sh ASoC: sh: fsi: modify selection method of I2S/PCM/SPDIF format 2011-01-26 11:25:47 +00:00
tegra ASoC: Tegra: Harmony: Remove redundant !! 2011-02-01 14:12:31 +00:00
txx9
Kconfig ASoC: tegra: Kconfig and Makefile 2011-01-10 22:21:09 +00:00
Makefile ASoC: tegra: Kconfig and Makefile 2011-01-10 22:21:09 +00:00
soc-cache.c ASoC: soc-cache: Add trace event for snd_soc_cache_sync() 2011-01-21 18:30:51 +00:00
soc-core.c Merge branch 'for-2.6.38' into for-2.6.39 2011-02-02 20:52:14 +00:00
soc-dapm.c Merge branch 'for-2.6.38' into for-2.6.39 2011-01-28 13:22:14 +00:00
soc-jack.c ASoC: Add trace events for jack detection 2010-12-06 14:13:42 +00:00
soc-utils.c ASoC: Use snd_pcm_format_width() in snd_soc_params_to_frame_size() 2011-02-01 14:31:40 +00:00