android_kernel_xiaomi_sm8350/sound/soc
Barry Song f773205300 ASoC: move setting ac97 platformdata earlier than ac97 read/write
While probing, AC97 codec drivers and soc-core generically execute the
following sequence:
snd_soc_new_ac97_codec -> snd_soc_new_pcms -> reset ac-link/read AC97 ID
to detect ->...  -> set platform_data to ac97 by soc-core

commit 474828a40f adds platform_data to
snd_ac97 instance. But ac97 platform data hasn't given to snd_ac97
before actual ac97 operations. Then while ac97_read access platform_data
of snd_ac97 for detecting, NULL pointer oops will fire. That means old
platform_data patch doesn't work in real-life cases.

This patch moves the operation of setting ac97 platform_data earlier
than ac97 reading/writing operations. Then it makes platform_data of
AC97 become practically useful.

Signed-off-by: Barry Song <21cnbao@gmail.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
2009-11-12 16:45:52 +00:00
..
atmel ASoC: at91sam9g20ek_2mmc board uses same audio connexion as at91sam9g20ek 2009-10-09 12:41:55 +01:00
au1x ASoC: au1x: convert to platform drivers. 2009-11-02 11:27:07 +00:00
blackfin Merge branch 'for-2.6.32' into for-2.6.33 2009-10-01 11:35:11 +01:00
codecs ASoC: TWL4030: Do not modify the APLL_CTL register 2009-11-10 12:08:15 +00:00
davinci Merge branch 'for-2.6.32' into for-2.6.33 2009-10-06 16:01:27 +01:00
fsl ASoC: mpc5200: remove duplicate identical IRQ handler 2009-11-10 13:02:01 +00:00
imx Merge branch 'for-2.6.32' into for-2.6.33 2009-10-08 10:45:09 +01:00
omap ASoC: omap-mcbsp - add support for upto 16 channels. 2009-11-10 11:58:21 +00:00
pxa ASoC: finally enable support for eXeda and CM-X300 2009-10-15 15:01:47 +01:00
s3c24xx ASoC: Fixed arguments passed to SMDK64xx set_pll 2009-11-12 16:45:51 +00:00
s6000 ASoC: tlv320aic3x: fixup board device changes 2009-08-21 10:52:57 +01:00
sh ASoC: sh: FSI: Add capture support 2009-10-30 10:35:30 +00:00
txx9 ASoC: txx9aclc: dynamically allocate dmaengine devname 2009-06-25 21:06:30 +01:00
Kconfig ASoC: Hook i.MX into build 2009-08-15 11:37:30 +01:00
Makefile ASoC: Add bit clock rate calculator utility functions 2009-11-12 16:45:48 +00:00
soc-cache.c ASoC: Convert soc-cache to use C99 style initialisers for the table 2009-09-21 04:21:47 -07:00
soc-core.c ASoC: move setting ac97 platformdata earlier than ac97 read/write 2009-11-12 16:45:52 +00:00
soc-dapm.c Merge branch 'for-2.6.32' into for-2.6.33 2009-10-15 15:02:14 +01:00
soc-jack.c ASoC: Move dereference after NULL test 2009-10-19 16:12:35 +01:00
soc-utils.c ASoC: Add bit clock rate calculator utility functions 2009-11-12 16:45:48 +00:00