diff options
author | Shiv Maliyappanahalli <smaliyap@codeaurora.org> | 2013-12-09 12:11:42 -0800 |
---|---|---|
committer | Vicky Sehrawat <vickys@codeaurora.org> | 2013-12-18 16:20:08 -0800 |
commit | 043b7fb47bca07ef394f9f4a45e917871bd65712 (patch) | |
tree | 6c31832927089943d9b2a739ffbca3bc0a8814f4 | |
parent | a1fcbd2a1ac417d456ae15055f8240befca2533b (diff) |
ASoC: msm8974: Add voice2 dai-link
Add voice2 dai-link to enable DSDS on msm8974 platform.
CRs-fixed: 587066
Change-Id: Ia057890525e51f4ef0344b04ccabbb1f265d1dc3
Signed-off-by: Vicky Sehrawat <vickys@codeaurora.org>
-rw-r--r-- | sound/soc/msm/msm-dai-fe.c | 27 | ||||
-rw-r--r-- | sound/soc/msm/msm8226.c | 13 | ||||
-rw-r--r-- | sound/soc/msm/msm8974.c | 11 | ||||
-rw-r--r-- | sound/soc/msm/msm8x10.c | 13 | ||||
-rw-r--r-- | sound/soc/msm/msmsamarium.c | 13 |
5 files changed, 7 insertions, 70 deletions
diff --git a/sound/soc/msm/msm-dai-fe.c b/sound/soc/msm/msm-dai-fe.c index f01deb81776e..59fcfb7c82b8 100644 --- a/sound/soc/msm/msm-dai-fe.c +++ b/sound/soc/msm/msm-dai-fe.c @@ -865,33 +865,6 @@ static struct snd_soc_dai_driver msm_fe_dais[] = { .ops = &msm_fe_dai_ops, .name = "QCHAT", }, - { - .playback = { - .stream_name = "VoIP2 Playback", - .aif_name = "VOIP2_DL", - .rates = SNDRV_PCM_RATE_8000_48000, - .formats = SNDRV_PCM_FMTBIT_S16_LE | - SNDRV_PCM_FMTBIT_SPECIAL, - .channels_min = 1, - .channels_max = 2, - .rate_min = 8000, - .rate_max = 48000, - }, - .capture = { - .stream_name = "VoIP2 Capture", - .aif_name = "VOIP2_UL", - .rates = SNDRV_PCM_RATE_8000_48000, - .formats = SNDRV_PCM_FMTBIT_S16_LE | - SNDRV_PCM_FMTBIT_SPECIAL, - .channels_min = 1, - .channels_max = 2, - .rate_min = 8000, - .rate_max = 48000, - }, - .ops = &msm_fe_dai_ops, - .name = "VoIP2", - .probe = fe_dai_probe, - }, }; static int msm_fe_dai_dev_probe(struct platform_device *pdev) diff --git a/sound/soc/msm/msm8226.c b/sound/soc/msm/msm8226.c index b1bcb19c5c83..5b04e1c39370 100644 --- a/sound/soc/msm/msm8226.c +++ b/sound/soc/msm/msm8226.c @@ -1365,19 +1365,6 @@ static struct snd_soc_dai_link msm8226_common_dai[] = { /* this dainlink has playback support */ .be_id = MSM_FRONTEND_DAI_MULTIMEDIA8, }, - {/* hw:x,21 */ - .name = "VoIP2", - .stream_name = "VoIP2", - .cpu_dai_name = "VoIP2", - .platform_name = "msm-voip-dsp", - .dynamic = 1, - .trigger = {SND_SOC_DPCM_TRIGGER_POST, - SND_SOC_DPCM_TRIGGER_POST}, - .ignore_suspend = 1, - .ignore_pmdown_time = 1, - .codec_dai_name = "snd-soc-dummy-dai", - .codec_name = "snd-soc-dummy", - }, /* Backend BT/FM DAI Links */ { .name = LPASS_BE_INT_BT_SCO_RX, diff --git a/sound/soc/msm/msm8974.c b/sound/soc/msm/msm8974.c index 95fb0a80e35a..f37a648b76dc 100644 --- a/sound/soc/msm/msm8974.c +++ b/sound/soc/msm/msm8974.c @@ -2200,17 +2200,20 @@ static struct snd_soc_dai_link msm8974_common_dai_links[] = { .codec_name = "snd-soc-dummy", }, { - .name = "VoIP2", - .stream_name = "VoIP2", - .cpu_dai_name = "VoIP2", - .platform_name = "msm-voip-dsp", + .name = "Voice2", + .stream_name = "Voice2", + .cpu_dai_name = "Voice2", + .platform_name = "msm-pcm-voice", .dynamic = 1, .trigger = {SND_SOC_DPCM_TRIGGER_POST, SND_SOC_DPCM_TRIGGER_POST}, + .no_host_mode = SND_SOC_DAI_LINK_NO_HOST, .ignore_suspend = 1, + /* this dainlink has playback support */ .ignore_pmdown_time = 1, .codec_dai_name = "snd-soc-dummy-dai", .codec_name = "snd-soc-dummy", + .be_id = MSM_FRONTEND_DAI_VOICE2, }, { .name = "INT_HFP_BT Hostless", diff --git a/sound/soc/msm/msm8x10.c b/sound/soc/msm/msm8x10.c index 0143a71fc258..67257d108e2a 100644 --- a/sound/soc/msm/msm8x10.c +++ b/sound/soc/msm/msm8x10.c @@ -874,19 +874,6 @@ static struct snd_soc_dai_link msm8x10_dai[] = { .codec_name = "snd-soc-dummy", .be_id = MSM_FRONTEND_DAI_QCHAT, }, - {/* hw:x,16 */ - .name = "VoIP2", - .stream_name = "VoIP2", - .cpu_dai_name = "VoIP2", - .platform_name = "msm-voip-dsp", - .dynamic = 1, - .trigger = {SND_SOC_DPCM_TRIGGER_POST, - SND_SOC_DPCM_TRIGGER_POST}, - .ignore_suspend = 1, - .ignore_pmdown_time = 1, - .codec_dai_name = "snd-soc-dummy-dai", - .codec_name = "snd-soc-dummy", - }, /* Backend I2S DAI Links */ { .name = LPASS_BE_SEC_MI2S_RX, diff --git a/sound/soc/msm/msmsamarium.c b/sound/soc/msm/msmsamarium.c index 625e297966eb..72ca91b0d6d4 100644 --- a/sound/soc/msm/msmsamarium.c +++ b/sound/soc/msm/msmsamarium.c @@ -1130,19 +1130,6 @@ static struct snd_soc_dai_link msmsamarium_dai_links[] = { .codec_name = "snd-soc-dummy", .be_id = MSM_FRONTEND_DAI_QCHAT, }, - { - .name = "VoIP2", - .stream_name = "VoIP2", - .cpu_dai_name = "VoIP2", - .platform_name = "msm-voip-dsp", - .dynamic = 1, - .trigger = {SND_SOC_DPCM_TRIGGER_POST, - SND_SOC_DPCM_TRIGGER_POST}, - .ignore_suspend = 1, - .ignore_pmdown_time = 1, - .codec_dai_name = "snd-soc-dummy-dai", - .codec_name = "snd-soc-dummy", - }, /* Backend BT/FM DAI Links */ { .name = LPASS_BE_INT_BT_SCO_RX, |