[alsa-devel] [PATCH 1/2] ASoC: intel: byt: Enable quirk logic for custom maps

Carlo Caione carlo at caione.org
Wed Oct 18 18:07:58 CEST 2017


From: Carlo Caione <carlo at endlessm.com>

Enable again the quirk logic for the custom dapm routes.

Signed-off-by: Carlo Caione <carlo at endlessm.com>
---
 sound/soc/intel/boards/bytcr_rt5651.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/sound/soc/intel/boards/bytcr_rt5651.c b/sound/soc/intel/boards/bytcr_rt5651.c
index 4a3516b38c2c..ec84454a232d 100644
--- a/sound/soc/intel/boards/bytcr_rt5651.c
+++ b/sound/soc/intel/boards/bytcr_rt5651.c
@@ -142,6 +142,12 @@ static int byt_rt5651_init(struct snd_soc_pcm_runtime *runtime)
 		num_routes = ARRAY_SIZE(byt_rt5651_intmic_dmic1_map);
 	}
 
+	ret = snd_soc_dapm_add_routes(&card->dapm, custom_map, num_routes);
+	if (ret) {
+		dev_err(card->dev, "unable to add custom routes map\n");
+		return ret;
+	}
+
 	ret = snd_soc_add_card_controls(card, byt_rt5651_controls,
 					ARRAY_SIZE(byt_rt5651_controls));
 	if (ret) {
-- 
2.14.2



More information about the Alsa-devel mailing list