pdaudiocf.c (fc8a327db6c46de783b1a4276d846841b9abc24c) | pdaudiocf.c (f78dfac904325a996b8f97b045647898cc1ccc40) |
---|---|
1/* 2 * Driver for Sound Core PDAudioCF soundcard 3 * 4 * Copyright (c) 2003 by Jaroslav Kysela <perex@perex.cz> 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or --- 115 unchanged lines hidden (view full) --- 124 return -EIO; 125 126 if (snd_device_new(card, SNDRV_DEV_LOWLEVEL, pdacf, &ops) < 0) { 127 kfree(pdacf); 128 snd_card_free(card); 129 return -ENODEV; 130 } 131 | 1/* 2 * Driver for Sound Core PDAudioCF soundcard 3 * 4 * Copyright (c) 2003 by Jaroslav Kysela <perex@perex.cz> 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or --- 115 unchanged lines hidden (view full) --- 124 return -EIO; 125 126 if (snd_device_new(card, SNDRV_DEV_LOWLEVEL, pdacf, &ops) < 0) { 127 kfree(pdacf); 128 snd_card_free(card); 129 return -ENODEV; 130 } 131 |
132 snd_card_set_dev(card, &handle_to_dev(link)); 133 |
|
132 pdacf->index = i; 133 card_list[i] = card; 134 135 pdacf->p_dev = link; 136 link->priv = pdacf; 137 138 link->io.Attributes1 = IO_DATA_PATH_WIDTH_AUTO; 139 link->io.NumPorts1 = 16; --- 174 unchanged lines hidden --- | 134 pdacf->index = i; 135 card_list[i] = card; 136 137 pdacf->p_dev = link; 138 link->priv = pdacf; 139 140 link->io.Attributes1 = IO_DATA_PATH_WIDTH_AUTO; 141 link->io.NumPorts1 = 16; --- 174 unchanged lines hidden --- |