Commit Graph

13 Commits

Author SHA1 Message Date
Sudheer Papothi
90ef3db429 ASoC: swr-haptics: Remove disable regulator during system suspend
Remove disable regulator during system suspend to avoid soundwire
interrupt during system suspend. This change will ensure that
device enter into power collapse during VoLTE usecase in LPI mode.

Change-Id: Ie15d28de9720b83f93ea1a85258b24faadad0db3
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-07-19 22:10:00 -07:00
Sudheer Papothi
b3fa5a0dc5 asoc: codecs: retry for soundwire slave enumeration
Retry for soundwire slave enumeration during bootup before
EPROBE_DEFER to avoid soundcard enumeration failures.

Change-Id: I083ec76fc84a2b367f93a2dc166a1419a75ff8b4
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-06-11 21:40:46 +05:30
qctecmdr
261249d3f4 Merge "ASoC: swr-haptics: Avoid soundwire resume during subsystem restart" 2020-06-05 01:54:02 -07:00
Sudheer Papothi
a151ba4e13 ASoC: swr-haptics: Avoid soundwire resume during subsystem restart
Soundwire register write from haptics resumes soundwire master during
subsystem down. Avoid soundwire slave register writes when the subsystem
is already down.

Change-Id: I78304b84bfaf882df1b76dbd04a8e063185d3963
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-05-28 03:30:50 +05:30
Fenglin Wu
84d85e958f asoc: swr-haptics: close SWR data channel after stoping playing
Per HW recommendation, when stopping SWR playing, SWR_PLAY register need
to get deasserted before disconnecting SWR data channel. Hence adjust the
sequence.

Change-Id: I15f33fefc8b847c9a7f6abd627217f21f8ddee89
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
2020-05-19 15:50:00 +08:00
qctecmdr
dfbf3ea4bd Merge "ASoC: swr-haptics: Cleanup on the error printings" 2020-05-05 23:55:58 -07:00
qctecmdr
5c661788c7 Merge "ASoC: swr-haptics: Update the configuration and gain settings" 2020-04-29 22:27:54 -07:00
Fenglin Wu
47fa139a5a ASoC: swr-haptics: Cleanup on the error printings
Some prints in the driver have NULL pointer reference, correct them and
clean up on the other possible NULL pointer reference cases.

Change-Id: Iba8682014e21dd716caaaebc1231cb4fe39bdfe1
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
2020-04-28 11:07:57 +08:00
qctecmdr
0fa13e4ada Merge "asoc: haptics: update port config to match devicetree" 2020-04-26 23:42:49 -07:00
Sudheer Papothi
5e450b198c ASoC: swr-haptics: Update the configuration and gain settings
Update the configuration and gain settings as per hardware
sequence recommendation for soundwire haptics usecase.

Change-Id: I09b86026f664fec3105af4a8180168fda457d4fd
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-04-21 11:18:54 +05:30
Sudheer Papothi
caee8e2f5a ASoC: swr-haptics: Update playback sequence
Update haptics playback sequence to properly disable the soundwire
ports during the teardown path.

Change-Id: Ic6f23c8dae172104f8ae4659293b5ec6ce4ffa1f
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-04-10 02:27:26 +05:30
Meng Wang
5aaab79a9f asoc: haptics: update port config to match devicetree
Update port config to match devicetree setting

Change-Id: I094ec86d7f5dca70964315cc1ab258cda086ac7b
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-03-31 20:38:54 +08:00
Fenglin Wu
074c5fe49c asoc: codec: Add initial driver for swr-haptics
The haptics module in some PMICs has SWR slave data port which connects
to Bolero SWR RX port and it can receive PCM data from that port and use
it as the pattern source to play the vibration. Add the driver to
support it.

Change-Id: I5e6811ac8d81a60c3cd226029ef22ee12ed46f1d
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
2020-03-20 15:34:33 +08:00