0126-bcm2835-extend-allowed-range-of-channels-and-sampler.patch 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. From 9901970aec244478351526d0ec64bd71998a4898 Mon Sep 17 00:00:00 2001
  2. From: wm4 <wm4@nowhere>
  3. Date: Wed, 13 Jan 2016 19:41:45 +0100
  4. Subject: [PATCH] bcm2835: extend allowed range of channels and samplerates
  5. Allow everything the videocore accepts.
  6. ---
  7. sound/arm/bcm2835-pcm.c | 8 ++++----
  8. 1 file changed, 4 insertions(+), 4 deletions(-)
  9. --- a/sound/arm/bcm2835-pcm.c
  10. +++ b/sound/arm/bcm2835-pcm.c
  11. @@ -26,9 +26,9 @@ static struct snd_pcm_hardware snd_bcm28
  12. .formats = SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S16_LE,
  13. .rates = SNDRV_PCM_RATE_CONTINUOUS | SNDRV_PCM_RATE_8000_48000,
  14. .rate_min = 8000,
  15. - .rate_max = 48000,
  16. + .rate_max = 192000,
  17. .channels_min = 1,
  18. - .channels_max = 2,
  19. + .channels_max = 8,
  20. .buffer_bytes_max = 128 * 1024,
  21. .period_bytes_min = 1 * 1024,
  22. .period_bytes_max = 128 * 1024,
  23. @@ -43,9 +43,9 @@ static struct snd_pcm_hardware snd_bcm28
  24. .rates = SNDRV_PCM_RATE_CONTINUOUS | SNDRV_PCM_RATE_44100 |
  25. SNDRV_PCM_RATE_48000,
  26. .rate_min = 44100,
  27. - .rate_max = 48000,
  28. + .rate_max = 192000,
  29. .channels_min = 2,
  30. - .channels_max = 2,
  31. + .channels_max = 8,
  32. .buffer_bytes_max = 128 * 1024,
  33. .period_bytes_min = 1 * 1024,
  34. .period_bytes_max = 128 * 1024,