From 0ca3fd7dab58bf3669eaca24d583bff3d8d0b600 Mon Sep 17 00:00:00 2001 From: Xinhuang Li Date: Fri, 22 Dec 2017 14:21:37 +0800 Subject: [PATCH] ASoC: codecs: rk3328: add capture support Change-Id: I275c50d9ba1faf15d8276c0415ac7a7aaff98b92 Signed-off-by: Xinhuang Li --- sound/soc/codecs/rk3328_codec.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sound/soc/codecs/rk3328_codec.c b/sound/soc/codecs/rk3328_codec.c index ceb2eb6dd69a..e1740e3583f4 100644 --- a/sound/soc/codecs/rk3328_codec.c +++ b/sound/soc/codecs/rk3328_codec.c @@ -358,6 +358,16 @@ static struct snd_soc_dai_driver rk3328_dai[] = { SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S32_LE), }, + .capture = { + .stream_name = "HIFI Capture", + .channels_min = 2, + .channels_max = 8, + .rates = SNDRV_PCM_RATE_8000_96000, + .formats = (SNDRV_PCM_FMTBIT_S16_LE | + SNDRV_PCM_FMTBIT_S20_3LE | + SNDRV_PCM_FMTBIT_S24_LE | + SNDRV_PCM_FMTBIT_S32_LE), + }, .ops = &rk3328_dai_ops, }, };