diff options
author | Waldemar Brodkorb <wbrodkorb@conet.de> | 2015-02-02 11:19:24 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbrodkorb@conet.de> | 2015-02-02 11:19:24 +0100 |
commit | d06f6986779f3e8c46762d8e26b704264ecfb66f (patch) | |
tree | 43d8215c1fc42171cf1eee7aea1f211aea4253c8 /target/arm/raspberry-pi/patches/3.18.5/0002-allow-to-control-volume-for-each-channel.patch | |
parent | 186658b5f1b1abc823e909e0f9825693b8d44876 (diff) |
update to linux kernel 3.18.5, refresh raspberry patch set
Diffstat (limited to 'target/arm/raspberry-pi/patches/3.18.5/0002-allow-to-control-volume-for-each-channel.patch')
-rw-r--r-- | target/arm/raspberry-pi/patches/3.18.5/0002-allow-to-control-volume-for-each-channel.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/target/arm/raspberry-pi/patches/3.18.5/0002-allow-to-control-volume-for-each-channel.patch b/target/arm/raspberry-pi/patches/3.18.5/0002-allow-to-control-volume-for-each-channel.patch new file mode 100644 index 000000000..76634e2e8 --- /dev/null +++ b/target/arm/raspberry-pi/patches/3.18.5/0002-allow-to-control-volume-for-each-channel.patch @@ -0,0 +1,26 @@ +From 05ca0b1b73f368564aef8cc4763e96a218cfefeb Mon Sep 17 00:00:00 2001 +From: Waldemar Brodkorb <wbrodkorb@conet.de> +Date: Mon, 2 Feb 2015 09:51:56 +0100 +Subject: [PATCH 2/2] allow to control volume for each channel + +Signed-off-by: Waldemar Brodkorb <wbrodkorb@conet.de> +--- + sound/arm/bcm2835-ctl.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/sound/arm/bcm2835-ctl.c b/sound/arm/bcm2835-ctl.c +index aad905f..12e77f5 100755 +--- a/sound/arm/bcm2835-ctl.c ++++ b/sound/arm/bcm2835-ctl.c +@@ -45,7 +45,7 @@ static int snd_bcm2835_ctl_info(struct snd_kcontrol *kcontrol, + audio_info(" ... IN\n"); + if (kcontrol->private_value == PCM_PLAYBACK_VOLUME) { + uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER; +- uinfo->count = 1; ++ uinfo->count = 2; + uinfo->value.integer.min = CTRL_VOL_MIN; + uinfo->value.integer.max = CTRL_VOL_MAX; /* 2303 */ + } else if (kcontrol->private_value == PCM_PLAYBACK_MUTE) { +-- +1.9.1 + |