[PATCH] ASoC: cs42l42: make HSBIAS_SENSE_EN optional
Mark Brown
broonie at kernel.org
Fri May 7 17:38:12 CEST 2021
On Fri, May 07, 2021 at 03:17:48PM +0100, Lucas Tanure wrote:
> + - cirrus,hs-bias-sense-en: Configures HSBIAS output current sense through
> + the external 2.21-k resistor. HSBIAS_SENSE is hardware feature to reduce
> + the potential pop noise during the headset plug out slowly. But on some
> + platforms ESD voltage will affect it causing test to fail, especially
> + with CTIA headset type. For different hardware setups, a designer might
> + want to tweak default behavior.
> +
> + 0 - disabled
> + 1 - enabled
> + Default = 1
A boolean property would generally be present/absent rather than having
a value...
> + ret = device_property_read_u32(dev, "cirrus,hs-bias-sense-en", &val);
...and read using device_property_read_bool().
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20210507/9b701dd1/attachment.sig>
More information about the Alsa-devel
mailing list