[alsa-devel] [PATCH v2] audio: sgtl5000: Add MicBias resistor support in DT

Mark Brown broonie at kernel.org
Mon Oct 13 12:10:08 CEST 2014


On Mon, Oct 13, 2014 at 11:05:04AM +0100, Mark Rutland wrote:
> On Sun, Oct 12, 2014 at 10:39:11PM +0100, Jean-Michel Hautbois wrote:
> > Some systems may require a different resistor than the default one (4K).
> > This adds a property in sgtl5000 codec.
> > It keeps the default of 4K when nothing is specified so it does not break
> > existing code.
> > 
> > v2: modify the default case on DT parsing

Don't include noise like this in the changelog, add it after the --- as
covered in SubmittingPatches.

> > +- sgtl5000-micbias-resistor : the bias resistor to be used
> > +        1 or SGTL5000_MICBIAS_2K - MICBIAS resistor is set to 2K
> > +        2 or SGTL5000_MICBIAS_4K - MICBIAS resistor is set to 4K
> > +        3 or SGTL5000_MICBIAS_8K - MICBIAS resistor is set to 8K
> > +        0 or SGTL5000_MICBIAS_OFF - MICBIAS resistor is not used
> > +	If this node is not mentioned or if the value is unknown, then
> > +	micbias	resistor is set to 4K.

> The SGTL5000_MICBIAS_* constants aren't in a DT header, so shouldn't be
> referenced here.

Or the constants should be moved of course but...

> Why not have mcbias-resistor-k-ohms as 2, 4, 8, or 0?

> That would be much easier to read as a human.

...this is even better.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20141013/309b0533/attachment.sig>


More information about the Alsa-devel mailing list