Commit graph

11 commits

Author SHA1 Message Date
Linux Build Service Account
7c5e0dd8b9 Merge "ASoC: wsa881x: Changes to reduce cold start latency" 2015-10-26 10:09:32 -07:00
Linux Build Service Account
843cf5205c Merge "ASoC: wsa881x: update register defaults in cache" 2015-10-22 16:44:59 -07:00
Sudheer Papothi
517171857f ASoC: wsa881x: Changes to reduce cold start latency
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>
2015-10-21 10:43:24 +05:30
Vidyakumar Athota
12fb6fd9e1 ASoC: wsa881x: update register defaults in cache
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>
2015-10-19 03:35:18 -07:00
Vidyakumar Athota
056e3b7e3c ASoC: wsa881x: ocp register update during playback
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>
2015-10-19 01:57:53 -07:00
Vidyakumar Athota
38ef8cdc6b ASoC: wsa881x: update ocp register based on temperature
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>
2015-10-14 14:30:26 +05:30
Linux Build Service Account
733c83231d Merge "ASoC: wsa881x: update register sequence for version 2.0" 2015-08-19 12:24:28 -07:00
Vidyakumar Athota
728f6b87bb ASoC: wsa881x: update version based default register values
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>
2015-08-18 21:21:29 +05:30
Vidyakumar Athota
3cf6401add ASoC: wsa881x: Update read only registers as volatile
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>
2015-08-18 07:39:05 -07:00
Sudheer Papothi
6529e7aa43 ASoC: wsa881x: Add support for temperature sensor
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>
2015-06-24 18:54:14 +05:30
Sudheer Papothi
53ace046ac ASoC: wsa881x: Initial version of wsa881x driver
wsa881x codec supports speaker, compander, smart boost
and speaker protection functionalities. It uses the
soundwire interface for register read/write access.
This driver enables the wsa881x codec functionalities
in soundwire mode.

Change-Id: Ia340b573c7dcd7e3aba1be29a20ffa169048744a
Signed-off-by: Aravind Kumar <akumark@codeaurora.org>
2015-05-07 11:36:16 +05:30