[alsa-devel] [PATCH 4/4] ASoC: soc core allow machine driver to register the card

Mark Brown broonie at opensource.wolfsonmicro.com
Fri Jan 14 00:41:35 CET 2011


On Thu, Jan 13, 2011 at 10:49:10PM +0530, Koul, Vinod wrote:

> @@ -1870,6 +1868,10 @@ static int soc_probe(struct platform_device *pdev)
>  	struct snd_soc_card *card = platform_get_drvdata(pdev);
>  	int ret = 0;
>  
> +	/* no card, so machine driver is registering card */
> +	if (!card)
> +		return 0;
> +

I'll review this one more closely tomorrow - as I said with the combined
patch I'd not expect the soc-audio device to be involved when the
machine driver is registering a card so I'd like to understand in more
detail why this is still required.


More information about the Alsa-devel mailing list