ASoC: dwc: Permit sample rates up to 384kHz
authorPhil Elwell <phil@raspberrypi.com>
Mon, 27 Nov 2023 12:16:04 +0000 (12:16 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:35:17 +0000 (11:35 +0000)
The BCM2835 I2S block advertises clock rates up to 384kHz, and there's
no reason why RP1's DWC I2S block shouldn't do the same.

See: https://github.com/raspberrypi/linux/issues/5748

Signed-off-by: Phil Elwell <phil@raspberrypi.com>
sound/soc/dwc/dwc-i2s.c

index 9d6a12e9a5a707521b4398e34c808adaa8a6e997..c196ad709a46e09e3114950e1f2b1f3a18445f0f 100644 (file)
@@ -796,7 +796,7 @@ static int dw_configure_dai_by_dt(struct dw_i2s_dev *dev,
        u32 idx2;
        int ret;
 
-       ret = dw_configure_dai(dev, dw_i2s_dai, SNDRV_PCM_RATE_8000_192000);
+       ret = dw_configure_dai(dev, dw_i2s_dai, SNDRV_PCM_RATE_8000_384000);
        if (ret < 0)
                return ret;