echoaudio.c (5a84d159061d914c8dd4aa372ac6e9529c2be453) echoaudio.c (c187c041c6552339e4d8883a1a00c3c489354eca)
1/*
2 * ALSA driver for Echoaudio soundcards.
3 * Copyright (C) 2003-2004 Giuliano Pochini <pochini@shiny.it>
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; version 2 of the License.
8 *

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

2028 }
2029
2030 DE_INIT(("Echoaudio driver starting...\n"));
2031 i = 0;
2032 card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0);
2033 if (card == NULL)
2034 return -ENOMEM;
2035
1/*
2 * ALSA driver for Echoaudio soundcards.
3 * Copyright (C) 2003-2004 Giuliano Pochini <pochini@shiny.it>
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; version 2 of the License.
8 *

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

2028 }
2029
2030 DE_INIT(("Echoaudio driver starting...\n"));
2031 i = 0;
2032 card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0);
2033 if (card == NULL)
2034 return -ENOMEM;
2035
2036 snd_card_set_dev(card, &pci->dev);
2037
2036 if ((err = snd_echo_create(card, pci, &chip)) < 0) {
2037 snd_card_free(card);
2038 return err;
2039 }
2040
2041 strcpy(card->driver, "Echo_" ECHOCARD_NAME);
2042 strcpy(card->shortname, chip->card_name);
2043

--- 168 unchanged lines hidden ---
2038 if ((err = snd_echo_create(card, pci, &chip)) < 0) {
2039 snd_card_free(card);
2040 return err;
2041 }
2042
2043 strcpy(card->driver, "Echo_" ECHOCARD_NAME);
2044 strcpy(card->shortname, chip->card_name);
2045

--- 168 unchanged lines hidden ---