diff options
author | Barry Song <21cnbao@gmail.com> | 2009-11-12 12:01:47 +0800 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-11-12 16:45:52 +0000 |
commit | f773205300fa4a5a405f8ed6e3bb97e46c6eefb4 (patch) | |
tree | 4f51630208ffb52d5e8e59b033437e3964265c61 /sound/soc/codecs/tlv320aic23.c | |
parent | ba2b87f5a93659a28cc4fb812ccd7b4146ac3aa9 (diff) | |
download | blackbird-op-linux-f773205300fa4a5a405f8ed6e3bb97e46c6eefb4.tar.gz blackbird-op-linux-f773205300fa4a5a405f8ed6e3bb97e46c6eefb4.zip |
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 474828a40f6ddab6e2a3475a19c5c84aa3ec7d60 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>
Diffstat (limited to 'sound/soc/codecs/tlv320aic23.c')
0 files changed, 0 insertions, 0 deletions