ALSA: snd-usb: operate on given mixer interface only
authorDaniel Mack <zonque@gmail.com>
Thu, 4 Aug 2011 13:56:28 +0000 (15:56 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 4 Aug 2011 14:24:10 +0000 (16:24 +0200)
commit1faa5d07a93fc5b0a4a5254fc940a79e20b55540
tree4b80fc6a93f5a626d5c45e4163a26f97c0a20171
parent60c961a9e1ed879a4d151df6076bf1203f595f73
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>
sound/usb/mixer.c
sound/usb/mixer.h