
7 May
2021
7 May
'21
5:38 p.m.
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().