ALSA: tea575x: use better card and bus names
Provide real card and bus_info instead of hardcoded values. Signed-off-by: Ondrej Zary <linux@rainbow-software.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
committed by
Takashi Iwai
parent
3d11ba5593
commit
10ca720147
@@ -1232,6 +1232,7 @@ static int __devinit snd_fm801_create(struct snd_card *card,
|
||||
#ifdef TEA575X_RADIO
|
||||
chip->tea.private_data = chip;
|
||||
chip->tea.ops = &snd_fm801_tea_ops;
|
||||
sprintf(chip->tea.bus_info, "PCI:%s", pci_name(pci));
|
||||
if ((tea575x_tuner & TUNER_TYPE_MASK) > 0 &&
|
||||
(tea575x_tuner & TUNER_TYPE_MASK) < 4) {
|
||||
if (snd_tea575x_init(&chip->tea))
|
||||
@@ -1246,6 +1247,7 @@ static int __devinit snd_fm801_create(struct snd_card *card,
|
||||
break;
|
||||
}
|
||||
}
|
||||
strlcpy(chip->tea.card, snd_fm801_tea575x_gpios[(tea575x_tuner & TUNER_TYPE_MASK) - 1].name, sizeof(chip->tea.card));
|
||||
#endif
|
||||
|
||||
*rchip = chip;
|
||||
|
Reference in New Issue
Block a user