ALSA: emu10k1: Fix warning: "CCR" redefined
authorNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Mon, 18 Oct 2010 03:20:39 +0000 (12:20 +0900)
committerTakashi Iwai <tiwai@suse.de>
Mon, 18 Oct 2010 05:45:44 +0000 (07:45 +0200)
CCR is defined in emu10k1, but SuperH is defined too.
If user use this driver with SuperH, it becomes a double definition.

Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Cc: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/emu10k1.h

index 7dc97d12253c1bdc494b939e5e856b1b1fa6fc2c..4f865df42f0f9daf2e078b6a26c1b108638454ba 100644 (file)
 #define CCCA_CURRADDR_MASK     0x00ffffff      /* Current address of the selected channel              */
 #define CCCA_CURRADDR          0x18000008
 
+/* undefine CCR to avoid conflict with the definition for SH */
+#undef CCR
 #define CCR                    0x09            /* Cache control register                               */
 #define CCR_CACHEINVALIDSIZE   0x07190009
 #define CCR_CACHEINVALIDSIZE_MASK      0xfe000000      /* Number of invalid samples cache for this channel     */