On Wed, Jul 22, 2009 at 01:02:40PM +0200, Marek Vasut wrote: > struct snd_ac97_bus *ac97_bus; > struct snd_ac97_template ac97_template; > int ret; > + pxa2xx_audio_ops_t *pdata = dev->dev.platform_data; > + int id = dev->id < 0 ? 0 : dev->id; > dev here is the AC97 controller device - if there's more than one AC97 controller in the system they can each have the four child devices. On the other hand, I don't think any of the PXA processors have more than one AC97 controller so it'll never actually have any impact. I think the best thing for now is to either warn if anything except the primary codec has platform data or change the platform data to have a variable something like primary_audio_pdata. The driver doesn't appear to support secondary codecs anyway. _______________________________________________ Alsa-devel mailing list Alsa-devel@xxxxxxxxxxxxxxxx http://mailman.alsa-project.org/mailman/listinfo/alsa-devel