Skip to contentSkip to conversation

ice1712.c CVS typos re Bug 1472 fix

PATCH Alan Horstmann 1 participant 1 message Mar 21, 2006

lore
Share & tools
lore
#0 lore raw

I recently checked the functioning of 'dxr_enable' for DMX6fire you implemented on CVS, and noticed a couple of typos which I think are best sorted. I've attached diff just to show the relevant lines. L90 did initialise to 500; I don't know if you think the explicit ={0} is necessary.

However I would comment that the DXR extension (whatever that is -I've never seen one) is still unsupported, and surely unlikely ever to be so. All DMX6fire specific code in ews.c etc assumes 6 DACs and ADCs, whereas the DXR is using 7 & 8. Specific driver functions may also be needed. Adding dxr_enable may give the false impression that it will work? That is why I thought it was OK to disable it completely in the original bug 1472 fix.

With or without typo fix the original changes do work, turning on and off the unused connections depending on value of dxr_enable.

Regards Alan

pci/ice1712/ice1712.c renamed from pci/ice1712/ice1712.c-179 +2 -2
@@ -87,7 +87,7 @@
 static char *model[SNDRV_CARDS];
 static int omni[SNDRV_CARDS];	/* Delta44 & 66 Omni I/O support */
 static int cs8427_timeout[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS-1)] = 500}; /* CS8427 S/PDIF transciever reset timeout value in msec */
-static int dxr_enable[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS-1)] = 500}; /* DXR enable for DMX6FIRE */
+static int dxr_enable[SNDRV_CARDS] = {0};  /* DXR enable for DMX6FIRE Default=disabled */
 
 module_param_array(index, int, NULL, 0444);
 MODULE_PARM_DESC(index, "Index value for ICE1712 soundcard.");
@@ -102,7 +102,7 @@
 module_param_array(model, charp, NULL, 0444);
 MODULE_PARM_DESC(model, "Use the given board model.");
 module_param_array(dxr_enable, int, NULL, 0444);
-MODULE_PARM_DESC(dsr_enable, "Enable DXR support for Terratec DMX6FIRE.");
+MODULE_PARM_DESC(dxr_enable, "Enable DXR support for Terratec DMX6FIRE.");
 
 
 static struct pci_device_id snd_ice1712_ids[] = {