[alsa-devel] [PATCH 1/2] ASoC: Pay attention to driver supplied DAI IDs

Mark Brown broonie at opensource.wolfsonmicro.com
Tue Oct 12 19:05:50 CEST 2010


On Tue, Oct 12, 2010 at 03:57:55PM +0100, Mark Brown wrote:
>  		dai->dev = dev;
> -		dai->id = i;
> +		if (dai->driver->id)
> +			dai->id = dai->driver->id;
> +		else
> +			dai->id = i;
>  		dai->driver = &dai_drv[i];

Sorry, sent the wrong version of this - obviously the new check should
go after the assignment.


More information about the Alsa-devel mailing list