[alsa-devel] [PATCH] ASoC: Add max98371 codec driver
Micka
mickamusset at gmail.com
Thu Mar 24 11:49:59 CET 2016
Hi Mark,
Where I can find your patch ? Will it work under the kernel 4.1 ? And how
do you make it work with the dts file ?
Micka,
Le lun. 21 mars 2016 à 16:03, Mark Brown <broonie at kernel.org> a écrit :
> On Sun, Mar 20, 2016 at 06:59:02PM -0700, anish kumar wrote:
>
> This looks mostly good, a few small things:
>
> > +static const char *const voltage_level_text[] = {
> > + "9.5dB", "10.5dB", "11.5dB", "11.5dB", "12.5dB",
> > + "13.5dB", "14.5dB", "15.5dB", "16.5dB", "17.5dB",
> > + "18.5dB", "19.5dB", "20.5dB"
> > +};
>
> Volume controls should be done with TLV data not enums.
>
> > +static const struct snd_kcontrol_new max98371_snd_controls[] = {
> > + SOC_SINGLE_TLV("Speaker Gain", MAX98371_GAIN,
> > + MAX98371_GAIN_SHIFT, (1<<MAX98371_GAIN_WIDTH)-1, 0,
> > + max98371_gain_tlv),
>
> Volume controls should end with Volume.
>
> > +static int max98371_probe(struct snd_soc_codec *codec)
> > +{
> > + struct max98371_priv *max98371 = snd_soc_codec_get_drvdata(codec);
> > +
> > + max98371->codec = codec;
> > + return 0;
> > +}
>
> Do we ever actually use this?
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel at alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
>
More information about the Alsa-devel
mailing list