ad1848.c (7b7e394185014e0f3bd8989cac937003f20ef9ce) | ad1848.c (788c6043335590e0a483fdc18f85b1405a157bf9) |
---|---|
1/* 2 * Generic driver for AD1848/AD1847/CS4248 chips (0.1 Alpha) 3 * Copyright (c) by Tugrul Galatali <galatalt@stuy.edu>, 4 * Jaroslav Kysela <perex@suse.cz> 5 * Based on card-4232.c by Jaroslav Kysela <perex@suse.cz> 6 * 7 * 8 * This program is free software; you can redistribute it and/or modify --- 51 unchanged lines hidden (view full) --- 60module_param_array(dma1, int, NULL, 0444); 61MODULE_PARM_DESC(dma1, "DMA1 # for AD1848 driver."); 62module_param_array(thinkpad, bool, NULL, 0444); 63MODULE_PARM_DESC(thinkpad, "Enable only for the onboard CS4248 of IBM Thinkpad 360/750/755 series."); 64 65static struct platform_device *devices[SNDRV_CARDS]; 66 67 | 1/* 2 * Generic driver for AD1848/AD1847/CS4248 chips (0.1 Alpha) 3 * Copyright (c) by Tugrul Galatali <galatalt@stuy.edu>, 4 * Jaroslav Kysela <perex@suse.cz> 5 * Based on card-4232.c by Jaroslav Kysela <perex@suse.cz> 6 * 7 * 8 * This program is free software; you can redistribute it and/or modify --- 51 unchanged lines hidden (view full) --- 60module_param_array(dma1, int, NULL, 0444); 61MODULE_PARM_DESC(dma1, "DMA1 # for AD1848 driver."); 62module_param_array(thinkpad, bool, NULL, 0444); 63MODULE_PARM_DESC(thinkpad, "Enable only for the onboard CS4248 of IBM Thinkpad 360/750/755 series."); 64 65static struct platform_device *devices[SNDRV_CARDS]; 66 67 |
68static int __init snd_ad1848_probe(struct platform_device *pdev) | 68static int __devinit snd_ad1848_probe(struct platform_device *pdev) |
69{ 70 int dev = pdev->id; 71 struct snd_card *card; 72 struct snd_ad1848 *chip; 73 struct snd_pcm *pcm; 74 int err; 75 76 if (port[dev] == SNDRV_AUTO_PORT) { --- 145 unchanged lines hidden --- | 69{ 70 int dev = pdev->id; 71 struct snd_card *card; 72 struct snd_ad1848 *chip; 73 struct snd_pcm *pcm; 74 int err; 75 76 if (port[dev] == SNDRV_AUTO_PORT) { --- 145 unchanged lines hidden --- |