[ALSA] mpu-401: remove MPU401_INFO_UART_ONLY flag
Since the last patch made the ENTER_UART command optional, the enter_uart option and its corresponding flag have become superfluous. The uart_enter option remains for backward compatibility but just prints a warning when used. Signed-off-by: Clemens Ladisch <clemens@ladisch.de> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
This commit is contained in:
committed by
Jaroslav Kysela
parent
69d8d3eb4d
commit
c1099fcb74
@@ -270,8 +270,7 @@ static int snd_mpu401_do_reset(struct snd_mpu401 *mpu)
|
||||
{
|
||||
if (snd_mpu401_uart_cmd(mpu, MPU401_RESET, 1))
|
||||
return -EIO;
|
||||
if (!(mpu->info_flags & MPU401_INFO_UART_ONLY) &&
|
||||
snd_mpu401_uart_cmd(mpu, MPU401_ENTER_UART, 0))
|
||||
if (snd_mpu401_uart_cmd(mpu, MPU401_ENTER_UART, 0))
|
||||
return -EIO;
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user