--- btsco.c.orig 2005-08-16 23:12:56.000000000 +0200 +++ btsco.c 2005-08-17 00:19:59.000000000 +0200 @@ -63,6 +63,11 @@ static char *mod_revision = "$Revision: 1.6 $"; +static int index[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = -2}; /* Exclude the first card */ + +module_param_array(index, int, NULL, 0444); +MODULE_PARM_DESC(index, "Index value for Bluetooth SCO Headset Soundcard."); + #undef dprintk #if 1 #define dprintk(fmt...) printk(KERN_INFO "snd-bt-sco: " fmt) @@ -964,7 +969,7 @@ snd_hwdep_t *hw; card = - snd_card_new(SNDRV_DEFAULT_IDX1, SNDRV_DEFAULT_STR1, + snd_card_new(index[dev], SNDRV_DEFAULT_STR1, THIS_MODULE, 0); if (card == NULL) return -ENOMEM;