]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: Fix the first PCM interface assignment
authorTakashi Iwai <tiwai@suse.de>
Fri, 6 Jul 2012 06:11:43 +0000 (08:11 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 6 Jul 2012 06:11:43 +0000 (08:11 +0200)
commit35dcff1e8a1ccc971bcec2da12c4261653846132
tree48741ea76284cd4c1b8bab3e2decd82991ea5443
parentec0ca4d253835340de480a9e108b0a8e81a69582
ALSA: usb-audio: Fix the first PCM interface assignment

In the new PCM streaming logic, the interface number is assigned to
usb stream instance (subs->interface) after the format and rate setups
are succeeded, but some codes are still passing subs->interface as the
reference to helper functions.  This leads to initializing with an
invalid iface number (-1).

This patch replaces the wrong references with the ones from the target
fmt correctly.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/pcm.c