[alsa-devel] [PATCH] ASoC: mt8183: change supported formats of DL2 and UL1
Tzung-Bi Shih
tzungbi at google.com
Wed Mar 27 07:42:36 CET 2019
DL2 and UL1 should only provide 16-bit, mono, 8kHz and 16kHz to
userspace. Change the formats accordingly.
Signed-off-by: Tzung-Bi Shih <tzungbi at google.com>
---
sound/soc/mediatek/mt8183/mt8183-afe-pcm.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/sound/soc/mediatek/mt8183/mt8183-afe-pcm.c b/sound/soc/mediatek/mt8183/mt8183-afe-pcm.c
index 43be51bf0329..ad42da1b948c 100644
--- a/sound/soc/mediatek/mt8183/mt8183-afe-pcm.c
+++ b/sound/soc/mediatek/mt8183/mt8183-afe-pcm.c
@@ -195,9 +195,9 @@ static struct snd_soc_dai_driver mt8183_memif_dai_driver[] = {
.playback = {
.stream_name = "DL2",
.channels_min = 1,
- .channels_max = 2,
- .rates = MTK_PCM_RATES,
- .formats = MTK_PCM_FORMATS,
+ .channels_max = 1,
+ .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000,
+ .formats = SNDRV_PCM_FMTBIT_S16_LE,
},
.ops = &mtk_afe_fe_ops,
},
@@ -219,9 +219,9 @@ static struct snd_soc_dai_driver mt8183_memif_dai_driver[] = {
.capture = {
.stream_name = "UL1",
.channels_min = 1,
- .channels_max = 2,
- .rates = MTK_PCM_RATES,
- .formats = MTK_PCM_FORMATS,
+ .channels_max = 1,
+ .rates = SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000,
+ .formats = SNDRV_PCM_FMTBIT_S16_LE,
},
.ops = &mtk_afe_fe_ops,
},
--
2.21.0.392.gf8f6787159e-goog
More information about the Alsa-devel
mailing list