diff options
author | Takashi Iwai <tiwai@suse.de> | 2008-04-23 11:47:28 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2008-04-24 06:38:22 -0400 |
commit | b415ed45f4db9f8365daac84cf2518642a174dc0 (patch) | |
tree | 9cb81b685a0b73b5f8b41e41d389fc41a6466fd5 /sound/drivers | |
parent | efd89d9dcf75ab0a31b200db0ae4ae19cad25e48 (diff) |
[ALSA] Define MPU401 registers in sound/mpu401_uart.h
Define some MPU401 registers in sound/mpu401_uart.h so that other
drivers can refer to them.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/drivers')
-rw-r--r-- | sound/drivers/mpu401/mpu401_uart.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sound/drivers/mpu401/mpu401_uart.c b/sound/drivers/mpu401/mpu401_uart.c index dd6ec4266732..18cca2457d44 100644 --- a/sound/drivers/mpu401/mpu401_uart.c +++ b/sound/drivers/mpu401/mpu401_uart.c | |||
@@ -49,12 +49,10 @@ static void snd_mpu401_uart_output_write(struct snd_mpu401 * mpu); | |||
49 | 49 | ||
50 | */ | 50 | */ |
51 | 51 | ||
52 | #define snd_mpu401_input_avail(mpu) (!(mpu->read(mpu, MPU401C(mpu)) & 0x80)) | 52 | #define snd_mpu401_input_avail(mpu) \ |
53 | #define snd_mpu401_output_ready(mpu) (!(mpu->read(mpu, MPU401C(mpu)) & 0x40)) | 53 | (!(mpu->read(mpu, MPU401C(mpu)) & MPU401_RX_EMPTY)) |
54 | 54 | #define snd_mpu401_output_ready(mpu) \ | |
55 | #define MPU401_RESET 0xff | 55 | (!(mpu->read(mpu, MPU401C(mpu)) & MPU401_TX_FULL)) |
56 | #define MPU401_ENTER_UART 0x3f | ||
57 | #define MPU401_ACK 0xfe | ||
58 | 56 | ||
59 | /* Build in lowlevel io */ | 57 | /* Build in lowlevel io */ |
60 | static void mpu401_write_port(struct snd_mpu401 *mpu, unsigned char data, | 58 | static void mpu401_write_port(struct snd_mpu401 *mpu, unsigned char data, |