ASoC: rt5616: Don't use rtd->codec
authorLars-Peter Clausen <lars@metafoo.de>
Sun, 13 Nov 2016 20:06:16 +0000 (21:06 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 14 Nov 2016 11:23:17 +0000 (11:23 +0000)
commit134340b33f2ddf4869519d728ad0ca4bc67154f3
treecb12a7060f7942c8ea97e375fcadd1dc25d0a006
parent1001354ca34179f3db924eb66672442a173147dc
ASoC: rt5616: Don't 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@kernel.org>
sound/soc/codecs/rt5616.c