ymfpci.c (a02001086bbfb4da35d1228bebc2f1b442db455f) ymfpci.c (38c4718121804317e00a3a905612d17485f754c0)
1/*
2 * The driver for the Yamaha's DS1/DS1E cards
3 * Copyright (c) by Jaroslav Kysela <perex@perex.cz>
4 *
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

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

278 card->private_data = chip;
279
280 strcpy(card->driver, str);
281 sprintf(card->shortname, "Yamaha %s (%s)", model, str);
282 sprintf(card->longname, "%s at 0x%lx, irq %i",
283 card->shortname,
284 chip->reg_area_phys,
285 chip->irq);
1/*
2 * The driver for the Yamaha's DS1/DS1E cards
3 * Copyright (c) by Jaroslav Kysela <perex@perex.cz>
4 *
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

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

278 card->private_data = chip;
279
280 strcpy(card->driver, str);
281 sprintf(card->shortname, "Yamaha %s (%s)", model, str);
282 sprintf(card->longname, "%s at 0x%lx, irq %i",
283 card->shortname,
284 chip->reg_area_phys,
285 chip->irq);
286 if ((err = snd_ymfpci_pcm(chip, 0, NULL)) < 0) {
286 if ((err = snd_ymfpci_pcm(chip, 0)) < 0) {
287 snd_card_free(card);
288 return err;
289 }
287 snd_card_free(card);
288 return err;
289 }
290 if ((err = snd_ymfpci_pcm_spdif(chip, 1, NULL)) < 0) {
290 if ((err = snd_ymfpci_pcm_spdif(chip, 1)) < 0) {
291 snd_card_free(card);
292 return err;
293 }
294 err = snd_ymfpci_mixer(chip, rear_switch[dev]);
295 if (err < 0) {
296 snd_card_free(card);
297 return err;
298 }
299 if (chip->ac97->ext_id & AC97_EI_SDAC) {
291 snd_card_free(card);
292 return err;
293 }
294 err = snd_ymfpci_mixer(chip, rear_switch[dev]);
295 if (err < 0) {
296 snd_card_free(card);
297 return err;
298 }
299 if (chip->ac97->ext_id & AC97_EI_SDAC) {
300 err = snd_ymfpci_pcm_4ch(chip, 2, NULL);
300 err = snd_ymfpci_pcm_4ch(chip, 2);
301 if (err < 0) {
302 snd_card_free(card);
303 return err;
304 }
301 if (err < 0) {
302 snd_card_free(card);
303 return err;
304 }
305 err = snd_ymfpci_pcm2(chip, 3, NULL);
305 err = snd_ymfpci_pcm2(chip, 3);
306 if (err < 0) {
307 snd_card_free(card);
308 return err;
309 }
310 }
311 if ((err = snd_ymfpci_timer(chip, 0)) < 0) {
312 snd_card_free(card);
313 return err;

--- 60 unchanged lines hidden ---
306 if (err < 0) {
307 snd_card_free(card);
308 return err;
309 }
310 }
311 if ((err = snd_ymfpci_timer(chip, 0)) < 0) {
312 snd_card_free(card);
313 return err;

--- 60 unchanged lines hidden ---