Prechádzať zdrojové kódy

asoc: Add virtual node for WSA RX0

Change-Id: I49a300ab37610c325178517147189d96422297af
Signed-off-by: Rohit kumar <[email protected]>
Rohit kumar 3 rokov pred
rodič
commit
a9873e4b9d
2 zmenil súbory, kde vykonal 13 pridanie a 0 odobranie
  1. 1 0
      asoc/msm-audio-defs.h
  2. 12 0
      asoc/waipio.c

+ 1 - 0
asoc/msm-audio-defs.h

@@ -81,6 +81,7 @@
 #define LPASS_BE_USB_AUDIO_TX "USB_AUDIO-TX"
 
 #define LPASS_BE_WSA_CDC_DMA_RX_0 "CODEC_DMA-LPAIF_WSA-RX-0"
+#define LPASS_BE_WSA_CDC_DMA_RX_0_VIRT "CODEC_DMA-LPAIF_WSA-RX-0-VIRT-2"
 #define LPASS_BE_WSA_CDC_DMA_TX_0 "CODEC_DMA-LPAIF_WSA-TX-0"
 #define LPASS_BE_WSA_CDC_DMA_RX_1 "CODEC_DMA-LPAIF_WSA-RX-1"
 #define LPASS_BE_WSA_CDC_DMA_TX_1 "CODEC_DMA-LPAIF_WSA-TX-1"

+ 12 - 0
asoc/waipio.c

@@ -476,6 +476,18 @@ static struct snd_soc_dai_link msm_wsa_cdc_dma_be_dai_links[] = {
 		/* .no_host_mode = SND_SOC_DAI_LINK_NO_HOST, */
 		SND_SOC_DAILINK_REG(vi_feedback),
 	},
+	{
+		.name = LPASS_BE_WSA_CDC_DMA_RX_0_VIRT,
+		.stream_name = LPASS_BE_WSA_CDC_DMA_RX_0_VIRT,
+		.playback_only = 1,
+		.trigger = {SND_SOC_DPCM_TRIGGER_POST,
+			SND_SOC_DPCM_TRIGGER_POST},
+		.ignore_pmdown_time = 1,
+		.ignore_suspend = 1,
+		.ops = &msm_common_be_ops,
+		SND_SOC_DAILINK_REG(wsa_dma_rx0),
+		.init = &msm_int_wsa_init,
+	},
 };
 
 static struct snd_soc_dai_link msm_wsa2_cdc_dma_be_dai_links[] = {