Update DAC8x to support 384khz (#6187)

Update rpi-simple-soundcard.c with 384kHz support.
This commit is contained in:
Matthew
2024-05-26 20:20:50 +02:00
committed by Dom Cobley
parent 233fb22f99
commit 73659b04e7

View File

@@ -324,10 +324,10 @@ static int hifiberry_dac8x_init(struct snd_soc_pcm_runtime *rtd)
struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0); struct snd_soc_dai *codec_dai = snd_soc_rtd_to_codec(rtd, 0);
/* override the defaults to reflect 4 x PCM5102A on the card /* 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.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; return 0;
} }