aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndres Salomon <dilinger@debian.org>2007-09-03 09:43:18 -0400
committerJaroslav Kysela <perex@perex.cz>2007-10-16 09:59:53 -0400
commit506ea68cd9e8899ac2b97f466956e670d60026dc (patch)
treefbeaccd03c6afc8b5267325d72f68cb374c1a358
parent1caae3682e2a712b64ce682702ed56bb3dc9f435 (diff)
[ALSA] cs5535audio: fix ACC_BM[x]_CMD register handling
According to 6.3.2.7 of the cs5535/cs5536 data sheets, the ACC_BM[x]_CMD registers are only 8 bits wide. This driver treats them as 32 bits wide, and also has bits in the wrong place. Simple fix to the definitions. Signed-off-by: Andres Salomon <dilinger@debian.org> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
-rw-r--r--sound/pci/cs5535audio/cs5535audio.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/pci/cs5535audio/cs5535audio.h b/sound/pci/cs5535audio/cs5535audio.h
index c7a204467037..516219ad5e8f 100644
--- a/sound/pci/cs5535audio/cs5535audio.h
+++ b/sound/pci/cs5535audio/cs5535audio.h
@@ -62,11 +62,11 @@
62#define EOP (1<<0) 62#define EOP (1<<0)
63#define BM_EOP_ERR (1<<1) 63#define BM_EOP_ERR (1<<1)
64/* ACC_BMX_CTL */ 64/* ACC_BMX_CTL */
65#define BM_CTL_EN 0x00000001 65#define BM_CTL_EN 0x01
66#define BM_CTL_PAUSE 0x00000011 66#define BM_CTL_PAUSE 0x03
67#define BM_CTL_DIS 0x00000000 67#define BM_CTL_DIS 0x00
68#define BM_CTL_BYTE_ORD_LE 0x00000000 68#define BM_CTL_BYTE_ORD_LE 0x00
69#define BM_CTL_BYTE_ORD_BE 0x00000100 69#define BM_CTL_BYTE_ORD_BE 0x04
70/* cs5535 specific ac97 codec register defines */ 70/* cs5535 specific ac97 codec register defines */
71#define CMD_MASK 0xFF00FFFF 71#define CMD_MASK 0xFF00FFFF
72#define CMD_NEW 0x00010000 72#define CMD_NEW 0x00010000