From 5f67055561dffcdb64ee7213a492c34bceb13f33 Mon Sep 17 00:00:00 2001 From: Xinhuang Li Date: Mon, 26 Mar 2018 17:50:02 +0800 Subject: [PATCH] ASoC: codecs: rk3228: add capture support Change-Id: Ibad275ec17389885007df1d67fb63e34f794b023 Signed-off-by: Xinhuang Li --- sound/soc/codecs/rk3228_codec.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sound/soc/codecs/rk3228_codec.c b/sound/soc/codecs/rk3228_codec.c index 9c0c831b5bcf..069be2ca225b 100644 --- a/sound/soc/codecs/rk3228_codec.c +++ b/sound/soc/codecs/rk3228_codec.c @@ -358,6 +358,16 @@ static struct snd_soc_dai_driver rk3228_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 = &rk3228_dai_ops, }, };