diff options
author | Takashi Iwai <tiwai@suse.de> | 2008-04-25 03:13:45 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2008-04-29 13:01:56 -0400 |
commit | df7e3fdf83699328d1fdf7000ce0dc852fbb0ad9 (patch) | |
tree | dc5ca06bc0754352c8adf201b4f950d7fbf7c0b1 /sound/drivers | |
parent | a01e035ebb552223c03f2d9138ffc73f2d4d3965 (diff) |
[ALSA] Add MPU401_INFO_NO_ACK bitflag
Added MPU401_INFO_NO_ACK bitflag to ignore the ACK check for UART
commands. VT172x doesn't handle ACK commands, for example.
Tested-by: Pavel Hofman <pavel.hofman@insite.cz>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/drivers')
-rw-r--r-- | sound/drivers/mpu401/mpu401_uart.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/drivers/mpu401/mpu401_uart.c b/sound/drivers/mpu401/mpu401_uart.c index 18cca2457d44..2af09996a3d0 100644 --- a/sound/drivers/mpu401/mpu401_uart.c +++ b/sound/drivers/mpu401/mpu401_uart.c | |||
@@ -243,7 +243,7 @@ static int snd_mpu401_uart_cmd(struct snd_mpu401 * mpu, unsigned char cmd, | |||
243 | #endif | 243 | #endif |
244 | } | 244 | } |
245 | mpu->write(mpu, cmd, MPU401C(mpu)); | 245 | mpu->write(mpu, cmd, MPU401C(mpu)); |
246 | if (ack) { | 246 | if (ack && !(mpu->info_flags & MPU401_INFO_NO_ACK)) { |
247 | ok = 0; | 247 | ok = 0; |
248 | timeout = 10000; | 248 | timeout = 10000; |
249 | while (!ok && timeout-- > 0) { | 249 | while (!ok && timeout-- > 0) { |