diff options
Diffstat (limited to 'sound/drivers/mpu401/mpu401_uart.c')
-rw-r--r-- | sound/drivers/mpu401/mpu401_uart.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sound/drivers/mpu401/mpu401_uart.c b/sound/drivers/mpu401/mpu401_uart.c index 85aedc348e2d..3306ecd49243 100644 --- a/sound/drivers/mpu401/mpu401_uart.c +++ b/sound/drivers/mpu401/mpu401_uart.c | |||
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) by Jaroslav Kysela <perex@suse.cz> | 2 | * Copyright (c) by Jaroslav Kysela <perex@perex.cz> |
3 | * Routines for control of MPU-401 in UART mode | 3 | * Routines for control of MPU-401 in UART mode |
4 | * | 4 | * |
5 | * MPU-401 supports UART mode which is not capable generate transmit | 5 | * MPU-401 supports UART mode which is not capable generate transmit |
@@ -39,7 +39,7 @@ | |||
39 | #include <sound/core.h> | 39 | #include <sound/core.h> |
40 | #include <sound/mpu401.h> | 40 | #include <sound/mpu401.h> |
41 | 41 | ||
42 | MODULE_AUTHOR("Jaroslav Kysela <perex@suse.cz>"); | 42 | MODULE_AUTHOR("Jaroslav Kysela <perex@perex.cz>"); |
43 | MODULE_DESCRIPTION("Routines for control of MPU-401 in UART mode"); | 43 | MODULE_DESCRIPTION("Routines for control of MPU-401 in UART mode"); |
44 | MODULE_LICENSE("GPL"); | 44 | MODULE_LICENSE("GPL"); |
45 | 45 | ||
@@ -270,8 +270,7 @@ static int snd_mpu401_do_reset(struct snd_mpu401 *mpu) | |||
270 | { | 270 | { |
271 | if (snd_mpu401_uart_cmd(mpu, MPU401_RESET, 1)) | 271 | if (snd_mpu401_uart_cmd(mpu, MPU401_RESET, 1)) |
272 | return -EIO; | 272 | return -EIO; |
273 | if (!(mpu->info_flags & MPU401_INFO_UART_ONLY) && | 273 | if (snd_mpu401_uart_cmd(mpu, MPU401_ENTER_UART, 0)) |
274 | snd_mpu401_uart_cmd(mpu, MPU401_ENTER_UART, 1)) | ||
275 | return -EIO; | 274 | return -EIO; |
276 | return 0; | 275 | return 0; |
277 | } | 276 | } |