[alsa-devel] ASoC: Correct way to set private data in machine driver?

Abdullah, Omair M omair.m.abdullah at intel.com
Wed Oct 19 08:41:52 CEST 2011


Hi all,
  Looking at the code of soc and any machine driver, soc-core uses
dev_set_drvdata() and dev_get_drvdata() to pass a snd_soc_card
structure. This needs to be set in the probe to the machine driver's
snd_soc_card structure. Then how can the machine driver's private data
be passed around (eg. in probe and remove)?

regards,
-- 
Omair


More information about the Alsa-devel mailing list