powermac.c (c1f3ee120bb61045b1c0a3ead620d1d65af47130) powermac.c (bd7dd77c2a05c530684eea2e3af16449ae9c5d52)
1/*
2 * Driver for PowerMac AWACS
3 * Copyright (c) 2001 by Takashi Iwai <tiwai@suse.de>
4 * based on dmasound.c.
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

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

53
54static int __init snd_pmac_probe(struct platform_device *devptr)
55{
56 struct snd_card *card;
57 struct snd_pmac *chip;
58 char *name_ext;
59 int err;
60
1/*
2 * Driver for PowerMac AWACS
3 * Copyright (c) 2001 by Takashi Iwai <tiwai@suse.de>
4 * based on dmasound.c.
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

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

53
54static int __init snd_pmac_probe(struct platform_device *devptr)
55{
56 struct snd_card *card;
57 struct snd_pmac *chip;
58 char *name_ext;
59 int err;
60
61 card = snd_card_new(index, id, THIS_MODULE, 0);
62 if (card == NULL)
63 return -ENOMEM;
61 err = snd_card_create(index, id, THIS_MODULE, 0, &card);
62 if (err < 0)
63 return err;
64
65 if ((err = snd_pmac_new(card, &chip)) < 0)
66 goto __error;
67 card->private_data = chip;
68
69 switch (chip->model) {
70 case PMAC_BURGUNDY:
71 strcpy(card->driver, "PMac Burgundy");

--- 124 unchanged lines hidden ---
64
65 if ((err = snd_pmac_new(card, &chip)) < 0)
66 goto __error;
67 card->private_data = chip;
68
69 switch (chip->model) {
70 case PMAC_BURGUNDY:
71 strcpy(card->driver, "PMac Burgundy");

--- 124 unchanged lines hidden ---