usbaudio: Update switch driver to report digital dock
Scott Peterson [Thu, 19 Dec 2013 23:06:46 +0000 (15:06 -0800)]
The current switch state output defaults to analog dock
which does not work well with the audio policy and is
not representative of what device is connected, which
is the digital dock.

Change-Id: I690ac58cdb8357989bb8fbd32899836f634a0b29
Signed-off-by: Scott Peterson <speterson@nvidia.com>
Reviewed-on: http://git-master/r/348124
Reviewed-by: Todd Poynter <tpoynter@nvidia.com>

sound/usb/card.c

index e0c0e25..9a60f3d 100644 (file)
@@ -119,7 +119,7 @@ static struct usb_driver usb_audio_driver;
 enum switch_state {
        STATE_CONNECTED_UNKNOWN = -1,
        STATE_DISCONNECTED = 0,
-       STATE_CONNECTED = 1
+       STATE_CONNECTED = 2
 };
 
 static struct switch_dev usb_switch_dev = {