0310-Revert-bcm2835-add-fallback-channel-layouts-if-chann.patch 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. From fc43a2bf668e325aab427a8c0827cfc3b8a1e39f Mon Sep 17 00:00:00 2001
  2. From: popcornmix <popcornmix@gmail.com>
  3. Date: Fri, 29 Apr 2016 17:27:35 +0100
  4. Subject: [PATCH] Revert "bcm2835: add fallback channel layouts if channel map
  5. API is not used"
  6. This reverts commit ceacfff9f86f89826dbc8a6df667f485894327d1.
  7. ---
  8. sound/arm/bcm2835-vchiq.c | 11 +----------
  9. 1 file changed, 1 insertion(+), 10 deletions(-)
  10. --- a/sound/arm/bcm2835-vchiq.c
  11. +++ b/sound/arm/bcm2835-vchiq.c
  12. @@ -598,16 +598,7 @@ int bcm2835_audio_set_params(bcm2835_als
  13. if (alsa_stream->chip->cea_chmap >= 0) {
  14. chmap_value = (unsigned)alsa_stream->chip->cea_chmap << 24;
  15. } else {
  16. - /* fallback layouts for applications which do not use chmap API */
  17. - chmap_value = 0x00;
  18. - switch (channels) {
  19. - case 3: chmap_value = 0x01; break;
  20. - case 4: chmap_value = 0x03; break;
  21. - case 5: chmap_value = 0x07; break;
  22. - case 6: chmap_value = 0x0b; break;
  23. - case 7: chmap_value = 0x0f; break;
  24. - case 8: chmap_value = 0x13; break;
  25. - }
  26. + chmap_value = 0; /* force stereo */
  27. for (i = 0; i < 8; i++)
  28. alsa_stream->chip->map_channels[i] = i;
  29. }