projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d36c515
)
ALSA: usb-audio: US16x08: fix value count for level meters
author
Hector Martin
<marcan@marcan.st>
Fri, 27 Nov 2020 13:26:35 +0000
(22:26 +0900)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Tue, 8 Dec 2020 09:17:34 +0000
(10:17 +0100)
commit
402d5840b0d40a2a26c8651165d29b534abb6d36
upstream.
The level meter control returns 34 integers of info. This fixes:
snd-usb-audio 3-1:1.0: control 2:0:0:Level Meter:0: access overflow
Fixes:
d2bb390a2081
("ALSA: usb-audio: Tascam US-16x08 DSP mixer quirk")
Cc: stable@vger.kernel.org
Signed-off-by: Hector Martin <marcan@marcan.st>
Link:
https://lore.kernel.org/r/20201127132635.18947-1-marcan@marcan.st
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/usb/mixer_us16x08.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/usb/mixer_us16x08.c
b/sound/usb/mixer_us16x08.c
index 26ed23b18b7774fd495f7ce90e51ec6dc8022e2d..7db3032e723a46f46b5d09743e80579d7b000aae 100644
(file)
--- a/
sound/usb/mixer_us16x08.c
+++ b/
sound/usb/mixer_us16x08.c
@@
-617,7
+617,7
@@
static int snd_us16x08_eq_put(struct snd_kcontrol *kcontrol,
static int snd_us16x08_meter_info(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_info *uinfo)
{
- uinfo->count =
1
;
+ uinfo->count =
34
;
uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
uinfo->value.integer.max = 0x7FFF;
uinfo->value.integer.min = 0;