]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - sound/pci/lx6464es/lx_core.c
ALSA: lx_core: Remove dead code
[karo-tx-linux.git] / sound / pci / lx6464es / lx_core.c
index 2d8e95e9fbe59c547ad0026a136788e8e4f1d411..0ad6358b5fe2076e813b90b9912c108c110b80ec 100644 (file)
@@ -24,6 +24,7 @@
 
 /* #define RMH_DEBUG 1 */
 
+#include <linux/bitops.h>
 #include <linux/module.h>
 #include <linux/pci.h>
 #include <linux/delay.h>
@@ -429,11 +430,6 @@ int lx_dsp_read_async_events(struct lx6464es *chip, u32 *data)
        return ret;
 }
 
-#define CSES_TIMEOUT        100     /* microseconds */
-#define CSES_CE             0x0001
-#define CSES_BROADCAST      0x0002
-#define CSES_UPDATE_LDSV    0x0004
-
 #define PIPE_INFO_TO_CMD(capture, pipe)                                        \
        ((u32)((u32)(pipe) | ((capture) ? ID_IS_CAPTURE : 0L)) << ID_OFFSET)
 
@@ -971,9 +967,9 @@ int lx_level_peaks(struct lx6464es *chip, int is_capture, int channels,
 
 /* interrupt handling */
 #define PCX_IRQ_NONE 0
-#define IRQCS_ACTIVE_PCIDB  0x00002000L         /* Bit nÃ\83¸ 13 */
-#define IRQCS_ENABLE_PCIIRQ 0x00000100L         /* Bit nÃ\83¸ 08 */
-#define IRQCS_ENABLE_PCIDB  0x00000200L         /* Bit nÃ\83¸ 09 */
+#define IRQCS_ACTIVE_PCIDB     BIT(13)
+#define IRQCS_ENABLE_PCIIRQ    BIT(8)
+#define IRQCS_ENABLE_PCIDB     BIT(9)
 
 static u32 lx_interrupt_test_ack(struct lx6464es *chip)
 {
@@ -1045,10 +1041,6 @@ static int lx_interrupt_handle_async_events(struct lx6464es *chip, u32 irqsrc,
 
        u64 orun_mask;
        u64 urun_mask;
-#if 0
-       int has_underrun   = (irqsrc & MASK_SYS_STATUS_URUN) ? 1 : 0;
-       int has_overrun    = (irqsrc & MASK_SYS_STATUS_ORUN) ? 1 : 0;
-#endif
        int eb_pending_out = (irqsrc & MASK_SYS_STATUS_EOBO) ? 1 : 0;
        int eb_pending_in  = (irqsrc & MASK_SYS_STATUS_EOBI) ? 1 : 0;
 
@@ -1201,7 +1193,7 @@ irqreturn_t lx_interrupt(int irq, void *dev_id)
 
 #if 0
        if (irqsrc & MASK_SYS_STATUS_EOBI)
-               dev_dgg(chip->card->dev, "interrupt: EOBI\n");
+               dev_dbg(chip->card->dev, "interrupt: EOBI\n");
 
        if (irqsrc & MASK_SYS_STATUS_EOBO)
                dev_dbg(chip->card->dev, "interrupt: EOBO\n");