ASoC: samsung: Use 'samsung-i2s' cpu_dai for dai_links
authorJaechul Lee <jcsing.lee@samsung.com>
Wed, 6 Sep 2017 01:04:14 +0000 (10:04 +0900)
committerMark Brown <broonie@kernel.org>
Tue, 19 Sep 2017 14:59:03 +0000 (15:59 +0100)
commite8d93208905a9987c211f97a14a93f2776ab52e7
treeaaa84957661bba45d8de2cc8740e8d3c445bd84a
parent22289ddcd87285b3d61cd8b129438ca6abb1aa37
ASoC: samsung: Use 'samsung-i2s' cpu_dai for dai_links

Add specific cpu_dai_name to dai_link because samsung i2s driver registers
two dais and components. Selecting one of them clearly is needed more
information like cpu_dai_name, of_node. The reason why the dai_links have
to use 'samsung-i2s' for cpu_dai is that 'samsung-i2s-sec' doesn't have a
capture functionality.

Without this code, cpu_dai will be selected the first one of the
component_list. For example, if I describe nothing to cpu_dai_name,
'samsung-i2s-sec' might be selected to HiFi Primay.

Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/samsung/tm2_wm5110.c