All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] alsa: echoaudio - pci id cleanup
@ 2009-10-17  9:48 Tim Blechmann
  2009-11-04  8:25 ` Takashi Iwai
  0 siblings, 1 reply; 3+ messages in thread
From: Tim Blechmann @ 2009-10-17  9:48 UTC (permalink / raw)
  To: alsa-devel


[-- Attachment #1.1.1: Type: text/plain, Size: 873 bytes --]


using the PCI_VENDOR_ID_MOTOROLA definition instead of the value 0x1057
makes code a bit cleaner.

Signed-off-by: Tim Blechmann <tim@klingt.org>
---
 sound/pci/echoaudio/darla20.c   |    3 ++-
 sound/pci/echoaudio/darla24.c   |    6 ++++--
 sound/pci/echoaudio/echo3g.c    |    3 ++-
 sound/pci/echoaudio/gina20.c    |    3 ++-
 sound/pci/echoaudio/gina24.c    |   12 ++++++++----
 sound/pci/echoaudio/indigo.c    |    3 ++-
 sound/pci/echoaudio/indigodj.c  |    3 ++-
 sound/pci/echoaudio/indigodjx.c |    3 ++-
 sound/pci/echoaudio/indigoio.c  |    3 ++-
 sound/pci/echoaudio/indigoiox.c |    3 ++-
 sound/pci/echoaudio/layla20.c   |    6 ++++--
 sound/pci/echoaudio/layla24.c   |    3 ++-
 sound/pci/echoaudio/mia.c       |    6 ++++--
 sound/pci/echoaudio/mona.c      |   18 ++++++++++++------
 14 files changed, 50 insertions(+), 25 deletions(-)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.1.2: 0001-alsa-echoaudio-pci-id-cleanup.patch --]
[-- Type: text/x-patch; name="0001-alsa-echoaudio-pci-id-cleanup.patch", Size: 8446 bytes --]

diff --git a/sound/pci/echoaudio/darla20.c b/sound/pci/echoaudio/darla20.c
index 8c6db3a..3f03cf7 100644
--- a/sound/pci/echoaudio/darla20.c
+++ b/sound/pci/echoaudio/darla20.c
@@ -64,7 +64,8 @@ static const struct firmware card_fw[] = {
 };
 
 static struct pci_device_id snd_echo_ids[] = {
-	{0x1057, 0x1801, 0xECC0, 0x0010, 0, 0, 0},	/* DSP 56301 Darla20 rev.0 */
+	/* DSP 56301 Darla20 rev.0 */
+	{PCI_VENDOR_ID_MOTOROLA, 0x1801, 0xECC0, 0x0010, 0, 0, 0},
 	{0,}
 };
 
diff --git a/sound/pci/echoaudio/darla24.c b/sound/pci/echoaudio/darla24.c
index 04cbf3e..bd0aa0a 100644
--- a/sound/pci/echoaudio/darla24.c
+++ b/sound/pci/echoaudio/darla24.c
@@ -68,8 +68,10 @@ static const struct firmware card_fw[] = {
 };
 
 static struct pci_device_id snd_echo_ids[] = {
-	{0x1057, 0x1801, 0xECC0, 0x0040, 0, 0, 0},	/* DSP 56301 Darla24 rev.0 */
-	{0x1057, 0x1801, 0xECC0, 0x0041, 0, 0, 0},	/* DSP 56301 Darla24 rev.1 */
+	/* DSP 56301 Darla24 rev.0 */
+	{PCI_VENDOR_ID_MOTOROLA, 0x1801, 0xECC0, 0x0040, 0, 0, 0},
+	/* DSP 56301 Darla24 rev.1 */
+	{PCI_VENDOR_ID_MOTOROLA, 0x1801, 0xECC0, 0x0041, 0, 0, 0},
 	{0,}
 };
 
diff --git a/sound/pci/echoaudio/echo3g.c b/sound/pci/echoaudio/echo3g.c
index 4022e43..f8b2c47 100644
--- a/sound/pci/echoaudio/echo3g.c
+++ b/sound/pci/echoaudio/echo3g.c
@@ -82,7 +82,8 @@ static const struct firmware card_fw[] = {
 };
 
 static struct pci_device_id snd_echo_ids[] = {
-	{0x1057, 0x3410, 0xECC0, 0x0100, 0, 0, 0},	/* Echo 3G */
+	/* Echo 3G */
+	{PCI_VENDOR_ID_MOTOROLA, 0x3410, 0xECC0, 0x0100, 0, 0, 0},
 	{0,}
 };
 
diff --git a/sound/pci/echoaudio/gina20.c b/sound/pci/echoaudio/gina20.c
index c0e64b8..d00e92e 100644
--- a/sound/pci/echoaudio/gina20.c
+++ b/sound/pci/echoaudio/gina20.c
@@ -68,7 +68,8 @@ static const struct firmware card_fw[] = {
 };
 
 static struct pci_device_id snd_echo_ids[] = {
-	{0x1057, 0x1801, 0xECC0, 0x0020, 0, 0, 0},	/* DSP 56301 Gina20 rev.0 */
+	/* DSP 56301 Gina20 rev.0 */
+	{PCI_VENDOR_ID_MOTOROLA, 0x1801, 0xECC0, 0x0020, 0, 0, 0},
 	{0,}
 };
 
diff --git a/sound/pci/echoaudio/gina24.c b/sound/pci/echoaudio/gina24.c
index c36a78d..1f403c4 100644
--- a/sound/pci/echoaudio/gina24.c
+++ b/sound/pci/echoaudio/gina24.c
@@ -86,10 +86,14 @@ static const struct firmware card_fw[] = {
 };
 
 static struct pci_device_id snd_echo_ids[] = {
-	{0x1057, 0x1801, 0xECC0, 0x0050, 0, 0, 0},	/* DSP 56301 Gina24 rev.0 */
-	{0x1057, 0x1801, 0xECC0, 0x0051, 0, 0, 0},	/* DSP 56301 Gina24 rev.1 */
-	{0x1057, 0x3410, 0xECC0, 0x0050, 0, 0, 0},	/* DSP 56361 Gina24 rev.0 */
-	{0x1057, 0x3410, 0xECC0, 0x0051, 0, 0, 0},	/* DSP 56361 Gina24 rev.1 */
+	/* DSP 56301 Gina24 rev.0 */
+	{PCI_VENDOR_ID_MOTOROLA, 0x1801, 0xECC0, 0x0050, 0, 0, 0},
+	/* DSP 56301 Gina24 rev.1 */
+	{PCI_VENDOR_ID_MOTOROLA, 0x1801, 0xECC0, 0x0051, 0, 0, 0},
+	/* DSP 56361 Gina24 rev.0 */
+	{PCI_VENDOR_ID_MOTOROLA, 0x3410, 0xECC0, 0x0050, 0, 0, 0},
+	/* DSP 56361 Gina24 rev.1 */
+	{PCI_VENDOR_ID_MOTOROLA, 0x3410, 0xECC0, 0x0051, 0, 0, 0},
 	{0,}
 };
 
diff --git a/sound/pci/echoaudio/indigo.c b/sound/pci/echoaudio/indigo.c
index 0a58a7c..fa3e2c0 100644
--- a/sound/pci/echoaudio/indigo.c
+++ b/sound/pci/echoaudio/indigo.c
@@ -69,7 +69,8 @@ static const struct firmware card_fw[] = {
 };
 
 static struct pci_device_id snd_echo_ids[] = {
-	{0x1057, 0x3410, 0xECC0, 0x0090, 0, 0, 0},	/* Indigo */
+	/* Indigo */
+	{PCI_VENDOR_ID_MOTOROLA, 0x3410, 0xECC0, 0x0090, 0, 0, 0},
 	{0,}
 };
 
diff --git a/sound/pci/echoaudio/indigodj.c b/sound/pci/echoaudio/indigodj.c
index 2db24d2..3a68b11 100644
--- a/sound/pci/echoaudio/indigodj.c
+++ b/sound/pci/echoaudio/indigodj.c
@@ -69,7 +69,8 @@ static const struct firmware card_fw[] = {
 };
 
 static struct pci_device_id snd_echo_ids[] = {
-	{0x1057, 0x3410, 0xECC0, 0x00B0, 0, 0, 0},	/* Indigo DJ*/
+	/* Indigo DJ*/
+	{PCI_VENDOR_ID_MOTOROLA, 0x3410, 0xECC0, 0x00B0, 0, 0, 0},
 	{0,}
 };
 
diff --git a/sound/pci/echoaudio/indigodjx.c b/sound/pci/echoaudio/indigodjx.c
index 2e44316..270cc6b 100644
--- a/sound/pci/echoaudio/indigodjx.c
+++ b/sound/pci/echoaudio/indigodjx.c
@@ -69,7 +69,8 @@ static const struct firmware card_fw[] = {
 };
 
 static struct pci_device_id snd_echo_ids[] = {
-	{0x1057, 0x3410, 0xECC0, 0x00E0, 0, 0, 0},	/* Indigo DJx*/
+	/* Indigo DJx*/
+	{PCI_VENDOR_ID_MOTOROLA, 0x3410, 0xECC0, 0x00E0, 0, 0, 0},
 	{0,}
 };
 
diff --git a/sound/pci/echoaudio/indigoio.c b/sound/pci/echoaudio/indigoio.c
index a60c0a0..548862d 100644
--- a/sound/pci/echoaudio/indigoio.c
+++ b/sound/pci/echoaudio/indigoio.c
@@ -70,7 +70,8 @@ static const struct firmware card_fw[] = {
 };
 
 static struct pci_device_id snd_echo_ids[] = {
-	{0x1057, 0x3410, 0xECC0, 0x00A0, 0, 0, 0},	/* Indigo IO*/
+	/* Indigo IO*/
+	{PCI_VENDOR_ID_MOTOROLA, 0x3410, 0xECC0, 0x00A0, 0, 0, 0},
 	{0,}
 };
 
diff --git a/sound/pci/echoaudio/indigoiox.c b/sound/pci/echoaudio/indigoiox.c
index eb3819f..722417b 100644
--- a/sound/pci/echoaudio/indigoiox.c
+++ b/sound/pci/echoaudio/indigoiox.c
@@ -70,7 +70,8 @@ static const struct firmware card_fw[] = {
 };
 
 static struct pci_device_id snd_echo_ids[] = {
-	{0x1057, 0x3410, 0xECC0, 0x00D0, 0, 0, 0},	/* Indigo IOx */
+	/* Indigo IOx */
+	{PCI_VENDOR_ID_MOTOROLA, 0x3410, 0xECC0, 0x00D0, 0, 0, 0},
 	{0,}
 };
 
diff --git a/sound/pci/echoaudio/layla20.c b/sound/pci/echoaudio/layla20.c
index 5061946..7d4a4e0 100644
--- a/sound/pci/echoaudio/layla20.c
+++ b/sound/pci/echoaudio/layla20.c
@@ -77,8 +77,10 @@ static const struct firmware card_fw[] = {
 };
 
 static struct pci_device_id snd_echo_ids[] = {
-	{0x1057, 0x1801, 0xECC0, 0x0030, 0, 0, 0},	/* DSP 56301 Layla20 rev.0 */
-	{0x1057, 0x1801, 0xECC0, 0x0031, 0, 0, 0},	/* DSP 56301 Layla20 rev.1 */
+	/* DSP 56301 Layla20 rev.0 */
+	{PCI_VENDOR_ID_MOTOROLA, 0x1801, 0xECC0, 0x0030, 0, 0, 0},
+	/* DSP 56301 Layla20 rev.1 */
+	{PCI_VENDOR_ID_MOTOROLA, 0x1801, 0xECC0, 0x0031, 0, 0, 0},
 	{0,}
 };
 
diff --git a/sound/pci/echoaudio/layla24.c b/sound/pci/echoaudio/layla24.c
index e09e3ea..48246f8 100644
--- a/sound/pci/echoaudio/layla24.c
+++ b/sound/pci/echoaudio/layla24.c
@@ -88,7 +88,8 @@ static const struct firmware card_fw[] = {
 };
 
 static struct pci_device_id snd_echo_ids[] = {
-	{0x1057, 0x3410, 0xECC0, 0x0060, 0, 0, 0},	/* DSP 56361 Layla24 rev.0 */
+	/* DSP 56361 Layla24 rev.0 */
+	{PCI_VENDOR_ID_MOTOROLA, 0x3410, 0xECC0, 0x0060, 0, 0, 0},
 	{0,}
 };
 
diff --git a/sound/pci/echoaudio/mia.c b/sound/pci/echoaudio/mia.c
index f3b9b45..bbed105 100644
--- a/sound/pci/echoaudio/mia.c
+++ b/sound/pci/echoaudio/mia.c
@@ -77,8 +77,10 @@ static const struct firmware card_fw[] = {
 };
 
 static struct pci_device_id snd_echo_ids[] = {
-	{0x1057, 0x3410, 0xECC0, 0x0080, 0, 0, 0},	/* DSP 56361 Mia rev.0 */
-	{0x1057, 0x3410, 0xECC0, 0x0081, 0, 0, 0},	/* DSP 56361 Mia rev.1 */
+	/* DSP 56361 Mia rev.0 */
+	{PCI_VENDOR_ID_MOTOROLA, 0x3410, 0xECC0, 0x0080, 0, 0, 0},
+	/* DSP 56361 Mia rev.1 */
+	{PCI_VENDOR_ID_MOTOROLA, 0x3410, 0xECC0, 0x0081, 0, 0, 0},
 	{0,}
 };
 
diff --git a/sound/pci/echoaudio/mona.c b/sound/pci/echoaudio/mona.c
index b05bad9..917c9b2 100644
--- a/sound/pci/echoaudio/mona.c
+++ b/sound/pci/echoaudio/mona.c
@@ -93,12 +93,18 @@ static const struct firmware card_fw[] = {
 };
 
 static struct pci_device_id snd_echo_ids[] = {
-	{0x1057, 0x1801, 0xECC0, 0x0070, 0, 0, 0},	/* DSP 56301 Mona rev.0 */
-	{0x1057, 0x1801, 0xECC0, 0x0071, 0, 0, 0},	/* DSP 56301 Mona rev.1 */
-	{0x1057, 0x1801, 0xECC0, 0x0072, 0, 0, 0},	/* DSP 56301 Mona rev.2 */
-	{0x1057, 0x3410, 0xECC0, 0x0070, 0, 0, 0},	/* DSP 56361 Mona rev.0 */
-	{0x1057, 0x3410, 0xECC0, 0x0071, 0, 0, 0},	/* DSP 56361 Mona rev.1 */
-	{0x1057, 0x3410, 0xECC0, 0x0072, 0, 0, 0},	/* DSP 56361 Mona rev.2 */
+	/* DSP 56301 Mona rev.0 */
+	{PCI_VENDOR_ID_MOTOROLA, 0x1801, 0xECC0, 0x0070, 0, 0, 0},
+	/* DSP 56301 Mona rev.1 */
+	{PCI_VENDOR_ID_MOTOROLA, 0x1801, 0xECC0, 0x0071, 0, 0, 0},
+	/* DSP 56301 Mona rev.2 */
+	{PCI_VENDOR_ID_MOTOROLA, 0x1801, 0xECC0, 0x0072, 0, 0, 0},
+	/* DSP 56361 Mona rev.0 */
+	{PCI_VENDOR_ID_MOTOROLA, 0x3410, 0xECC0, 0x0070, 0, 0, 0},
+	/* DSP 56361 Mona rev.1 */
+	{PCI_VENDOR_ID_MOTOROLA, 0x3410, 0xECC0, 0x0071, 0, 0, 0},
+	/* DSP 56361 Mona rev.2 */
+	{PCI_VENDOR_ID_MOTOROLA, 0x3410, 0xECC0, 0x0072, 0, 0, 0},
 	{0,}
 };
 


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

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

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

* Re: [PATCH] alsa: echoaudio - pci id cleanup
  2009-10-17  9:48 [PATCH] alsa: echoaudio - pci id cleanup Tim Blechmann
@ 2009-11-04  8:25 ` Takashi Iwai
  2009-11-04  9:07   ` Tim Blechmann
  0 siblings, 1 reply; 3+ messages in thread
From: Takashi Iwai @ 2009-11-04  8:25 UTC (permalink / raw)
  To: Tim Blechmann; +Cc: alsa-devel

At Sat, 17 Oct 2009 11:48:23 +0200,
Tim Blechmann wrote:
> 
> using the PCI_VENDOR_ID_MOTOROLA definition instead of the value 0x1057
> makes code a bit cleaner.
> 
> Signed-off-by: Tim Blechmann <tim@klingt.org>

Well, I'm not always fond of this.  The only merit is that you can avoid
a typo.  But, if you look for a device from the source code from lspci,
this kind of change makes it hard.


thanks,

Takashi

> ---
>  sound/pci/echoaudio/darla20.c   |    3 ++-
>  sound/pci/echoaudio/darla24.c   |    6 ++++--
>  sound/pci/echoaudio/echo3g.c    |    3 ++-
>  sound/pci/echoaudio/gina20.c    |    3 ++-
>  sound/pci/echoaudio/gina24.c    |   12 ++++++++----
>  sound/pci/echoaudio/indigo.c    |    3 ++-
>  sound/pci/echoaudio/indigodj.c  |    3 ++-
>  sound/pci/echoaudio/indigodjx.c |    3 ++-
>  sound/pci/echoaudio/indigoio.c  |    3 ++-
>  sound/pci/echoaudio/indigoiox.c |    3 ++-
>  sound/pci/echoaudio/layla20.c   |    6 ++++--
>  sound/pci/echoaudio/layla24.c   |    3 ++-
>  sound/pci/echoaudio/mia.c       |    6 ++++--
>  sound/pci/echoaudio/mona.c      |   18 ++++++++++++------
>  14 files changed, 50 insertions(+), 25 deletions(-)
> [1.1.2 0001-alsa-echoaudio-pci-id-cleanup.patch <text/x-patch (quoted-printable)>]
> diff --git a/sound/pci/echoaudio/darla20.c b/sound/pci/echoaudio/darla20.c
> index 8c6db3a..3f03cf7 100644
> --- a/sound/pci/echoaudio/darla20.c
> +++ b/sound/pci/echoaudio/darla20.c
> @@ -64,7 +64,8 @@ static const struct firmware card_fw[] = {
>  };
>  
>  static struct pci_device_id snd_echo_ids[] = {
> -	{0x1057, 0x1801, 0xECC0, 0x0010, 0, 0, 0},	/* DSP 56301 Darla20 rev.0 */
> +	/* DSP 56301 Darla20 rev.0 */
> +	{PCI_VENDOR_ID_MOTOROLA, 0x1801, 0xECC0, 0x0010, 0, 0, 0},
>  	{0,}
>  };
>  
> diff --git a/sound/pci/echoaudio/darla24.c b/sound/pci/echoaudio/darla24.c
> index 04cbf3e..bd0aa0a 100644
> --- a/sound/pci/echoaudio/darla24.c
> +++ b/sound/pci/echoaudio/darla24.c
> @@ -68,8 +68,10 @@ static const struct firmware card_fw[] = {
>  };
>  
>  static struct pci_device_id snd_echo_ids[] = {
> -	{0x1057, 0x1801, 0xECC0, 0x0040, 0, 0, 0},	/* DSP 56301 Darla24 rev.0 */
> -	{0x1057, 0x1801, 0xECC0, 0x0041, 0, 0, 0},	/* DSP 56301 Darla24 rev.1 */
> +	/* DSP 56301 Darla24 rev.0 */
> +	{PCI_VENDOR_ID_MOTOROLA, 0x1801, 0xECC0, 0x0040, 0, 0, 0},
> +	/* DSP 56301 Darla24 rev.1 */
> +	{PCI_VENDOR_ID_MOTOROLA, 0x1801, 0xECC0, 0x0041, 0, 0, 0},
>  	{0,}
>  };
>  
> diff --git a/sound/pci/echoaudio/echo3g.c b/sound/pci/echoaudio/echo3g.c
> index 4022e43..f8b2c47 100644
> --- a/sound/pci/echoaudio/echo3g.c
> +++ b/sound/pci/echoaudio/echo3g.c
> @@ -82,7 +82,8 @@ static const struct firmware card_fw[] = {
>  };
>  
>  static struct pci_device_id snd_echo_ids[] = {
> -	{0x1057, 0x3410, 0xECC0, 0x0100, 0, 0, 0},	/* Echo 3G */
> +	/* Echo 3G */
> +	{PCI_VENDOR_ID_MOTOROLA, 0x3410, 0xECC0, 0x0100, 0, 0, 0},
>  	{0,}
>  };
>  
> diff --git a/sound/pci/echoaudio/gina20.c b/sound/pci/echoaudio/gina20.c
> index c0e64b8..d00e92e 100644
> --- a/sound/pci/echoaudio/gina20.c
> +++ b/sound/pci/echoaudio/gina20.c
> @@ -68,7 +68,8 @@ static const struct firmware card_fw[] = {
>  };
>  
>  static struct pci_device_id snd_echo_ids[] = {
> -	{0x1057, 0x1801, 0xECC0, 0x0020, 0, 0, 0},	/* DSP 56301 Gina20 rev.0 */
> +	/* DSP 56301 Gina20 rev.0 */
> +	{PCI_VENDOR_ID_MOTOROLA, 0x1801, 0xECC0, 0x0020, 0, 0, 0},
>  	{0,}
>  };
>  
> diff --git a/sound/pci/echoaudio/gina24.c b/sound/pci/echoaudio/gina24.c
> index c36a78d..1f403c4 100644
> --- a/sound/pci/echoaudio/gina24.c
> +++ b/sound/pci/echoaudio/gina24.c
> @@ -86,10 +86,14 @@ static const struct firmware card_fw[] = {
>  };
>  
>  static struct pci_device_id snd_echo_ids[] = {
> -	{0x1057, 0x1801, 0xECC0, 0x0050, 0, 0, 0},	/* DSP 56301 Gina24 rev.0 */
> -	{0x1057, 0x1801, 0xECC0, 0x0051, 0, 0, 0},	/* DSP 56301 Gina24 rev.1 */
> -	{0x1057, 0x3410, 0xECC0, 0x0050, 0, 0, 0},	/* DSP 56361 Gina24 rev.0 */
> -	{0x1057, 0x3410, 0xECC0, 0x0051, 0, 0, 0},	/* DSP 56361 Gina24 rev.1 */
> +	/* DSP 56301 Gina24 rev.0 */
> +	{PCI_VENDOR_ID_MOTOROLA, 0x1801, 0xECC0, 0x0050, 0, 0, 0},
> +	/* DSP 56301 Gina24 rev.1 */
> +	{PCI_VENDOR_ID_MOTOROLA, 0x1801, 0xECC0, 0x0051, 0, 0, 0},
> +	/* DSP 56361 Gina24 rev.0 */
> +	{PCI_VENDOR_ID_MOTOROLA, 0x3410, 0xECC0, 0x0050, 0, 0, 0},
> +	/* DSP 56361 Gina24 rev.1 */
> +	{PCI_VENDOR_ID_MOTOROLA, 0x3410, 0xECC0, 0x0051, 0, 0, 0},
>  	{0,}
>  };
>  
> diff --git a/sound/pci/echoaudio/indigo.c b/sound/pci/echoaudio/indigo.c
> index 0a58a7c..fa3e2c0 100644
> --- a/sound/pci/echoaudio/indigo.c
> +++ b/sound/pci/echoaudio/indigo.c
> @@ -69,7 +69,8 @@ static const struct firmware card_fw[] = {
>  };
>  
>  static struct pci_device_id snd_echo_ids[] = {
> -	{0x1057, 0x3410, 0xECC0, 0x0090, 0, 0, 0},	/* Indigo */
> +	/* Indigo */
> +	{PCI_VENDOR_ID_MOTOROLA, 0x3410, 0xECC0, 0x0090, 0, 0, 0},
>  	{0,}
>  };
>  
> diff --git a/sound/pci/echoaudio/indigodj.c b/sound/pci/echoaudio/indigodj.c
> index 2db24d2..3a68b11 100644
> --- a/sound/pci/echoaudio/indigodj.c
> +++ b/sound/pci/echoaudio/indigodj.c
> @@ -69,7 +69,8 @@ static const struct firmware card_fw[] = {
>  };
>  
>  static struct pci_device_id snd_echo_ids[] = {
> -	{0x1057, 0x3410, 0xECC0, 0x00B0, 0, 0, 0},	/* Indigo DJ*/
> +	/* Indigo DJ*/
> +	{PCI_VENDOR_ID_MOTOROLA, 0x3410, 0xECC0, 0x00B0, 0, 0, 0},
>  	{0,}
>  };
>  
> diff --git a/sound/pci/echoaudio/indigodjx.c b/sound/pci/echoaudio/indigodjx.c
> index 2e44316..270cc6b 100644
> --- a/sound/pci/echoaudio/indigodjx.c
> +++ b/sound/pci/echoaudio/indigodjx.c
> @@ -69,7 +69,8 @@ static const struct firmware card_fw[] = {
>  };
>  
>  static struct pci_device_id snd_echo_ids[] = {
> -	{0x1057, 0x3410, 0xECC0, 0x00E0, 0, 0, 0},	/* Indigo DJx*/
> +	/* Indigo DJx*/
> +	{PCI_VENDOR_ID_MOTOROLA, 0x3410, 0xECC0, 0x00E0, 0, 0, 0},
>  	{0,}
>  };
>  
> diff --git a/sound/pci/echoaudio/indigoio.c b/sound/pci/echoaudio/indigoio.c
> index a60c0a0..548862d 100644
> --- a/sound/pci/echoaudio/indigoio.c
> +++ b/sound/pci/echoaudio/indigoio.c
> @@ -70,7 +70,8 @@ static const struct firmware card_fw[] = {
>  };
>  
>  static struct pci_device_id snd_echo_ids[] = {
> -	{0x1057, 0x3410, 0xECC0, 0x00A0, 0, 0, 0},	/* Indigo IO*/
> +	/* Indigo IO*/
> +	{PCI_VENDOR_ID_MOTOROLA, 0x3410, 0xECC0, 0x00A0, 0, 0, 0},
>  	{0,}
>  };
>  
> diff --git a/sound/pci/echoaudio/indigoiox.c b/sound/pci/echoaudio/indigoiox.c
> index eb3819f..722417b 100644
> --- a/sound/pci/echoaudio/indigoiox.c
> +++ b/sound/pci/echoaudio/indigoiox.c
> @@ -70,7 +70,8 @@ static const struct firmware card_fw[] = {
>  };
>  
>  static struct pci_device_id snd_echo_ids[] = {
> -	{0x1057, 0x3410, 0xECC0, 0x00D0, 0, 0, 0},	/* Indigo IOx */
> +	/* Indigo IOx */
> +	{PCI_VENDOR_ID_MOTOROLA, 0x3410, 0xECC0, 0x00D0, 0, 0, 0},
>  	{0,}
>  };
>  
> diff --git a/sound/pci/echoaudio/layla20.c b/sound/pci/echoaudio/layla20.c
> index 5061946..7d4a4e0 100644
> --- a/sound/pci/echoaudio/layla20.c
> +++ b/sound/pci/echoaudio/layla20.c
> @@ -77,8 +77,10 @@ static const struct firmware card_fw[] = {
>  };
>  
>  static struct pci_device_id snd_echo_ids[] = {
> -	{0x1057, 0x1801, 0xECC0, 0x0030, 0, 0, 0},	/* DSP 56301 Layla20 rev.0 */
> -	{0x1057, 0x1801, 0xECC0, 0x0031, 0, 0, 0},	/* DSP 56301 Layla20 rev.1 */
> +	/* DSP 56301 Layla20 rev.0 */
> +	{PCI_VENDOR_ID_MOTOROLA, 0x1801, 0xECC0, 0x0030, 0, 0, 0},
> +	/* DSP 56301 Layla20 rev.1 */
> +	{PCI_VENDOR_ID_MOTOROLA, 0x1801, 0xECC0, 0x0031, 0, 0, 0},
>  	{0,}
>  };
>  
> diff --git a/sound/pci/echoaudio/layla24.c b/sound/pci/echoaudio/layla24.c
> index e09e3ea..48246f8 100644
> --- a/sound/pci/echoaudio/layla24.c
> +++ b/sound/pci/echoaudio/layla24.c
> @@ -88,7 +88,8 @@ static const struct firmware card_fw[] = {
>  };
>  
>  static struct pci_device_id snd_echo_ids[] = {
> -	{0x1057, 0x3410, 0xECC0, 0x0060, 0, 0, 0},	/* DSP 56361 Layla24 rev.0 */
> +	/* DSP 56361 Layla24 rev.0 */
> +	{PCI_VENDOR_ID_MOTOROLA, 0x3410, 0xECC0, 0x0060, 0, 0, 0},
>  	{0,}
>  };
>  
> diff --git a/sound/pci/echoaudio/mia.c b/sound/pci/echoaudio/mia.c
> index f3b9b45..bbed105 100644
> --- a/sound/pci/echoaudio/mia.c
> +++ b/sound/pci/echoaudio/mia.c
> @@ -77,8 +77,10 @@ static const struct firmware card_fw[] = {
>  };
>  
>  static struct pci_device_id snd_echo_ids[] = {
> -	{0x1057, 0x3410, 0xECC0, 0x0080, 0, 0, 0},	/* DSP 56361 Mia rev.0 */
> -	{0x1057, 0x3410, 0xECC0, 0x0081, 0, 0, 0},	/* DSP 56361 Mia rev.1 */
> +	/* DSP 56361 Mia rev.0 */
> +	{PCI_VENDOR_ID_MOTOROLA, 0x3410, 0xECC0, 0x0080, 0, 0, 0},
> +	/* DSP 56361 Mia rev.1 */
> +	{PCI_VENDOR_ID_MOTOROLA, 0x3410, 0xECC0, 0x0081, 0, 0, 0},
>  	{0,}
>  };
>  
> diff --git a/sound/pci/echoaudio/mona.c b/sound/pci/echoaudio/mona.c
> index b05bad9..917c9b2 100644
> --- a/sound/pci/echoaudio/mona.c
> +++ b/sound/pci/echoaudio/mona.c
> @@ -93,12 +93,18 @@ static const struct firmware card_fw[] = {
>  };
>  
>  static struct pci_device_id snd_echo_ids[] = {
> -	{0x1057, 0x1801, 0xECC0, 0x0070, 0, 0, 0},	/* DSP 56301 Mona rev.0 */
> -	{0x1057, 0x1801, 0xECC0, 0x0071, 0, 0, 0},	/* DSP 56301 Mona rev.1 */
> -	{0x1057, 0x1801, 0xECC0, 0x0072, 0, 0, 0},	/* DSP 56301 Mona rev.2 */
> -	{0x1057, 0x3410, 0xECC0, 0x0070, 0, 0, 0},	/* DSP 56361 Mona rev.0 */
> -	{0x1057, 0x3410, 0xECC0, 0x0071, 0, 0, 0},	/* DSP 56361 Mona rev.1 */
> -	{0x1057, 0x3410, 0xECC0, 0x0072, 0, 0, 0},	/* DSP 56361 Mona rev.2 */
> +	/* DSP 56301 Mona rev.0 */
> +	{PCI_VENDOR_ID_MOTOROLA, 0x1801, 0xECC0, 0x0070, 0, 0, 0},
> +	/* DSP 56301 Mona rev.1 */
> +	{PCI_VENDOR_ID_MOTOROLA, 0x1801, 0xECC0, 0x0071, 0, 0, 0},
> +	/* DSP 56301 Mona rev.2 */
> +	{PCI_VENDOR_ID_MOTOROLA, 0x1801, 0xECC0, 0x0072, 0, 0, 0},
> +	/* DSP 56361 Mona rev.0 */
> +	{PCI_VENDOR_ID_MOTOROLA, 0x3410, 0xECC0, 0x0070, 0, 0, 0},
> +	/* DSP 56361 Mona rev.1 */
> +	{PCI_VENDOR_ID_MOTOROLA, 0x3410, 0xECC0, 0x0071, 0, 0, 0},
> +	/* DSP 56361 Mona rev.2 */
> +	{PCI_VENDOR_ID_MOTOROLA, 0x3410, 0xECC0, 0x0072, 0, 0, 0},
>  	{0,}
>  };
>  
> 
> [1.2 OpenPGP digital signature <application/pgp-signature (7bit)>]
> 
> [2  <text/plain; us-ascii (7bit)>]
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

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

* Re: [PATCH] alsa: echoaudio - pci id cleanup
  2009-11-04  8:25 ` Takashi Iwai
@ 2009-11-04  9:07   ` Tim Blechmann
  0 siblings, 0 replies; 3+ messages in thread
From: Tim Blechmann @ 2009-11-04  9:07 UTC (permalink / raw)
  To: Takashi Iwai; +Cc: alsa-devel


[-- Attachment #1.1: Type: text/plain, Size: 803 bytes --]

On 11/04/2009 09:25 AM, Takashi Iwai wrote:
> At Sat, 17 Oct 2009 11:48:23 +0200,
> Tim Blechmann wrote:
>>
>> using the PCI_VENDOR_ID_MOTOROLA definition instead of the value 0x1057
>> makes code a bit cleaner.
>>
>> Signed-off-by: Tim Blechmann <tim@klingt.org>
> 
> Well, I'm not always fond of this.  The only merit is that you can avoid
> a typo.  But, if you look for a device from the source code from lspci,
> this kind of change makes it hard.

it helps, if this device is referred to by PCI_VENDOR_ID_MOTOROLA
instead of 0x1057, as it is done somewhere in the cardbus code ...

but since it is a rather cosmetic fix, feel free to drop the patch ...

tim

-- 
tim@klingt.org
http://tim.klingt.org

You don't have to call it music if the term shocks you.
  John Cage


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

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

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

end of thread, other threads:[~2009-11-04  9:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-17  9:48 [PATCH] alsa: echoaudio - pci id cleanup Tim Blechmann
2009-11-04  8:25 ` Takashi Iwai
2009-11-04  9:07   ` Tim Blechmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.