From c3efae69eebb8de4c7434da4a4c0b6c2f3b7f88f Mon Sep 17 00:00:00 2001 From: Banajit Goswami Date: Mon, 23 Nov 2015 23:44:34 -0800 Subject: [PATCH] ASoC: msm: add Hostless DAI with SLIMBUS_8 SLIMBUS_8 ports can be used for hostless audio playback and capture use cases. Add Hostless Front-end DAI definitions with Slimbus 8 ports. Change-Id: Idc56625bb8fea263c3d530c8a9488eeb81fdd7e5 Signed-off-by: Banajit Goswami --- sound/soc/msm/msm-dai-fe.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/sound/soc/msm/msm-dai-fe.c b/sound/soc/msm/msm-dai-fe.c index 20f9b1a789ae..f4a1b41cb5d0 100644 --- a/sound/soc/msm/msm-dai-fe.c +++ b/sound/soc/msm/msm-dai-fe.c @@ -464,6 +464,33 @@ static struct snd_soc_dai_driver msm_fe_dais[] = { }, { .playback = { + .stream_name = "SLIMBUS8_HOSTLESS Playback", + .aif_name = "SLIM8_DL_HL", + .rates = SNDRV_PCM_RATE_8000_192000, + .formats = (SNDRV_PCM_FMTBIT_S16_LE | + SNDRV_PCM_FMTBIT_S24_LE), + .channels_min = 1, + .channels_max = 8, + .rate_min = 8000, + .rate_max = 192000, + }, + .capture = { + .stream_name = "SLIMBUS8_HOSTLESS Capture", + .aif_name = "SLIM8_UL_HL", + .rates = SNDRV_PCM_RATE_8000_192000, + .formats = (SNDRV_PCM_FMTBIT_S16_LE | + SNDRV_PCM_FMTBIT_S24_LE), + .channels_min = 1, + .channels_max = 8, + .rate_min = 8000, + .rate_max = 192000, + }, + .ops = &msm_fe_dai_ops, + .name = "SLIMBUS8_HOSTLESS", + .probe = fe_dai_probe, + }, + { + .playback = { .stream_name = "INT_FM_HOSTLESS Playback", .aif_name = "INTFM_DL_HL", .rates = SNDRV_PCM_RATE_8000_48000, -- 2.11.0