I added a new config file to the alsa lib that is AD1980-MMAP.conf Because the we need a different config file to support mmap way. And app find out the config file by the codec name. Cliff
-----Original Message----- From: Mike Frysinger [mailto:[EMAIL PROTECTED] Sent: Friday, February 01, 2008 6:29 AM To: [EMAIL PROTECTED] Cc: [email protected] Subject: Re: [Linux-kernel-commits] [4196] trunk/sound: bug[#3577] add dmix support for AD1981, enable mmap for the soundcard driver On Jan 31, 2008 4:56 AM, <[EMAIL PROTECTED]> wrote: > --- trunk/sound/soc/codecs/ad1980.c 2008-01-31 04:27:30 UTC (rev 4195) > +++ trunk/sound/soc/codecs/ad1980.c 2008-01-31 09:56:08 UTC (rev 4196) > @@ -222,8 +222,11 @@ > ARRAY_SIZE(ad1980_reg)); > codec->reg_cache_size = sizeof(u16) * ARRAY_SIZE(ad1980_reg); > codec->reg_cache_step = 2; > - > +#ifdef CONFIG_SND_MMAP_SUPPORT > + codec->name = "AD1980-MMAP"; > +#else > codec->name = "AD1980"; > +#endif > codec->owner = THIS_MODULE; > codec->dai = &ad1980_dai; > codec->num_dai = 1; why does the codec driver care how the hardware has things implemented ? the codec is always AD1980 regardless ... -mike _______________________________________________ Linux-kernel-commits mailing list [email protected] http://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits
