serial-u16550.c (c1f3ee120bb61045b1c0a3ead620d1d65af47130) | serial-u16550.c (bd7dd77c2a05c530684eea2e3af16449ae9c5d52) |
---|---|
1/* 2 * serial.c 3 * Copyright (c) by Jaroslav Kysela <perex@perex.cz>, 4 * Isaku Yamahata <yamahata@private.email.ne.jp>, 5 * George Hansper <ghansper@apana.org.au>, 6 * Hannu Savolainen 7 * 8 * This code is based on the code from ALSA 0.5.9, but heavily rewritten. --- 922 unchanged lines hidden (view full) --- 931 } 932 933 if (ins[dev] < 1 || ins[dev] > SNDRV_SERIAL_MAX_INS) { 934 snd_printk("Count of inputs is out of range 1-%d (%d)\n", 935 SNDRV_SERIAL_MAX_INS, ins[dev]); 936 return -ENODEV; 937 } 938 | 1/* 2 * serial.c 3 * Copyright (c) by Jaroslav Kysela <perex@perex.cz>, 4 * Isaku Yamahata <yamahata@private.email.ne.jp>, 5 * George Hansper <ghansper@apana.org.au>, 6 * Hannu Savolainen 7 * 8 * This code is based on the code from ALSA 0.5.9, but heavily rewritten. --- 922 unchanged lines hidden (view full) --- 931 } 932 933 if (ins[dev] < 1 || ins[dev] > SNDRV_SERIAL_MAX_INS) { 934 snd_printk("Count of inputs is out of range 1-%d (%d)\n", 935 SNDRV_SERIAL_MAX_INS, ins[dev]); 936 return -ENODEV; 937 } 938 |
939 card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0); 940 if (card == NULL) 941 return -ENOMEM; | 939 err = snd_card_create(index[dev], id[dev], THIS_MODULE, 0, &card); 940 if (err < 0) 941 return err; |
942 943 strcpy(card->driver, "Serial"); 944 strcpy(card->shortname, "Serial MIDI (UART16550A)"); 945 946 if ((err = snd_uart16550_create(card, 947 port[dev], 948 irq[dev], 949 speed[dev], --- 100 unchanged lines hidden --- | 942 943 strcpy(card->driver, "Serial"); 944 strcpy(card->shortname, "Serial MIDI (UART16550A)"); 945 946 if ((err = snd_uart16550_create(card, 947 port[dev], 948 irq[dev], 949 speed[dev], --- 100 unchanged lines hidden --- |