diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-12-02 16:15:29 +0000 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-12-03 12:18:17 +0000 |
commit | c3acec2671cc448bc549b06b561ae2454238e9a0 (patch) | |
tree | 82365178227d23ed6da7d27138ffba4be58f653b /sound/soc/soc-cache.c | |
parent | 1ee46ebd0435d547c078859c719d7c892ff7ab2d (diff) | |
download | kernel_samsung_espresso10-c3acec2671cc448bc549b06b561ae2454238e9a0.zip kernel_samsung_espresso10-c3acec2671cc448bc549b06b561ae2454238e9a0.tar.gz kernel_samsung_espresso10-c3acec2671cc448bc549b06b561ae2454238e9a0.tar.bz2 |
ASoC: Move active copy of CODEC read and write into runtime structure
We shouldn't be assigning to the driver structure (which really ought
to be const, further patch to follow) though there's unlikely to be any
actual problem except in the unlikely case that two devices with the
same driver but different bus types appear in the same system.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'sound/soc/soc-cache.c')
-rw-r--r-- | sound/soc/soc-cache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/soc-cache.c b/sound/soc/soc-cache.c index 5143984..78b25e8 100644 --- a/sound/soc/soc-cache.c +++ b/sound/soc/soc-cache.c @@ -728,8 +728,8 @@ int snd_soc_codec_set_cache_io(struct snd_soc_codec *codec, return -EINVAL; } - codec->driver->write = io_types[i].write; - codec->driver->read = io_types[i].read; + codec->write = io_types[i].write; + codec->read = io_types[i].read; switch (control) { case SND_SOC_CUSTOM: |