ASoC: rt5651: Do not use rtd->codec
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 19 May 2014 06:03:04 +0000 (08:03 +0200)
committerMark Brown <broonie@linaro.org>
Mon, 19 May 2014 16:16:04 +0000 (17:16 +0100)
commitc1406846e4e1ae92c4fb96fcb4532a63a2bceb21
tree98cf3155103ea2dff35ee9663a7f9de05191ad24
parent871c131dcbee80e9459bf695c8c5cfd6bf0d26d6
ASoC: rt5651: 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>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/rt5651.c