alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] hdspm.c: make driver name generic to avoid user confusion
@ 2011-06-07  8:48 Jörn Nettingsmeier
  0 siblings, 0 replies; 6+ messages in thread
From: Jörn Nettingsmeier @ 2011-06-07  8:48 UTC (permalink / raw)
  To: alsa-devel, Adrian Knoth

[-- Attachment #1: Type: text/plain, Size: 561 bytes --]

hi adi, *!


here's a trivial patch to change the driver name of hdspm.c to avoid 
irritating users who don't have the MADI version (just happened on the 
LAU list).

iiuc, no external software should make any assumptions about this 
string, so there should be no side effects, but i have been wrong before :)

please review and apply.


best,


jörn






-- 
Jörn Nettingsmeier
Lortzingstr. 11, 45128 Essen, Tel. +49 177 7937487

Meister für Veranstaltungstechnik (Bühne/Studio)
Tonmeister (VDT)

http://stackingdwarves.net

[-- Attachment #2: hdspm-driver-name.diff --]
[-- Type: text/x-patch, Size: 406 bytes --]

--- linux-2.6.39/sound/pci/rme9652/hdspm.c.orig	2011-05-19 06:06:34.000000000 +0200
+++ linux-2.6.39/sound/pci/rme9652/hdspm.c	2011-06-07 10:37:21.894932961 +0200
@@ -6775,7 +6775,7 @@
 }
 
 static struct pci_driver driver = {
-	.name = "RME Hammerfall DSP MADI",
+	.name = "RME Hammerfall HDSPe Series",
 	.id_table = snd_hdspm_ids,
 	.probe = snd_hdspm_probe,
 	.remove = __devexit_p(snd_hdspm_remove),


[-- Attachment #3: Type: text/plain, Size: 0 bytes --]



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] hdspm.c: make driver name generic to avoid user confusion
       [not found] <4DEDE4E2.4060303@folkwang-hochschule.de>
@ 2011-06-07  9:11 ` Adrian Knoth
  2011-06-07 10:39   ` Takashi Iwai
  2011-06-07 10:46   ` Jörn Nettingsmeier
  0 siblings, 2 replies; 6+ messages in thread
From: Adrian Knoth @ 2011-06-07  9:11 UTC (permalink / raw)
  To: Jörn Nettingsmeier; +Cc: alsa-devel

On Tue, Jun 07, 2011 at 10:44:18AM +0200, Jörn Nettingsmeier wrote:

> hi adi, *!

Hi!

> here's a trivial patch to change the driver name of hdspm.c to avoid  
> irritating users who don't have the MADI version (just happened on the  
> LAU list).

>  static struct pci_driver driver = {
> -	.name = "RME Hammerfall DSP MADI",
> +	.name = "RME Hammerfall HDSPe Series",

Are braces allowed in driver names? I guess so.

"HDSPe" is also confusing, only referring to the PCIe versions. Since we
also support the old PCI versions, I suggest to name it

   "RME Hammerfall HDSP(e) Series"

On the other hand, the 'H' in "HDSP" stands for "Hammerfall", so

   "RME HDSP(e) Series"

would be more appropriate. Luckily, we don't collide with the hdsp.c
driver name, but still, it's misleading, because there are cards that
match "RME HDSP(e) Series" (like the Multiface/Digiface) but are handled
by hdsp.c instead.

What at mess. ;) Merging hdsp.c into hdspm.c would be the clean approach
to this problem, still I don't have time for this in the near future.
Maybe in July.


Given that all current variants are misleading in one way or another, we
could also leave everything as is. What do you think?


Cheers

-- 
mail: adi@thur.de  	http://adi.thur.de	PGP/GPG: key via keyserver

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] hdspm.c: make driver name generic to avoid user confusion
  2011-06-07  9:11 ` [PATCH] hdspm.c: make driver name generic to avoid user confusion Adrian Knoth
@ 2011-06-07 10:39   ` Takashi Iwai
  2011-06-07 12:13     ` Takashi Iwai
  2011-06-14  7:00     ` Takashi Iwai
  2011-06-07 10:46   ` Jörn Nettingsmeier
  1 sibling, 2 replies; 6+ messages in thread
From: Takashi Iwai @ 2011-06-07 10:39 UTC (permalink / raw)
  To: Adrian Knoth; +Cc: Jörn Nettingsmeier, alsa-devel

At Tue, 7 Jun 2011 11:11:32 +0200,
Adrian Knoth wrote:
> 
> On Tue, Jun 07, 2011 at 10:44:18AM +0200, Jörn Nettingsmeier wrote:
> 
> > hi adi, *!
> 
> Hi!
> 
> > here's a trivial patch to change the driver name of hdspm.c to avoid  
> > irritating users who don't have the MADI version (just happened on the  
> > LAU list).
> 
> >  static struct pci_driver driver = {
> > -	.name = "RME Hammerfall DSP MADI",
> > +	.name = "RME Hammerfall HDSPe Series",
> 
> Are braces allowed in driver names? I guess so.
> 
> "HDSPe" is also confusing, only referring to the PCIe versions. Since we
> also support the old PCI versions, I suggest to name it
> 
>    "RME Hammerfall HDSP(e) Series"
> 
> On the other hand, the 'H' in "HDSP" stands for "Hammerfall", so
> 
>    "RME HDSP(e) Series"
> 
> would be more appropriate. Luckily, we don't collide with the hdsp.c
> driver name, but still, it's misleading, because there are cards that
> match "RME HDSP(e) Series" (like the Multiface/Digiface) but are handled
> by hdsp.c instead.

It's allowed but better to avoid, since this entry appears as a file
name in /sys.  We've chosen generic names for the pci name entries of
sound drivers, but these look messy.  Maybe we should choose just the
module name as pci name.


thanks,

Takashi
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] hdspm.c: make driver name generic to avoid user confusion
  2011-06-07  9:11 ` [PATCH] hdspm.c: make driver name generic to avoid user confusion Adrian Knoth
  2011-06-07 10:39   ` Takashi Iwai
@ 2011-06-07 10:46   ` Jörn Nettingsmeier
  1 sibling, 0 replies; 6+ messages in thread
From: Jörn Nettingsmeier @ 2011-06-07 10:46 UTC (permalink / raw)
  To: alsa-devel, Adrian Knoth

On 06/07/2011 11:11 AM, Adrian Knoth wrote:

> "HDSPe" is also confusing, only referring to the PCIe versions. Since we
> also support the old PCI versions, I suggest to name it
>
>     "RME Hammerfall HDSP(e) Series"
>
> On the other hand, the 'H' in "HDSP" stands for "Hammerfall", so
>
>     "RME HDSP(e) Series"
>
> would be more appropriate. Luckily, we don't collide with the hdsp.c
> driver name, but still, it's misleading, because there are cards that
> match "RME HDSP(e) Series" (like the Multiface/Digiface) but are handled
> by hdsp.c instead.
>
> What at mess. ;) Merging hdsp.c into hdspm.c would be the clean approach
> to this problem, still I don't have time for this in the near future.
> Maybe in July.
>
>
> Given that all current variants are misleading in one way or another, we
> could also leave everything as is. What do you think?

no. MADI is way too specific, and the only reason it's there is that 
winni started with just the MADI card...

enumerate supported cards? "RME HDSP AES32, AIO, RayDAT, MADI, MADIface"
kludgy, but less potential for user confusion.



-- 
Jörn Nettingsmeier
Lortzingstr. 11, 45128 Essen, Tel. +49 177 7937487

Meister für Veranstaltungstechnik (Bühne/Studio)
Tonmeister (VDT)

http://stackingdwarves.net

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] hdspm.c: make driver name generic to avoid user confusion
  2011-06-07 10:39   ` Takashi Iwai
@ 2011-06-07 12:13     ` Takashi Iwai
  2011-06-14  7:00     ` Takashi Iwai
  1 sibling, 0 replies; 6+ messages in thread
From: Takashi Iwai @ 2011-06-07 12:13 UTC (permalink / raw)
  To: Adrian Knoth; +Cc: Jörn Nettingsmeier, alsa-devel

At Tue, 07 Jun 2011 12:39:33 +0200,
Takashi Iwai wrote:
> 
> At Tue, 7 Jun 2011 11:11:32 +0200,
> Adrian Knoth wrote:
> > 
> > On Tue, Jun 07, 2011 at 10:44:18AM +0200, Jörn Nettingsmeier wrote:
> > 
> > > hi adi, *!
> > 
> > Hi!
> > 
> > > here's a trivial patch to change the driver name of hdspm.c to avoid  
> > > irritating users who don't have the MADI version (just happened on the  
> > > LAU list).
> > 
> > >  static struct pci_driver driver = {
> > > -	.name = "RME Hammerfall DSP MADI",
> > > +	.name = "RME Hammerfall HDSPe Series",
> > 
> > Are braces allowed in driver names? I guess so.
> > 
> > "HDSPe" is also confusing, only referring to the PCIe versions. Since we
> > also support the old PCI versions, I suggest to name it
> > 
> >    "RME Hammerfall HDSP(e) Series"
> > 
> > On the other hand, the 'H' in "HDSP" stands for "Hammerfall", so
> > 
> >    "RME HDSP(e) Series"
> > 
> > would be more appropriate. Luckily, we don't collide with the hdsp.c
> > driver name, but still, it's misleading, because there are cards that
> > match "RME HDSP(e) Series" (like the Multiface/Digiface) but are handled
> > by hdsp.c instead.
> 
> It's allowed but better to avoid, since this entry appears as a file
> name in /sys.  We've chosen generic names for the pci name entries of
> sound drivers, but these look messy.  Maybe we should choose just the
> module name as pci name.

Looking through the whole tree, the majority is to use the module name
as pci_driver.name indeed.  We should follow the convention, too.

So, Adrian, please don't take this to your patchset.
I'm going to fix all sound/pci/* up once for 3.1 kernel.


Takashi
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] hdspm.c: make driver name generic to avoid user confusion
  2011-06-07 10:39   ` Takashi Iwai
  2011-06-07 12:13     ` Takashi Iwai
@ 2011-06-14  7:00     ` Takashi Iwai
  1 sibling, 0 replies; 6+ messages in thread
From: Takashi Iwai @ 2011-06-14  7:00 UTC (permalink / raw)
  To: Adrian Knoth; +Cc: Jörn Nettingsmeier, alsa-devel

At Tue, 07 Jun 2011 12:39:33 +0200,
Takashi Iwai wrote:
> 
> At Tue, 7 Jun 2011 11:11:32 +0200,
> Adrian Knoth wrote:
> > 
> > On Tue, Jun 07, 2011 at 10:44:18AM +0200, Jörn Nettingsmeier wrote:
> > 
> > > hi adi, *!
> > 
> > Hi!
> > 
> > > here's a trivial patch to change the driver name of hdspm.c to avoid  
> > > irritating users who don't have the MADI version (just happened on the  
> > > LAU list).
> > 
> > >  static struct pci_driver driver = {
> > > -	.name = "RME Hammerfall DSP MADI",
> > > +	.name = "RME Hammerfall HDSPe Series",
> > 
> > Are braces allowed in driver names? I guess so.
> > 
> > "HDSPe" is also confusing, only referring to the PCIe versions. Since we
> > also support the old PCI versions, I suggest to name it
> > 
> >    "RME Hammerfall HDSP(e) Series"
> > 
> > On the other hand, the 'H' in "HDSP" stands for "Hammerfall", so
> > 
> >    "RME HDSP(e) Series"
> > 
> > would be more appropriate. Luckily, we don't collide with the hdsp.c
> > driver name, but still, it's misleading, because there are cards that
> > match "RME HDSP(e) Series" (like the Multiface/Digiface) but are handled
> > by hdsp.c instead.
> 
> It's allowed but better to avoid, since this entry appears as a file
> name in /sys.  We've chosen generic names for the pci name entries of
> sound drivers, but these look messy.  Maybe we should choose just the
> module name as pci name.

OK, now I fixed the issues in all sound/pci/* drivers in sound git tree.
Now they simply use KBUILD_MODNAME in the name field.


thanks,

Takashi
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-06-14  7:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <4DEDE4E2.4060303@folkwang-hochschule.de>
2011-06-07  9:11 ` [PATCH] hdspm.c: make driver name generic to avoid user confusion Adrian Knoth
2011-06-07 10:39   ` Takashi Iwai
2011-06-07 12:13     ` Takashi Iwai
2011-06-14  7:00     ` Takashi Iwai
2011-06-07 10:46   ` Jörn Nettingsmeier
2011-06-07  8:48 Jörn Nettingsmeier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).