0313-Revert-bcm2835-only-allow-stereo-if-analogue-jack-is.patch 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. From a6aaa7b9b060fcb361dd4d52255cb80d6e43fa5a Mon Sep 17 00:00:00 2001
  2. From: popcornmix <popcornmix@gmail.com>
  3. Date: Fri, 29 Apr 2016 17:28:06 +0100
  4. Subject: [PATCH] Revert "bcm2835: only allow stereo if analogue jack is
  5. selected"
  6. This reverts commit 5f7049894f47b3836838cd68e29ee883179c80b3.
  7. ---
  8. sound/arm/bcm2835-ctl.c | 12 ------------
  9. 1 file changed, 12 deletions(-)
  10. --- a/sound/arm/bcm2835-ctl.c
  11. +++ b/sound/arm/bcm2835-ctl.c
  12. @@ -423,16 +423,9 @@ static struct cea_channel_speaker_alloca
  13. { .ca_index = 0x31, .speakers = { FRW, FLW, RR, RL, FC, LFE, FR, FL } },
  14. };
  15. -static int uses_analogue(bcm2835_chip_t *chip)
  16. -{
  17. - return chip->dest == 1;
  18. -}
  19. -
  20. static int snd_bcm2835_chmap_ctl_tlv(struct snd_kcontrol *kcontrol, int op_flag,
  21. unsigned int size, unsigned int __user *tlv)
  22. {
  23. - struct snd_pcm_chmap *info = snd_kcontrol_chip(kcontrol);
  24. - bcm2835_chip_t *chip = info->private_data;
  25. unsigned int __user *dst;
  26. int count = 0;
  27. int i;
  28. @@ -449,9 +442,6 @@ static int snd_bcm2835_chmap_ctl_tlv(str
  29. int chs_bytes;
  30. int c;
  31. - if (i > 0 && uses_analogue(chip))
  32. - break;
  33. -
  34. for (c = 0; c < 8; c++) {
  35. if (ch->speakers[c])
  36. num_chs++;
  37. @@ -562,8 +552,6 @@ static int snd_bcm2835_chmap_ctl_put(str
  38. int matches = 1;
  39. int cur = 0;
  40. int x;
  41. - if (i > 0 && uses_analogue(chip))
  42. - break;
  43. memset(remap, 0, sizeof(remap));
  44. for (x = 0; x < substream->runtime->channels; x++) {
  45. int sp = ucontrol->value.integer.value[x];