ASoC: rockchip: multi-dais: Add support for more capabilities

* support samplerate up to 384k
* support channel range from mono to 512ch

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I4a7d85ea77cabbb1ce6e9f1fc237d83443ab13b1
This commit is contained in:
Sugar Zhang
2023-09-14 09:51:43 +08:00
committed by Tao Huang
parent e92cb0063f
commit 62614fd022

View File

@@ -403,9 +403,9 @@ static int rockchip_mdais_dai_prepare(struct platform_device *pdev,
.probe = rockchip_mdais_dai_probe,
.playback = {
.stream_name = "Playback",
.channels_min = 2,
.channels_max = 32,
.rates = SNDRV_PCM_RATE_8000_192000,
.channels_min = 1,
.channels_max = 512,
.rates = SNDRV_PCM_RATE_8000_384000,
.formats = (SNDRV_PCM_FMTBIT_S8 |
SNDRV_PCM_FMTBIT_S16_LE |
SNDRV_PCM_FMTBIT_S20_3LE |
@@ -414,9 +414,9 @@ static int rockchip_mdais_dai_prepare(struct platform_device *pdev,
},
.capture = {
.stream_name = "Capture",
.channels_min = 2,
.channels_max = 32,
.rates = SNDRV_PCM_RATE_8000_192000,
.channels_min = 1,
.channels_max = 512,
.rates = SNDRV_PCM_RATE_8000_384000,
.formats = (SNDRV_PCM_FMTBIT_S8 |
SNDRV_PCM_FMTBIT_S16_LE |
SNDRV_PCM_FMTBIT_S20_3LE |