[alsa-devel] Setting the AC97 private data
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?
On Tue, Apr 28, 2009 at 3:59 PM, Mark Brown broonie@sirena.org.uk wrote:
On Tue, Apr 28, 2009 at 12:51:31PM -0400, Jon Smirl wrote:
Is there some easier way to set this data?
Not particularly; only one AC97 controller is supported at once.
mpc5200 allows multiple active AC97 controllers but I've never want to use more than one at a time.
On Tue, Apr 28, 2009 at 04:40:37PM -0400, Jon Smirl wrote:
mpc5200 allows multiple active AC97 controllers but I've never want to use more than one at a time.
Yes, I'm fairly sure that there's other embedded hardware out there that can do the same. It's questionable if anyone's likely to deploy systems doing that, though - I2S would be a more natural choice.
participants (2)
-
Jon Smirl
-
Mark Brown