![](https://secure.gravatar.com/avatar/67cb6fef42a83929955ce5a5b3f33f6e.jpg?s=120&d=mm&r=g)
28 Apr
2009
28 Apr
'09
6:51 p.m.
My AC97 CPU read/write routines need private data set so that they know which port to use. The mpc5200 has multiple PSCs that can function in AC97 mode.
static int psc_dma_pcm_new(struct snd_card *card, struct snd_soc_dai *dai, struct snd_pcm *pcm) { ... if (rtd->socdev->card->codec->ac97) rtd->socdev->card->codec->ac97->private_data = psc_dma; .. }
Is there some easier way to set this data?
--
Jon Smirl
jonsmirl@gmail.com