Skip to contentSkip to conversation

alsa: lx6464es - support index module parameter

PATCH In review Tim Blechmann 2 participants 5 messages Jun 10, 2009 – Jun 11, 2009 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 alsa: lx6464es - support index module parameter

trivial patch to put the device to a specific index

---
 sound/pci/lx6464es/lx6464es.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
sound/pci/lx6464es/lx6464es.c +3 -0
index 870bfc5..dd0f12b 100644
@@ -43,6 +43,9 @@ static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX;
 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR;
 static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP;
 
+module_param_array(index, int, NULL, 0444);
+MODULE_PARM_DESC(index, "Index value for Digigram LX6464ES interface.");
+
 static const char card_name[] = "LX6464ES";
 
 
Signature · 1 line
1.6.2.1

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#1 lore raw

At Wed, 10 Jun 2009 23:41:54 +0200,

Quoted 13 lines · Tim Blechmann

trivial patch to put the device to a specific index

---
 sound/pci/lx6464es/lx6464es.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
sound/pci/lx6464es/lx6464es.c +0 -0
index 870bfc5..dd0f12b 100644

sound/pci/lx6464es/lx6464es.c static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; · line 47

Quoted 5 lines
sound/pci/lx6464es/lx6464es.c +2 -0
@@ -43,6 +43,9 @@ static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX;
 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR;
 static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP;
 
+module_param_array(index, int, NULL, 0444);
+MODULE_PARM_DESC(index, "Index value for Digigram LX6464ES interface.");

Please define the similar things for id and enable options.

thanks,

Takashi

#2 lore raw
Quoted 17 lines · Takashi Iwai

At Wed, 10 Jun 2009 23:41:54 +0200,

Quoted 15 lines · Tim Blechmann

trivial patch to put the device to a specific index

---
 sound/pci/lx6464es/lx6464es.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
sound/pci/lx6464es/lx6464es.c +0 -0
index 870bfc5..dd0f12b 100644
@@ -43,6 +43,9 @@ static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX;
 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR;
 static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP;
 
Quoted 4 lines

sound/pci/lx6464es/lx6464es.c static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; · line 47

Quoted 2 lines
sound/pci/lx6464es/lx6464es.c +2 -0
+module_param_array(index, int, NULL, 0444);
+MODULE_PARM_DESC(index, "Index value for Digigram LX6464ES interface.");

Please define the similar things for id and enable options.

oh, i wasn't aware of these parameters, just give me a second ...

Signature · 6 lines
[email protected]
http://tim.klingt.org

Your mind will answer most questions if you learn to relax and wait
for the answer.
  William S. Burroughs

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#3 lore raw

PATCH 1/1 alsa: lx6464es - support standard alsa module parameters

In reply to Takashi Iwai

trivial patch to support the alsa module parameters index', id' and `enable'

---
 sound/pci/lx6464es/lx6464es.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)
sound/pci/lx6464es/lx6464es.c +7 -0
index 870bfc5..ccf1b38 100644
@@ -43,6 +43,13 @@ static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX;
 static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR;
 static int enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP;
 
+module_param_array(index, int, NULL, 0444);
+MODULE_PARM_DESC(index, "Index value for Digigram LX6464ES interface.");
+module_param_array(id, charp, NULL, 0444);
+MODULE_PARM_DESC(id, "ID string for  Digigram LX6464ES interface.");
+module_param_array(enable, bool, NULL, 0444);
+MODULE_PARM_DESC(enable, "Enable/disable specific Digigram LX6464ES soundcards.");
+
 static const char card_name[] = "LX6464ES";
 
 
Signature · 1 line
1.6.2.1

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

#4 lore raw

Re: [PATCH] alsa: lx6464es - support standard alsa module parameters

At Thu, 11 Jun 2009 11:09:00 +0200,

Quoted 7 lines · Tim Blechmann

[1 <multipart/signed (7bit)>]
[1.1 <text/plain; US-ASCII (quoted-printable)>] trivial patch to support the alsa module parameters index', id' and `enable'

Applied now. Thanks.

Takashi