]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit812524d70be34a259db693c38dd61b7ff296fa43
tree4b80fc6a93f5a626d5c45e4163a26f97c0a20171
parentb5b1dfdbba69d319d7f72a06e5bc456abe8550da
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