ASoC: msm: Add support for stubbed hostless voice driver.
Stubbed hostless voice driver added to support use cases where
APQ QDSP6 voice module is not needed for voice calls.
Change-Id: I676726e6c704f1ee4cb078ed1b475a38afb8dc12
Signed-off-by: Neema Shetty <nshetty@codeaurora.org>
diff --git a/sound/soc/msm/msm-dai-fe.c b/sound/soc/msm/msm-dai-fe.c
index 8f71e83..14d9adf 100644
--- a/sound/soc/msm/msm-dai-fe.c
+++ b/sound/soc/msm/msm-dai-fe.c
@@ -271,6 +271,28 @@
.ops = &msm_fe_dai_ops,
.name = "AUXPCM_HOSTLESS",
},
+ {
+ .playback = {
+ .stream_name = "Voice Stub Playback",
+ .rates = SNDRV_PCM_RATE_8000_48000,
+ .formats = SNDRV_PCM_FMTBIT_S16_LE,
+ .channels_min = 1,
+ .channels_max = 2,
+ .rate_min = 8000,
+ .rate_max = 48000,
+ },
+ .capture = {
+ .stream_name = "Voice Stub Capture",
+ .rates = SNDRV_PCM_RATE_8000_48000,
+ .formats = SNDRV_PCM_FMTBIT_S16_LE,
+ .channels_min = 1,
+ .channels_max = 2,
+ .rate_min = 8000,
+ .rate_max = 48000,
+ },
+ .ops = &msm_fe_dai_ops,
+ .name = "VOICE_STUB",
+ },
};
static __devinit int msm_fe_dai_dev_probe(struct platform_device *pdev)