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

12345678910111213141516171819202122232425262728293031323334353637
  1. From 807249934e7f9453ba64a5724daecf9f61f42e07 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 126/381] bcm2835: extend allowed range of channels and
  5. samplerates
  6. Allow everything the videocore accepts.
  7. ---
  8. sound/arm/bcm2835-pcm.c | 8 ++++----
  9. 1 file changed, 4 insertions(+), 4 deletions(-)
  10. --- a/sound/arm/bcm2835-pcm.c
  11. +++ b/sound/arm/bcm2835-pcm.c
  12. @@ -26,9 +26,9 @@ static struct snd_pcm_hardware snd_bcm28
  13. .formats = SNDRV_PCM_FMTBIT_U8 | SNDRV_PCM_FMTBIT_S16_LE,
  14. .rates = SNDRV_PCM_RATE_CONTINUOUS | SNDRV_PCM_RATE_8000_48000,
  15. .rate_min = 8000,
  16. - .rate_max = 48000,
  17. + .rate_max = 192000,
  18. .channels_min = 1,
  19. - .channels_max = 2,
  20. + .channels_max = 8,
  21. .buffer_bytes_max = 128 * 1024,
  22. .period_bytes_min = 1 * 1024,
  23. .period_bytes_max = 128 * 1024,
  24. @@ -43,9 +43,9 @@ static struct snd_pcm_hardware snd_bcm28
  25. .rates = SNDRV_PCM_RATE_CONTINUOUS | SNDRV_PCM_RATE_44100 |
  26. SNDRV_PCM_RATE_48000,
  27. .rate_min = 44100,
  28. - .rate_max = 48000,
  29. + .rate_max = 192000,
  30. .channels_min = 2,
  31. - .channels_max = 2,
  32. + .channels_max = 8,
  33. .buffer_bytes_max = 128 * 1024,
  34. .period_bytes_min = 1 * 1024,
  35. .period_bytes_max = 128 * 1024,