mts64.c (c1f3ee120bb61045b1c0a3ead620d1d65af47130) mts64.c (bd7dd77c2a05c530684eea2e3af16449ae9c5d52)
1/*
2 * ALSA Driver for Ego Systems Inc. (ESI) Miditerminal 4140
3 * Copyright (c) 2006 by Matthias König <mk@phasorlab.de>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.

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

952
953 if (dev >= SNDRV_CARDS)
954 return -ENODEV;
955 if (!enable[dev])
956 return -ENOENT;
957 if ((err = snd_mts64_probe_port(p)) < 0)
958 return err;
959
1/*
2 * ALSA Driver for Ego Systems Inc. (ESI) Miditerminal 4140
3 * Copyright (c) 2006 by Matthias König <mk@phasorlab.de>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.

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

952
953 if (dev >= SNDRV_CARDS)
954 return -ENODEV;
955 if (!enable[dev])
956 return -ENOENT;
957 if ((err = snd_mts64_probe_port(p)) < 0)
958 return err;
959
960 card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0);
961 if (card == NULL) {
960 err = snd_card_create(index[dev], id[dev], THIS_MODULE, 0, &card);
961 if (err < 0) {
962 snd_printd("Cannot create card\n");
962 snd_printd("Cannot create card\n");
963 return -ENOMEM;
963 return err;
964 }
965 strcpy(card->driver, DRIVER_NAME);
966 strcpy(card->shortname, "ESI " CARD_NAME);
967 sprintf(card->longname, "%s at 0x%lx, irq %i",
968 card->shortname, p->base, p->irq);
969
970 pardev = parport_register_device(p, /* port */
971 DRIVER_NAME, /* name */

--- 117 unchanged lines hidden ---
964 }
965 strcpy(card->driver, DRIVER_NAME);
966 strcpy(card->shortname, "ESI " CARD_NAME);
967 sprintf(card->longname, "%s at 0x%lx, irq %i",
968 card->shortname, p->base, p->irq);
969
970 pardev = parport_register_device(p, /* port */
971 DRIVER_NAME, /* name */

--- 117 unchanged lines hidden ---