Prechádzať zdrojové kódy

asoc: add new dais for proxy record path

Add proxy RX and TX dai for proxy record path

Change-Id: I306f970ec7e7c7543e47636947c0ecb0226ed976
Signed-off-by: Anirudh Mahto <[email protected]>
Anirudh Mahto 1 rok pred
rodič
commit
0ffa27d3e4
3 zmenil súbory, kde vykonal 33 pridanie a 0 odobranie
  1. 2 0
      asoc/msm-audio-defs.h
  2. 10 0
      asoc/msm_dailink.h
  3. 21 0
      asoc/pineapple.c

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

@@ -111,7 +111,9 @@
 #define LPASS_BE_TX_CDC_DMA_TX_5 "CODEC_DMA-LPAIF_RXTX-TX-5"
 
 #define LPASS_BE_RT_PROXY_PCM_RX "PCM_RT_PROXY-RX-1"
+#define LPASS_BE_RT_PROXY_PCM_RX_2 "PCM_RT_PROXY-RX-2"
 #define LPASS_BE_RT_PROXY_PCM_TX "PCM_RT_PROXY-TX-1"
+#define LPASS_BE_RT_PROXY_PCM_TX_2 "PCM_RT_PROXY-TX-2"
 
 #define LPASS_BE_PCM_DUMMY_RX_0 "PCM_DUMMY-RX-0"
 #define LPASS_BE_PCM_DUMMY_TX_0 "PCM_DUMMY-TX-0"

+ 10 - 0
asoc/msm_dailink.h

@@ -213,11 +213,21 @@ SND_SOC_DAILINK_DEFS(proxy_tx,
 	DAILINK_COMP_ARRAY(COMP_DUMMY()),
 	DAILINK_COMP_ARRAY(COMP_PLATFORM("snd-soc-dummy")));
 
+SND_SOC_DAILINK_DEFS(proxy_tx2,
+	DAILINK_COMP_ARRAY(COMP_CPU("snd-soc-dummy-dai")),
+	DAILINK_COMP_ARRAY(COMP_DUMMY()),
+	DAILINK_COMP_ARRAY(COMP_PLATFORM("snd-soc-dummy")));
+
 SND_SOC_DAILINK_DEFS(proxy_rx,
 	DAILINK_COMP_ARRAY(COMP_CPU("snd-soc-dummy-dai")),
 	DAILINK_COMP_ARRAY(COMP_DUMMY()),
 	DAILINK_COMP_ARRAY(COMP_PLATFORM("snd-soc-dummy")));
 
+SND_SOC_DAILINK_DEFS(proxy_rx2,
+	DAILINK_COMP_ARRAY(COMP_CPU("snd-soc-dummy-dai")),
+	DAILINK_COMP_ARRAY(COMP_DUMMY()),
+	DAILINK_COMP_ARRAY(COMP_PLATFORM("snd-soc-dummy")));
+
 SND_SOC_DAILINK_DEFS(pri_mi2s_rx,
 	DAILINK_COMP_ARRAY(COMP_CPU("snd-soc-dummy-dai")),
 	DAILINK_COMP_ARRAY(COMP_CODEC("msm-stub-codec.1", "msm-stub-rx")),

+ 21 - 0
asoc/pineapple.c

@@ -480,6 +480,16 @@ static struct snd_soc_dai_link msm_common_be_dai_links[] = {
 		.ops = &msm_common_be_ops,
 		SND_SOC_DAILINK_REG(proxy_tx),
 	},
+	{
+		.name = LPASS_BE_RT_PROXY_PCM_TX_2,
+		.stream_name = LPASS_BE_RT_PROXY_PCM_TX_2,
+		.capture_only = 1,
+		.trigger = {SND_SOC_DPCM_TRIGGER_POST,
+			SND_SOC_DPCM_TRIGGER_POST},
+		.ignore_suspend = 1,
+		.ops = &msm_common_be_ops,
+		SND_SOC_DAILINK_REG(proxy_tx2),
+	},
 	/* Proxy Rx BACK END DAI Link */
 	{
 		.name = LPASS_BE_RT_PROXY_PCM_RX,
@@ -492,6 +502,17 @@ static struct snd_soc_dai_link msm_common_be_dai_links[] = {
 		.ops = &msm_common_be_ops,
 		SND_SOC_DAILINK_REG(proxy_rx),
 	},
+	{
+		.name = LPASS_BE_RT_PROXY_PCM_RX_2,
+		.stream_name = LPASS_BE_RT_PROXY_PCM_RX_2,
+		.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(proxy_rx2),
+	},
 	{
 		.name = LPASS_BE_USB_AUDIO_RX,
 		.stream_name = LPASS_BE_USB_AUDIO_RX,