Commit graph

8 commits

Author SHA1 Message Date
Laxminath Kasam
74157fe0fb soc: soundwire: Fix wsa mute issue for stereo playback
When stereo playback start and temperature read
initiated at same time, one of speaker PA bits are
not set in particular race scenario. Handle the
broadcast check in soundwire framework to ensure
broadcast is disabled only when respective gr_sid
slave calls swr_remove_from_group.

CRs-Fixed: 2282230
Change-Id: I6f82a8c3c0f39dc20c1def09c1728ce4c26c2f5d
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2018-12-26 07:53:59 +01:00
Karthikeyan Mani
09789b865c soundwire: Fix swr device count logic in registration
Increment swr device count before registration to
enable proper device detection in probe call, Decrement
the same count if the registration fails.

CRs-fixed: 2050725
Change-Id: If0133cbf751195542d9e1f16679cc63547b56778
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2017-06-07 00:29:25 -07:00
Karthikeyan Mani
db56317667 soundwire: Move device init functionality from master
Move from master probe to the slave probe, the
device init functionality of swr slave. Provide
device remove functionality to remove a given
device from the master's list.

CRs-fixed: 2050710
Change-Id: Iee95c146d8b148e15dca5a8c10de65368cf3b55a
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2017-06-07 00:15:42 -07:00
Phani Kumar Uppalapati
ae4cedcf33 soundwire: Add API to ungroup soundwire slave devices
Add soundwire API to remove the soundwire slave devices
from group so that the devices can be controlled
independently as required.

CRs-fixed: 1007465
Change-Id: Ibca3e33c0e85629ae5ce121e75526f4786d6408a
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
2016-05-20 13:33:55 -07:00
Phani Kumar Uppalapati
22ba2185da soundwire: Add API to control slave device data path
Add soundwire API to control slave device data path
enable or disable. This gives slave device drivers
more flexibility for data path control during device
path enablement.

CRs-fixed: 996586
Change-Id: Ic0ab015098035418458a5ba7c2ffad9df20f933c
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
2016-05-06 12:06:19 -07:00
Sudheer Papothi
db36660f6c soundwire: Fix NULL pointer check while setting group ID
Fix NULL pointer check while setting group ID to avoid
dereferening of the pointer.

CRs-Fixed: 971240
Change-Id: Ic5aae901244e7b2b96a894d265a6cc5c119f0367
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2016-03-23 21:19:28 -07:00
Sudheer Papothi
7b9c5205f5 soundwire: Add support to use group id for slave devices
Devices with the same group id or broadcast command can be
configured simultaneously. This will help improve the latency
during device configuration. Add support to use group id
for slave device configuration.

Change-Id: I5e86e61a0b5223de6c6471f3f342fe1f387d81ef
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2016-03-23 21:13:10 -07:00
Sudheer Papothi
03f5d7efe2 ASoC: wcd: Add Audio codec drivers for MSM targets
Add snapshot of audio codec drivers for MSM targets. The
code is migrated from msm-3.18 kernel at the below commit/AU level-

AU_LINUX_ANDROID_LA.HB.1.3.1.06.00.00.187.056
(e70ad0cd5efdd9dc91a77dcdac31d6132e1315c1)
(Promotion of kernel.lnx.3.18-151201.)

Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2016-03-23 20:11:28 -07:00