mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
[ALSA] Change an arugment of snd_mpu401_uart_new() to bit flags
Change the 5th argument of snd_mpu401_uart_new() to bit flags instead of a boolean. The argument takes bits that consist of MPU401_INFO_XXX flags. The callers that used the value 1 there are replaced with MPU401_INFO_INTEGRATED. Signed-off-by: Takashi Iwai <[email protected]>
This commit is contained in:
parent
140432fd2f
commit
302e4c2f9e
19 changed files with 147 additions and 62 deletions
|
|
@ -897,10 +897,9 @@ static int __devinit create_mpu401(struct snd_card *card, int devnum, unsigned l
|
|||
struct snd_rawmidi *rawmidi;
|
||||
int err;
|
||||
|
||||
#define MPU401_SHARE_HARDWARE 1
|
||||
if ((err = snd_mpu401_uart_new(card, devnum,
|
||||
MPU401_HW_MPU401,
|
||||
port, MPU401_SHARE_HARDWARE,
|
||||
port, MPU401_INFO_INTEGRATED,
|
||||
irq, SA_INTERRUPT,
|
||||
&rawmidi)) == 0) {
|
||||
struct snd_mpu401 *mpu = (struct snd_mpu401 *) rawmidi->private_data;
|
||||
|
|
|
|||
Loading…
Reference in a new issue