Last active
June 17, 2018 16:52
-
-
Save cavemandaveman/2a9f274cd5d2e4c02284005cbfc559c1 to your computer and use it in GitHub Desktop.
Alsa patch for Raspberry Pi to support up to 24 bit/192 kHz audio
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
index 71b1289..27181f0 100644 | |
--- a/sound/arm/bcm2835-pcm.c | |
+++ b/sound/arm/bcm2835-pcm.c | |
@@ -23,10 +23,10 @@ | |
static struct snd_pcm_hardware snd_bcm2835_playback_hw = { | |
.info = (SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_BLOCK_TRANSFER | | |
SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_MMAP_VALID), | |
- .formats = SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S16_LE, | |
- .rates = SNDRV_PCM_RATE_CONTINUOUS | SNDRV_PCM_RATE_8000_48000, | |
+ .formats = SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S32_LE, | |
+ .rates = SNDRV_PCM_RATE_CONTINUOUS | SNDRV_PCM_RATE_8000_192000, | |
.rate_min = 8000, | |
- .rate_max = 48000, | |
+ .rate_max = 192000, | |
.channels_min = 1, | |
.channels_max = 2, | |
.buffer_bytes_max = 128 * 1024, | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment