]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ASoC: cs42xx8: Do not use rtd->codec
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 19 May 2014 06:03:03 +0000 (08:03 +0200)
committerNitin Garg <nitin.garg@freescale.com>
Fri, 16 Jan 2015 03:16:45 +0000 (21:16 -0600)
commit4cc25d6ba4c5f73345a209987bcd0af8b3370e08
tree3c4ad883341dec23406100341ea8e8b0f65aaef6
parent37bfbaf03619ca4bbe53744a27e2bcca9e8aa5b2
ASoC: cs42xx8: Do not use rtd->codec

rtd->codec does not necessarily point to the CODEC instance for which the
callback was called (e.g. for CODEC<->CODEC or multi-CODEC links). Use
dai->codec instead.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Acked-by: Brian Austin <brian.austin@cirrus.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
(cherry picked from commit 5958de23edc4148a07a75abf7216a8426b8e199b)
sound/soc/codecs/cs42xx8.c