Эх сурвалжийг харах

asoc:lahaina:Addition of VI feedback dai link

Addition of dai link for VI feedback
required for Speaker protection

Change-Id: Ied2339c995b87455a0759f9a48fce2383de9cbec
Aditya Mohan 4 жил өмнө
parent
commit
47d13a9d8f
2 өөрчлөгдсөн 13 нэмэгдсэн , 0 устгасан
  1. 9 0
      asoc/lahaina.c
  2. 4 0
      asoc/msm_dailink.h

+ 9 - 0
asoc/lahaina.c

@@ -424,6 +424,15 @@ static struct snd_soc_dai_link msm_common_be_dai_links[] = {
 		.ops = &msm_common_be_ops,
 		SND_SOC_DAILINK_REG(usb_audio_tx),
 	},
+	{
+		.name = LPASS_BE_WSA_CDC_DMA_TX_0,
+		.stream_name = LPASS_BE_WSA_CDC_DMA_TX_0,
+		.capture_only = 1,
+		.ignore_suspend = 1,
+		.ops = &msm_common_be_ops,
+		.no_host_mode = SND_SOC_DAI_LINK_NO_HOST,
+		SND_SOC_DAILINK_REG(vi_feedback),
+	},
 };
 
 static struct snd_soc_dai_link msm_wcn_be_dai_links[] = {

+ 4 - 0
asoc/msm_dailink.h

@@ -168,3 +168,7 @@ SND_SOC_DAILINK_DEFS(pri_tdm_tx_0,
 	DAILINK_COMP_ARRAY(COMP_CODEC("msm-stub-codec.1", "msm-stub-tx")),
 	DAILINK_COMP_ARRAY(COMP_PLATFORM("snd-soc-dummy")));
 
+SND_SOC_DAILINK_DEFS(vi_feedback,
+	DAILINK_COMP_ARRAY(COMP_CPU("snd-soc-dummy-dai")),
+	DAILINK_COMP_ARRAY(COMP_CODEC("bolero_codec", "wsa_macro_vifeedback")),
+	DAILINK_COMP_ARRAY(COMP_PLATFORM("snd-soc-dummy")));