mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] aw2-alsa.c: use pci_ids.h defines and fix checkpatch.pl noise
@ 2010-05-21 22:35 H Hartley Sweeten
  2010-05-25 18:25 ` Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: H Hartley Sweeten @ 2010-05-21 22:35 UTC (permalink / raw)
  To: linux-kernel, alsa-devel; +Cc: perex, tiwai

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="utf-8", Size: 2136 bytes --]

Use the VENDOR/DEVICE ids provided in pci_ids.h instead of creating
local ids of the same values.

Also, fix the following checkpatch.pl warnings:

WARNING: Use #include <linux/io.h> instead of <asm/io.h>
WARNING: unnecessary whitespace before a quoted newline

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Jaroslav Kysela <perex@perex.cz>
Cc: Takashi Iwai <tiwai@suse.de>

---

diff --git a/sound/pci/aw2/aw2-alsa.c b/sound/pci/aw2/aw2-alsa.c
index 67921f9..c150022 100644
--- a/sound/pci/aw2/aw2-alsa.c
+++ b/sound/pci/aw2/aw2-alsa.c
@@ -26,7 +26,7 @@
 #include <linux/slab.h>
 #include <linux/interrupt.h>
 #include <linux/delay.h>
-#include <asm/io.h>
+#include <linux/io.h>
 #include <sound/core.h>
 #include <sound/initval.h>
 #include <sound/pcm.h>
@@ -44,9 +44,6 @@ MODULE_LICENSE("GPL");
 /*********************************
  * DEFINES
  ********************************/
-#define PCI_VENDOR_ID_SAA7146		  0x1131
-#define PCI_DEVICE_ID_SAA7146		  0x7146
-
 #define CTL_ROUTE_ANALOG 0
 #define CTL_ROUTE_DIGITAL 1
 
@@ -165,7 +162,7 @@ module_param_array(enable, bool, NULL, 0444);
 MODULE_PARM_DESC(enable, "Enable Audiowerk2 soundcard.");
 
 static DEFINE_PCI_DEVICE_TABLE(snd_aw2_ids) = {
-	{PCI_VENDOR_ID_SAA7146, PCI_DEVICE_ID_SAA7146, 0, 0,
+	{PCI_VENDOR_ID_PHILIPS, PCI_DEVICE_ID_PHILIPS_SAA7146, 0, 0,
 	 0, 0, 0},
 	{0}
 };
@@ -419,7 +416,7 @@ static int snd_aw2_pcm_playback_open(struct snd_pcm_substream *substream)
 {
 	struct snd_pcm_runtime *runtime = substream->runtime;
 
-	snd_printdd(KERN_DEBUG "aw2: Playback_open \n");
+	snd_printdd(KERN_DEBUG "aw2: Playback_open\n");
 	runtime->hw = snd_aw2_playback_hw;
 	return 0;
 }
@@ -435,7 +432,7 @@ static int snd_aw2_pcm_capture_open(struct snd_pcm_substream *substream)
 {
 	struct snd_pcm_runtime *runtime = substream->runtime;
 
-	snd_printdd(KERN_DEBUG "aw2: Capture_open \n");
+	snd_printdd(KERN_DEBUG "aw2: Capture_open\n");
 	runtime->hw = snd_aw2_capture_hw;
 	return 0;
 }
ÿôèº{.nÇ+‰·Ÿ®‰­†+%ŠËÿ±éݶ\x17¥Šwÿº{.nÇ+‰·¥Š{±þG«éÿŠ{ayº\x1dʇڙë,j\a­¢f£¢·hšïêÿ‘êçz_è®\x03(­éšŽŠÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?™¨è­Ú&£ø§~á¶iO•æ¬z·švØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?–I¥

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

* Re: [PATCH] aw2-alsa.c: use pci_ids.h defines and fix checkpatch.pl noise
  2010-05-21 22:35 [PATCH] aw2-alsa.c: use pci_ids.h defines and fix checkpatch.pl noise H Hartley Sweeten
@ 2010-05-25 18:25 ` Takashi Iwai
  0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2010-05-25 18:25 UTC (permalink / raw)
  To: H Hartley Sweeten; +Cc: linux-kernel, alsa-devel, perex

At Fri, 21 May 2010 17:35:03 -0500,
H Hartley Sweeten wrote:
> 
> Use the VENDOR/DEVICE ids provided in pci_ids.h instead of creating
> local ids of the same values.
> 
> Also, fix the following checkpatch.pl warnings:
> 
> WARNING: Use #include <linux/io.h> instead of <asm/io.h>
> WARNING: unnecessary whitespace before a quoted newline
> 
> Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
> Cc: Jaroslav Kysela <perex@perex.cz>
> Cc: Takashi Iwai <tiwai@suse.de>

Applied now.  Thanks.


Takashi

> ---
> 
> diff --git a/sound/pci/aw2/aw2-alsa.c b/sound/pci/aw2/aw2-alsa.c
> index 67921f9..c150022 100644
> --- a/sound/pci/aw2/aw2-alsa.c
> +++ b/sound/pci/aw2/aw2-alsa.c
> @@ -26,7 +26,7 @@
>  #include <linux/slab.h>
>  #include <linux/interrupt.h>
>  #include <linux/delay.h>
> -#include <asm/io.h>
> +#include <linux/io.h>
>  #include <sound/core.h>
>  #include <sound/initval.h>
>  #include <sound/pcm.h>
> @@ -44,9 +44,6 @@ MODULE_LICENSE("GPL");
>  /*********************************
>   * DEFINES
>   ********************************/
> -#define PCI_VENDOR_ID_SAA7146		  0x1131
> -#define PCI_DEVICE_ID_SAA7146		  0x7146
> -
>  #define CTL_ROUTE_ANALOG 0
>  #define CTL_ROUTE_DIGITAL 1
>  
> @@ -165,7 +162,7 @@ module_param_array(enable, bool, NULL, 0444);
>  MODULE_PARM_DESC(enable, "Enable Audiowerk2 soundcard.");
>  
>  static DEFINE_PCI_DEVICE_TABLE(snd_aw2_ids) = {
> -	{PCI_VENDOR_ID_SAA7146, PCI_DEVICE_ID_SAA7146, 0, 0,
> +	{PCI_VENDOR_ID_PHILIPS, PCI_DEVICE_ID_PHILIPS_SAA7146, 0, 0,
>  	 0, 0, 0},
>  	{0}
>  };
> @@ -419,7 +416,7 @@ static int snd_aw2_pcm_playback_open(struct snd_pcm_substream *substream)
>  {
>  	struct snd_pcm_runtime *runtime = substream->runtime;
>  
> -	snd_printdd(KERN_DEBUG "aw2: Playback_open \n");
> +	snd_printdd(KERN_DEBUG "aw2: Playback_open\n");
>  	runtime->hw = snd_aw2_playback_hw;
>  	return 0;
>  }
> @@ -435,7 +432,7 @@ static int snd_aw2_pcm_capture_open(struct snd_pcm_substream *substream)
>  {
>  	struct snd_pcm_runtime *runtime = substream->runtime;
>  
> -	snd_printdd(KERN_DEBUG "aw2: Capture_open \n");
> +	snd_printdd(KERN_DEBUG "aw2: Capture_open\n");
>  	runtime->hw = snd_aw2_capture_hw;
>  	return 0;
>  }

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

end of thread, other threads:[~2010-05-25 18:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-21 22:35 [PATCH] aw2-alsa.c: use pci_ids.h defines and fix checkpatch.pl noise H Hartley Sweeten
2010-05-25 18:25 ` Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®