Blob Blame History Raw
From: Takashi Iwai <tiwai@suse.de>
Subject: Assign USB audio as secondary devices as default
Patch-mainline: 
References: 309996, 309414, 308997

Assign the usb audio devices to the secondary slots as default
(unless explicitly spcified).  This is a workaround for the conflicts
of slot assignment with PCI devices.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
 sound/usb/usbaudio.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/sound/usb/usbaudio.c
+++ b/sound/usb/usbaudio.c
@@ -62,7 +62,7 @@ MODULE_LICENSE("GPL");
 MODULE_SUPPORTED_DEVICE("{{Generic,USB Audio}}");
 
 
-static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX;	/* Index 0-MAX */
+static int index[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS-1)] = -2};	/* exclude the 1st slot */
 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR;	/* ID for this card */
 static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP;/* Enable this card */
 /* Vendor/product IDs for this card */