Skip to contentSkip to conversation

sound/pci: remove duplicated defines

PATCH In review Nicolas Kaiser 2 participants 3 messages Nov 9, 2007 – Nov 12, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sound/pci: remove duplicated defines

Remove duplicated defines.
(From their use it looks like 'midiDataOutx are written to rather than read from.)

---

 sound/pci/korg1212/korg1212.c |    3 ---
 sound/pci/rme9652/hdsp.c      |    2 --
 2 files changed, 5 deletions(-)
sound/pci/korg1212/korg1212.c +0 -3
diff -ur a/sound/pci/korg1212/korg1212.c b/sound/pci/korg1212/korg1212.c
@@ -163,9 +163,6 @@
 					//    this is the upper word of the PCI control reg.
 #define DEV_VEND_ID_OFFSET   0x70	// location of the device and vendor ID register
 
-#define COMMAND_ACK_DELAY    13        // number of RTC ticks to wait for an acknowledgement
-                                        //    from the card after sending a command.
-#define INTERCOMMAND_DELAY   40
 #define MAX_COMMAND_RETRIES  5         // maximum number of times the driver will attempt
                                        //    to send a command before giving up.
 #define COMMAND_ACK_MASK     0x8000    // the MSB is set in the command acknowledgment from
sound/pci/rme9652/hdsp.c +0 -2
diff -ur a/sound/pci/rme9652/hdsp.c b/sound/pci/rme9652/hdsp.c
@@ -104,8 +104,6 @@
 #define HDSP_statusRegister    0
 #define HDSP_timecode        128
 #define HDSP_status2Register 192
-#define HDSP_midiDataOut0    352
-#define HDSP_midiDataOut1    356
 #define HDSP_midiDataIn0     360
 #define HDSP_midiDataIn1     364
 #define HDSP_midiStatusOut0  384
#1 lore raw

At Fri, 9 Nov 2007 11:47:57 +0100,

Quoted 16 lines · Nicolas Kaiser

Remove duplicated defines.
(From their use it looks like 'midiDataOutx are written to rather than read from.)

---

 sound/pci/korg1212/korg1212.c |    3 ---
 sound/pci/rme9652/hdsp.c      |    2 --
 2 files changed, 5 deletions(-)

diff -ur a/sound/pci/korg1212/korg1212.c b/sound/pci/korg1212/korg1212.c

sound/pci/korg1212/korg1212.c line 168

Quoted 9 lines
sound/pci/korg1212/korg1212.c +0 -3
@@ -163,9 +163,6 @@
 					//    this is the upper word of the PCI control reg.
 #define DEV_VEND_ID_OFFSET   0x70	// location of the device and vendor ID register
 
-#define COMMAND_ACK_DELAY    13        // number of RTC ticks to wait for an acknowledgement
-                                        //    from the card after sending a command.
-#define INTERCOMMAND_DELAY   40
 #define MAX_COMMAND_RETRIES  5         // maximum number of times the driver will attempt
                                        //    to send a command before giving up.
 #define COMMAND_ACK_MASK     0x8000    // the MSB is set in the command acknowledgment from

These are OK to remove, but...

sound/pci/rme9652/hdsp.c line 109

Quoted 12 lines

diff -ur a/sound/pci/rme9652/hdsp.c b/sound/pci/rme9652/hdsp.c

sound/pci/rme9652/hdsp.c +0 -2
@@ -104,8 +104,6 @@
 #define HDSP_statusRegister    0
 #define HDSP_timecode        128
 #define HDSP_status2Register 192
-#define HDSP_midiDataOut0    352
-#define HDSP_midiDataOut1    356
 #define HDSP_midiDataIn0     360
 #define HDSP_midiDataIn1     364
 #define HDSP_midiStatusOut0  384

These are definitions of registers, thus it'd be helpful to keep for the future extension/debug (as currently no datasheet is available).

I'll apply only the first one.
Thanks.

Takashi

#2 lore raw
In reply to Nicolas Kaiser

At Mon, 12 Nov 2007 08:41:37 +0100,

Quoted 16 lines · I wrote:

sound/pci/rme9652/hdsp.c line 109

Quoted 13 lines

diff -ur a/sound/pci/rme9652/hdsp.c b/sound/pci/rme9652/hdsp.c

sound/pci/rme9652/hdsp.c +0 -2
@@ -104,8 +104,6 @@
 #define HDSP_statusRegister    0
 #define HDSP_timecode        128
 #define HDSP_status2Register 192
-#define HDSP_midiDataOut0    352
-#define HDSP_midiDataOut1    356
 #define HDSP_midiDataIn0     360
 #define HDSP_midiDataIn1     364
 #define HDSP_midiStatusOut0  384

These are definitions of registers, thus it'd be helpful to keep for the future extension/debug (as currently no datasheet is available).

Urgh, my mistake. This patch just removes the duplicated defines. I'll take all, of course, then.

thanks,

Takashi