mirror of
https://github.com/torvalds/linux.git
synced 2024-11-30 08:01:59 +00:00
ASoC: samsung: midas_wm1811: parse audio-routing
Parse generic sound card "audio-routing" property and fallback to "samsung,audio-routing" if it is missing. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20230810063300.20151-9-krzysztof.kozlowski@linaro.org Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
55ebfafbc3
commit
c91e67145b
@ -476,10 +476,14 @@ static int midas_probe(struct platform_device *pdev)
|
||||
return ret;
|
||||
}
|
||||
|
||||
ret = snd_soc_of_parse_audio_routing(card, "samsung,audio-routing");
|
||||
ret = snd_soc_of_parse_audio_routing(card, "audio-routing");
|
||||
if (ret < 0) {
|
||||
dev_err(dev, "Audio routing invalid/unspecified\n");
|
||||
return ret;
|
||||
/* Backwards compatible way */
|
||||
ret = snd_soc_of_parse_audio_routing(card, "samsung,audio-routing");
|
||||
if (ret < 0) {
|
||||
dev_err(dev, "Audio routing invalid/unspecified\n");
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
cpu = of_get_child_by_name(dev->of_node, "cpu");
|
||||
|
Loading…
Reference in New Issue
Block a user