From c4d222f150c985fd11415ded79fdfe0ae562669a Mon Sep 17 00:00:00 2001 From: Sugar Zhang Date: Tue, 12 Sep 2023 16:14:45 +0800 Subject: [PATCH] ASoC: rockchip: sai: Add support for more capabilities * support samplerate up to 384k * support channel range from mono to 512ch Signed-off-by: Sugar Zhang Change-Id: I190990c18166dc5cd316bd0f2c5b0d9e9452c631 --- sound/soc/rockchip/rockchip_sai.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sound/soc/rockchip/rockchip_sai.c b/sound/soc/rockchip/rockchip_sai.c index 55760f1ab2e4..cb90ef9a2b94 100644 --- a/sound/soc/rockchip/rockchip_sai.c +++ b/sound/soc/rockchip/rockchip_sai.c @@ -797,8 +797,8 @@ static int rockchip_sai_init_dai(struct rk_sai_dev *sai, struct resource *res, if (sai->has_playback) { dai->playback.stream_name = "Playback"; dai->playback.channels_min = 1; - dai->playback.channels_max = 128; - dai->playback.rates = SNDRV_PCM_RATE_8000_192000; + dai->playback.channels_max = 512; + dai->playback.rates = SNDRV_PCM_RATE_8000_384000; dai->playback.formats = SNDRV_PCM_FMTBIT_S8 | SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE | @@ -813,8 +813,8 @@ static int rockchip_sai_init_dai(struct rk_sai_dev *sai, struct resource *res, if (sai->has_capture) { dai->capture.stream_name = "Capture"; dai->capture.channels_min = 1; - dai->capture.channels_max = 128; - dai->capture.rates = SNDRV_PCM_RATE_8000_192000; + dai->capture.channels_max = 512; + dai->capture.rates = SNDRV_PCM_RATE_8000_384000; dai->capture.formats = SNDRV_PCM_FMTBIT_S8 | SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S24_LE |