ASoC: cs42xx8: Do not use rtd->codec
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 19 May 2014 06:03:03 +0000 (08:03 +0200)
committerMark Brown <broonie@linaro.org>
Mon, 19 May 2014 16:14:02 +0000 (17:14 +0100)
commit5958de23edc4148a07a75abf7216a8426b8e199b
treed7124a685d23a989dcc97335429304ae9f448097
parentc9eaa447e77efe77b7fa4c953bd62de8297fd6c5
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>
sound/soc/codecs/cs42xx8.c