ASoC: soc-core: Allow searching dai driver name in snd_soc_find_dai
authorJeffy Chen <jeffy.chen@rock-chips.com>
Tue, 22 Aug 2017 07:57:21 +0000 (15:57 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 22 Aug 2017 12:45:55 +0000 (13:45 +0100)
commit4958471b0d2110a34df0b45803e6f24ed89b857b
tree4d73b3cfc8d8f3d035d10e75a41c343577a3f0f4
parent2eccea8cdeb8fe455fc3a45b4e097f118449c3ef
ASoC: soc-core: Allow searching dai driver name in snd_soc_find_dai

Currently we are searching dai name in snd_soc_find_dai, which could
either be dai driver name or component device name(for legacy naming).

Allow searching dai driver name in snd_soc_find_dai too, so that we can
use dai driver name to find legacy naming dais.

Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-core.c