mpu401.c (c1f3ee120bb61045b1c0a3ead620d1d65af47130) mpu401.c (bd7dd77c2a05c530684eea2e3af16449ae9c5d52)
1/*
2 * Driver for generic MPU-401 boards (UART mode only)
3 * Copyright (c) by Jaroslav Kysela <perex@perex.cz>
4 * Copyright (c) 2004 by Castet Matthieu <castet.matthieu@free.fr>
5 *
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by

--- 59 unchanged lines hidden (view full) ---

68{
69 struct snd_card *card;
70 int err;
71
72 if (!uart_enter[dev])
73 snd_printk(KERN_ERR "the uart_enter option is obsolete; remove it\n");
74
75 *rcard = NULL;
1/*
2 * Driver for generic MPU-401 boards (UART mode only)
3 * Copyright (c) by Jaroslav Kysela <perex@perex.cz>
4 * Copyright (c) 2004 by Castet Matthieu <castet.matthieu@free.fr>
5 *
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by

--- 59 unchanged lines hidden (view full) ---

68{
69 struct snd_card *card;
70 int err;
71
72 if (!uart_enter[dev])
73 snd_printk(KERN_ERR "the uart_enter option is obsolete; remove it\n");
74
75 *rcard = NULL;
76 card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0);
77 if (card == NULL)
78 return -ENOMEM;
76 err = snd_card_create(index[dev], id[dev], THIS_MODULE, 0, &card);
77 if (err < 0)
78 return err;
79 strcpy(card->driver, "MPU-401 UART");
80 strcpy(card->shortname, card->driver);
81 sprintf(card->longname, "%s at %#lx, ", card->shortname, port[dev]);
82 if (irq[dev] >= 0) {
83 sprintf(card->longname + strlen(card->longname), "irq %d", irq[dev]);
84 } else {
85 strcat(card->longname, "polled");
86 }

--- 203 unchanged lines hidden ---
79 strcpy(card->driver, "MPU-401 UART");
80 strcpy(card->shortname, card->driver);
81 sprintf(card->longname, "%s at %#lx, ", card->shortname, port[dev]);
82 if (irq[dev] >= 0) {
83 sprintf(card->longname + strlen(card->longname), "irq %d", irq[dev]);
84 } else {
85 strcat(card->longname, "polled");
86 }

--- 203 unchanged lines hidden ---