Ignore:
Timestamp:
May 2, 2007, 9:13:43 AM (18 years ago)
Author:
Brendan Oakley
Message:

Merged 0.9.0beta6 to 0.9.0beta12. Fixed a few compilation errors.
Left include/sound/driver.h at beta9 until I figure out why it contains
so many modifications to sections that were removed in beta10.
Does not yet build. Needs more fixing.
Added a few new files that were in the copy Paul gave me to work from.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GPL/branches/alsa-resync1/alsa-kernel/isa/cmi8330.c

    r32 r92  
    1616 *   You should have received a copy of the GNU General Public License
    1717 *   along with this program; if not, write to the Free Software
    18  *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
     18 *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
    1919 *
    2020 */
     
    4444 */
    4545
    46 #define SNDRV_MAIN_OBJECT_FILE
    47 
    4846#include <sound/driver.h>
     47#include <linux/init.h>
     48#include <linux/slab.h>
     49#include <sound/core.h>
    4950#include <sound/ad1848.h>
    5051#include <sound/sb.h>
     
    5354
    5455EXPORT_NO_SYMBOLS;
     56
     57MODULE_AUTHOR("George Talusan <gstalusan@uwaterloo.ca>");
    5558MODULE_DESCRIPTION("C-Media CMI8330");
     59MODULE_LICENSE("GPL");
    5660MODULE_CLASSES("{sound}");
    5761MODULE_DEVICES("{{C-Media,CMI8330,isapnp:{CMI0001,@@@0001,@X@0001}}}");
     
    7579static int snd_wssdma[SNDRV_CARDS] = SNDRV_DEFAULT_DMA;
    7680
    77 MODULE_AUTHOR("George Talusan <gstalusan@uwaterloo.ca>");
    7881MODULE_PARM(snd_index, "1-" __MODULE_STRING(SNDRV_CARDS) "i");
    7982MODULE_PARM_DESC(snd_index, "Index value for CMI8330 soundcard.");
     
    499502        if (!cards) {
    500503#ifdef MODULE
    501                 snd_printk("CMI8330 not found or device busy\n");
     504                printk(KERN_ERR "CMI8330 not found or device busy\n");
    502505#endif
    503506                return -ENODEV;
     
    511514#ifndef MODULE
    512515
    513 /* format is: snd-card-cmi8330=snd_enable,snd_index,snd_id,snd_isapnp,
     516/* format is: snd-cmi8330=snd_enable,snd_index,snd_id,snd_isapnp,
    514517                               snd_sbport,snd_sbirq,
    515518                               snd_sbdma8,snd_sbdma16,
     
    532535               get_option(&str,&snd_sbdma8[nr_dev]) == 2 &&
    533536               get_option(&str,&snd_sbdma16[nr_dev]) == 2 &&
    534                get_option(&str,&snd_wssport[nr_dev]) == 2 &&
     537               get_option(&str,(int *)&snd_wssport[nr_dev]) == 2 &&
    535538               get_option(&str,&snd_wssirq[nr_dev]) == 2 &&
    536539               get_option(&str,&snd_wssdma[nr_dev]) == 2);
     
    543546}
    544547
    545 __setup("snd-card-cmi8330=", alsa_card_cmi8330_setup);
     548__setup("snd-cmi8330=", alsa_card_cmi8330_setup);
    546549
    547550#endif /* ifndef MODULE */
Note: See TracChangeset for help on using the changeset viewer.