[alsa-devel] [PATCH 1/2] [v2] ASoC: fsl: use snd_soc_register_card to register the card

Mark Brown broonie at opensource.wolfsonmicro.com
Wed Sep 12 03:32:13 CEST 2012


On Tue, Sep 11, 2012 at 11:23:26AM -0500, Timur Tabi wrote:
> Use snd_soc_register_card() instead of platform_device_alloc("soc-audio")
> to register the sound card from the machine drivers.
> 
> Although platform_device_alloc is officially deprecated, it is still used
> by several other drivers.  Unfortunately, something is broken somewhere
> and the Freescale drivers don't register properly when using it.  Since
> we need to transition to snd_soc_register_card() anyway, this fixes the
> problem and updates our code at the same time.

I did explain what's wrong here - it's the use of driver data.


More information about the Alsa-devel mailing list