Newer
Older
buildroot-MynaPlayer / board / myna-player-odyssey / rootfs_patches / linux / 0006-ASoC-wm8960-Add-multi-endpoint-support.patch
From e268ffe5a6691add8abd44e54d3b81779fed7bfd Mon Sep 17 00:00:00 2001
From: Jookia <contact@jookia.org>
Date: Wed, 12 Aug 2020 00:30:42 +1000
Subject: [PATCH 6/7] ASoC: wm8960: Add multi endpoint support

---
 sound/soc/codecs/wm8960.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/sound/soc/codecs/wm8960.c b/sound/soc/codecs/wm8960.c
index 6cf0f6612bda..ca822da4d359 100644
--- a/sound/soc/codecs/wm8960.c
+++ b/sound/soc/codecs/wm8960.c
@@ -1357,9 +1357,17 @@ static int wm8960_probe(struct snd_soc_component *component)
 	return 0;
 }
 
+static int wm8960_of_xlate_dai_id(struct snd_soc_component *component,
+                                   struct device_node *endpoint)
+{
+	/* return dai id 0, whatever the endpoint index */
+	return 0;
+}
+
 static const struct snd_soc_component_driver soc_component_dev_wm8960 = {
 	.probe			= wm8960_probe,
 	.set_bias_level		= wm8960_set_bias_level,
+	.of_xlate_dai_id	= wm8960_of_xlate_dai_id,
 	.suspend_bias_off	= 1,
 	.idle_bias_on		= 1,
 	.use_pmdown_time	= 1,
-- 
2.20.1