[alsa-devel] Setting the AC97 private data

Jon Smirl jonsmirl at gmail.com
Tue Apr 28 18:51:31 CEST 2009

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 at gmail.com

More information about the Alsa-devel mailing list