0002-allow-to-control-volume-for-each-channel.patch 935 B

1234567891011121314151617181920212223242526
  1. From 05ca0b1b73f368564aef8cc4763e96a218cfefeb Mon Sep 17 00:00:00 2001
  2. From: Waldemar Brodkorb <wbrodkorb@conet.de>
  3. Date: Mon, 2 Feb 2015 09:51:56 +0100
  4. Subject: [PATCH 2/2] allow to control volume for each channel
  5. Signed-off-by: Waldemar Brodkorb <wbrodkorb@conet.de>
  6. ---
  7. sound/arm/bcm2835-ctl.c | 2 +-
  8. 1 file changed, 1 insertion(+), 1 deletion(-)
  9. diff --git a/sound/arm/bcm2835-ctl.c b/sound/arm/bcm2835-ctl.c
  10. index aad905f..12e77f5 100755
  11. --- a/sound/arm/bcm2835-ctl.c
  12. +++ b/sound/arm/bcm2835-ctl.c
  13. @@ -45,7 +45,7 @@ static int snd_bcm2835_ctl_info(struct snd_kcontrol *kcontrol,
  14. audio_info(" ... IN\n");
  15. if (kcontrol->private_value == PCM_PLAYBACK_VOLUME) {
  16. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  17. - uinfo->count = 1;
  18. + uinfo->count = 2;
  19. uinfo->value.integer.min = CTRL_VOL_MIN;
  20. uinfo->value.integer.max = CTRL_VOL_MAX; /* 2303 */
  21. } else if (kcontrol->private_value == PCM_PLAYBACK_MUTE) {
  22. --
  23. 1.9.1