changes to optimize wsa881x register writes that will help in
reducing cold start output latency during audio playback
usecase.
Change-Id: I5b316f77bfbd74ca01da491f263a9e9ae80ec63b
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
WSA881x version based register default values are
updated using regmap_register_patch() API, which
will bypass the cache. Fix this by enabling cache_only
flag before updating the register reset values.
Change-Id: I5c6838d9c84f9e0233c22f638238afc5d4a8980d
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
During playback, read wsa881x temperature and update
ocp register based on certain temperature conditions
to avoid speaker damage.
Change-Id: I3c8dd9fdc8ef480f8997338b349f31b72c7cfa48
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
Before enabling the power amplifier during start of the playback,
read wsa temperature and update ocp register based on temperature.
Change-Id: I3fa58d73e324bab8286d558dc4634eb1e08df325
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
Currently wsa881x default register table is defined for version 1.1.
Some of the default register values are different for version 2.0.
This change is to update default register values based on version.
Change-Id: Ibfd3efd685786fc8d8a94ddb74175e5f6f9aa43e
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
Some of the Bongo read only registers are not set as
volatile. Because of this, register values are read
incorrectly when the driver reads these registers. Fix
this issue by updating read only registers as volatile.
Change-Id: I5775b3e776beeef67874025454a0f232336cc777
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
wsa881x has inbuilt temperature sensor. Temperature sensor
is used for speaker protection and over temperature protection.
Add support for temperature sensor in wsa881x driver.
Change-Id: I04de1301d3e107599ce9098231253265e86fc994
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>