ali5451.c (b22364c8eec89e6b0c081a237f3b6348df87796f) ali5451.c (c187c041c6552339e4d8883a1a00c3c489354eca)
1/*
2 * Matt Wu <Matt_Wu@acersoftech.com.cn>
3 * Apr 26, 2001
4 * Routines for control of ALi pci audio M5451
5 *
6 * BUGS:
7 * --
8 *

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

2307 }
2308
2309 snd_ali_printk("snd_device_new is called.\n");
2310 if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, codec, &ops)) < 0) {
2311 snd_ali_free(codec);
2312 return err;
2313 }
2314
1/*
2 * Matt Wu <Matt_Wu@acersoftech.com.cn>
3 * Apr 26, 2001
4 * Routines for control of ALi pci audio M5451
5 *
6 * BUGS:
7 * --
8 *

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

2307 }
2308
2309 snd_ali_printk("snd_device_new is called.\n");
2310 if ((err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, codec, &ops)) < 0) {
2311 snd_ali_free(codec);
2312 return err;
2313 }
2314
2315 snd_card_set_dev(card, &pci->dev);
2316
2315 /* initialise synth voices*/
2316 for (i = 0; i < ALI_CHANNELS; i++ ) {
2317 codec->synth.voices[i].number = i;
2318 }
2319
2320 if ((err = snd_ali_chip_init(codec)) < 0) {
2321 snd_printk(KERN_ERR "ali create: chip init error.\n");
2322 return err;

--- 93 unchanged lines hidden ---
2317 /* initialise synth voices*/
2318 for (i = 0; i < ALI_CHANNELS; i++ ) {
2319 codec->synth.voices[i].number = i;
2320 }
2321
2322 if ((err = snd_ali_chip_init(codec)) < 0) {
2323 snd_printk(KERN_ERR "ali create: chip init error.\n");
2324 return err;

--- 93 unchanged lines hidden ---