mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-30 10:39:04 +00:00
26 lines
927 B
Diff
26 lines
927 B
Diff
|
From dd7a15472b18d4bce738bb9213443c140473833b Mon Sep 17 00:00:00 2001
|
||
|
From: Matthew <sirfragles@gmail.com>
|
||
|
Date: Sun, 26 May 2024 20:20:50 +0200
|
||
|
Subject: [PATCH 1108/1135] Update DAC8x to support 384khz (#6187)
|
||
|
|
||
|
Update rpi-simple-soundcard.c with 384kHz support.
|
||
|
---
|
||
|
sound/soc/bcm/rpi-simple-soundcard.c | 4 ++--
|
||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||
|
|
||
|
--- a/sound/soc/bcm/rpi-simple-soundcard.c
|
||
|
+++ b/sound/soc/bcm/rpi-simple-soundcard.c
|
||
|
@@ -324,10 +324,10 @@ static int hifiberry_dac8x_init(struct s
|
||
|
struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(rtd, 0);
|
||
|
|
||
|
/* override the defaults to reflect 4 x PCM5102A on the card
|
||
|
- * and limit the sample rate to 192ksps
|
||
|
+ * and limit the sample rate to 384ksps
|
||
|
*/
|
||
|
codec_dai->driver->playback.channels_max = 8;
|
||
|
- codec_dai->driver->playback.rates = SNDRV_PCM_RATE_8000_192000;
|
||
|
+ codec_dai->driver->playback.rates = SNDRV_PCM_RATE_8000_384000;
|
||
|
|
||
|
return 0;
|
||
|
}
|