[alsa-devel] [PATCH] [PATCH]ASoC:blackfin:add ad73311 card driver name

Mark Brown broonie at opensource.wolfsonmicro.com
Tue Sep 6 17:19:48 CEST 2011


On Tue, Sep 06, 2011 at 03:46:09PM -0400, Scott Jiang wrote:
> ASoC doesn't copy codec name to card driver now.
> ALSA lib need this info to find the proper card config.
> So add card name in snd_soc_card, asoc will copy this name to snd_card.

Your changelog doesn't correspond to your code:

>  static struct snd_soc_card bf5xx_ad73311 = {
>  	.name = "bfin-ad73311",
> +	.driver_name = "AD73311",

You're not adding a card name, you're adding a driver name, and the
existing card name already contains the name of the CODEC.  There
should already be enough information available to userspace to identify
that the card is a Blackfin card with ad73311.  Since the driver_name
you're setting only contains the name of the CODEC it looks likely to
cause more collisions anyway as other systems may use the same CODEC.


More information about the Alsa-devel mailing list