ALSA: usb: Handle unplug during multiple devices
authorRahul Mittal <rmittal@nvidia.com>
Wed, 16 Oct 2013 06:04:26 +0000 (11:04 +0530)
committerBharat Nihalani <bnihalani@nvidia.com>
Fri, 25 Oct 2013 04:41:56 +0000 (21:41 -0700)
commit3e10a62a50bc6ddf386e47445a675788cce375dc
tree90365ccb489c8c779b9a7c67e6abafd4256d8e50
parent2f90c83c41737d7352fc959df09cc4d14518fd8f
ALSA: usb: Handle unplug during multiple devices

Set usb_audio switch state to DISCONNECTED only if
the device with active audio (i.e. the one which was
plugged-in earliest) is unplugged. Hence, unplugging
other devices won't disturb active audio.

Bug 1368093

Change-Id: I461c58cf15b20220fa627634423b6e23112ad64b
Signed-off-by: Rahul Mittal <rmittal@nvidia.com>
Reviewed-on: http://git-master/r/299797
Reviewed-by: Scott Peterson <speterson@nvidia.com>
GVS: Gerrit_Virtual_Submit
sound/usb/card.c