* Help with snd_card_set_dev
@ 2006-10-02 18:30 matthias.goerner
2006-10-04 10:48 ` Takashi Iwai
0 siblings, 1 reply; 2+ messages in thread
From: matthias.goerner @ 2006-10-02 18:30 UTC (permalink / raw)
To: alsa-devel
What are "snd_card_set_dev" and "snd_card_set_generic_dev" good for?
I read the Writing ALSA drivers by Takashi Iwai but didn't understand the chapter on it. How can snd_card_set_dev be useful if it is ones passed a struct for PCI and then for ISA?
Matthias Goerner
--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Help with snd_card_set_dev
2006-10-02 18:30 Help with snd_card_set_dev matthias.goerner
@ 2006-10-04 10:48 ` Takashi Iwai
0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2006-10-04 10:48 UTC (permalink / raw)
To: matthias.goerner; +Cc: alsa-devel
At Mon, 02 Oct 2006 20:30:44 +0200,
matthias.goerner@gmx.net wrote:
>
> What are "snd_card_set_dev" and "snd_card_set_generic_dev" good for?
> I read the Writing ALSA drivers by Takashi Iwai but didn't
> understand the chapter on it. How can snd_card_set_dev be useful if
> it is ones passed a struct for PCI and then for ISA?
The driver core requires the struct device pointer for sysfs.
This is referred by HAL later and almost mandatory.
The snd_card_set_dev() macro is introduced just for the backward
compatibility with 2.2/2.4 kernels. In the 2.6 kernels, it just do
card->dev = &pci_dev->dev;
snd_card_set_generic_dev() is obsolete and no longer used.
Takashi
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-10-04 10:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-02 18:30 Help with snd_card_set_dev matthias.goerner
2006-10-04 10:48 ` Takashi Iwai
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.