diff options
author | Daniel Mack <zonque@gmail.com> | 2011-08-04 15:56:28 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-08-04 16:24:10 +0200 |
commit | 1faa5d07a93fc5b0a4a5254fc940a79e20b55540 (patch) | |
tree | 4b80fc6a93f5a626d5c45e4163a26f97c0a20171 /sound/usb/mixer.h | |
parent | ALSA: snd-usb: avoid dividing by zero on invalid input (diff) | |
download | linux-1faa5d07a93fc5b0a4a5254fc940a79e20b55540.tar.xz linux-1faa5d07a93fc5b0a4a5254fc940a79e20b55540.zip |
ALSA: snd-usb: operate on given mixer interface only
When creating the mixers for an USB audio device, the current code looks
at the host interface stored in mixer->chip->ctrl_if. Change this and
rather keep a local pointer to the interface that was given when
snd_usb_create_mixer() was called.
Signed-off-by: Daniel Mack <zonque@gmail.com>
Reported-by: Nicolai Krakowiak <nicolai.krakowiak@gmail.com>
Reported-by: Lean-Yves LENHOF <jean-yves@lenhof.eu.org>
Acked-by: Clemens Ladisch <clemens@ladisch.de>
Cc: stable@kernel.org
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb/mixer.h')
-rw-r--r-- | sound/usb/mixer.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/usb/mixer.h b/sound/usb/mixer.h index ae1a14dcfe82..81b2d8a32fb0 100644 --- a/sound/usb/mixer.h +++ b/sound/usb/mixer.h @@ -3,6 +3,7 @@ struct usb_mixer_interface { struct snd_usb_audio *chip; + struct usb_host_interface *hostif; struct list_head list; unsigned int ignore_ctl_error; struct urb *urb; |