mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 01:49:46 +00:00
Update DAC8x to support 384khz (#6187)
Update rpi-simple-soundcard.c with 384kHz support.
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user