Lines Matching +full:sub +full:- +full:frame
1 // SPDX-License-Identifier: GPL-2.0-or-later
23 static int index = SNDRV_DEFAULT_IDX1; /* Index 0-MAX */
47 err = snd_card_new(&devptr->dev, index, id, THIS_MODULE, 0, &card); in snd_pmac_probe()
54 card->private_data = chip; in snd_pmac_probe()
56 switch (chip->model) { in snd_pmac_probe()
58 strcpy(card->driver, "PMac Burgundy"); in snd_pmac_probe()
59 strcpy(card->shortname, "PowerMac Burgundy"); in snd_pmac_probe()
60 sprintf(card->longname, "%s (Dev %d) Sub-frame %d", in snd_pmac_probe()
61 card->shortname, chip->device_id, chip->subframe); in snd_pmac_probe()
67 strcpy(card->driver, "PMac DACA"); in snd_pmac_probe()
68 strcpy(card->shortname, "PowerMac DACA"); in snd_pmac_probe()
69 sprintf(card->longname, "%s (Dev %d) Sub-frame %d", in snd_pmac_probe()
70 card->shortname, chip->device_id, chip->subframe); in snd_pmac_probe()
77 name_ext = chip->model == PMAC_TUMBLER ? "Tumbler" : "Snapper"; in snd_pmac_probe()
78 sprintf(card->driver, "PMac %s", name_ext); in snd_pmac_probe()
79 sprintf(card->shortname, "PowerMac %s", name_ext); in snd_pmac_probe()
80 sprintf(card->longname, "%s (Dev %d) Sub-frame %d", in snd_pmac_probe()
81 card->shortname, chip->device_id, chip->subframe); in snd_pmac_probe()
91 name_ext = chip->model == PMAC_SCREAMER ? "Screamer" : "AWACS"; in snd_pmac_probe()
92 sprintf(card->driver, "PMac %s", name_ext); in snd_pmac_probe()
93 sprintf(card->shortname, "PowerMac %s", name_ext); in snd_pmac_probe()
94 if (chip->is_pbook_3400) in snd_pmac_probe()
96 else if (chip->is_pbook_G3) in snd_pmac_probe()
100 sprintf(card->longname, "%s%s Rev %d", in snd_pmac_probe()
101 card->shortname, name_ext, chip->revision); in snd_pmac_probe()
107 dev_err(&devptr->dev, "unsupported hardware %d\n", chip->model); in snd_pmac_probe()
108 err = -EINVAL; in snd_pmac_probe()
116 chip->initialized = 1; in snd_pmac_probe()
142 snd_pmac_suspend(card->private_data); in snd_pmac_driver_suspend()
149 snd_pmac_resume(card->private_data); in snd_pmac_driver_resume()
177 device = platform_device_register_simple(SND_PMAC_DRIVER, -1, NULL, 0); in alsa_card_pmac_init()