Grafik Komit

22 Melakukan

Penulis SHA1 Pesan Tanggal
qctecmdr
3944bb8d29 Merge "Revert "ASoC: rouleur: Reduce PA Gain for low state of charge based on dts node"" 2020-09-15 10:44:42 -07:00
Vatsal Bucha
625753df87 ASoC: codec: Change name for enum defined for callback between wcd and bolero
Add enum names defined for callback between wcd and bolero in
separate file and include that file in order to have same enum
across wcd and bolero.

Change-Id: I808c2ad3de37655c1ba2b8e096def60703ced7f2
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-09-09 20:26:36 -07:00
Vatsal Bucha
ece27ec4e9 Revert "ASoC: rouleur: Reduce PA Gain for low state of charge based on dts node"
This reverts commit 7bc77136ad.

Change-Id: I9c46a0ae8db3c3ea9ab9c908b9faf9b61e4364be
2020-09-04 21:29:05 +05:30
Vatsal Bucha
7bc77136ad ASoC: rouleur: Reduce PA Gain for low state of charge based on dt node
Configure low PA Gain for low state of charge based on dt node.

Change-Id: I7f36cf4b17d9794a2763edc3c2fd5cec53a3521f
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-08-25 15:57:02 +05:30
Vatsal Bucha
ef642d3e2a ASoC: rouleur: Update hph registers based on foundry id
Rouleur has different hph settings for different foundry
id. Read foundry id and update hph settings so as to
provide same settings to end user.

Change-Id: I114047226462ab95e0c93271c3d6099f15af2343
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-07-24 13:53:52 +05:30
Vatsal Bucha
48029da3fe ASoC: rouleur: Change hph and ear gain according to soc capacity
Register to power supply framework to get soc capacity.
Reduce ear and hph gain for reduced voltage to optimize
power consumption. Also set LD22 voltage to lower value
for low SoC.

Change-Id: I94de9341b8c7307128d3cd41c7398c31d57fa685
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-07-21 19:33:24 -07:00
Aditya Bavanari
a8cc7390b5 asoc: rouleur: Fix CnP issues in EAR and LO paths
Update the EAR and LO power up and down sequences to
fix CnP issues in rouleur codec.

Change-Id: I7e6d1cc82e9c1358b336c32b1befb7eb1dd9b552
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2020-07-15 21:49:54 +05:30
Faiz Nabi Kuchay
fb77f24b5a asoc: codecs: Fix mute after SSR issue in rouleur codec
Make dev_up true before giving 500 ms delay in case of AATC
variant during BOLERO_WCD_EVT_SSR_UP event.

Change-Id: Ie8306c92a80df69f087f055d425b22f48f319873
Signed-off-by: Faiz Nabi Kuchay <fkuchay@codeaurora.org>
2020-07-13 05:56:45 -07:00
qctecmdr
a77e7d4be8 Merge "asoc: codecs: Add delay to eliminate playback pause post SSR on hs" 2020-06-09 09:24:19 -07:00
qctecmdr
c1a9199e09 Merge "asoc: codecs: Update LPM voting support for vdd-mic-bias-supply" 2020-06-05 01:54:03 -07:00
Aditya Bavanari
f1035cd51c asoc: codecs: Add delay to eliminate playback pause post SSR on hs
Add delay in post ssr to eliminate playback pause on euro usbc headset.
Post ssr, headset is detected as headphone as HPH PA gets turned ON
before the completion of wcd_correct_swch_plug workqueue in MBHC.

Change-Id: Ib0334b37aa12b7e7371146b26eb3a1f4484656a3
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2020-06-04 20:57:23 +05:30
Aditya Bavanari
cbe9426358 asoc: codecs: Fix volume fluctuation issue in headphone playback
HPH PA pull down control is set to force ON instead of auto
due of which saturation/noise is observed in headset
playback at highest volumes. Set pull down control
to Auto to fix this issue.

Change-Id: I465588f46b04bbb32d84f76b8b5bedd2ef21bd2a
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2020-06-03 21:05:57 -07:00
Aditya Bavanari
050e740320 asoc: codecs: Enable impedance detection for rouleur codec
Implement the impedance calculation logic for
rouleur codec.

Change-Id: I2b62e8c1109f949a12d2f31b4c1f6035a1bc2bba
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2020-06-03 21:05:22 -07:00
Aditya Bavanari
313aa17ac4 asoc: codecs: Add comparator autozeroing support for rouleur
When current source mode is enabled, comparator auto
zeroing should be turned ON by HW. As rouleur codec HW
doesn't do this automatically, add this support
in SW to set the auto zero enable before FSM enable
and reset to auto once FSM is enabled.
Disable surge protection before ADC measurements
and change HPHL and HPHR thresholds while
identifying cross connection for proper
accessory identification.

Change-Id: Ib775de0f0bdb6c655a3c0eb4775276acfbca1e84
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2020-06-03 21:04:31 -07:00
Aditya Bavanari
c3fd6cc305 asoc: codecs: Fix button interrupts issue in rouleur
Current source mode in rouleur does not work
properly leading to issues in button interrupts
and fake electrical removal interrupts.
Enable pull up mode instead of current source
mode to fix these issues. Modify the headset
max vref voltage to 1.7 volts and micbias
calculation logic.

Change-Id: If3e4a2fdcf080b07fe3c363b6eb6115f101b91f4
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2020-06-03 13:46:02 -07:00
Aditya Bavanari
5423077cb8 asoc: codecs: Update LPM voting support for vdd-mic-bias-supply
For power saving during RBSC, need to vote for minimum
or zero current on load for respective regulator to
enter LPM mode. Add required support from rouleur
to vote for mic bias accordingly during suspend/resume.

Change-Id: Idb2accbc77241e19f688225081e1b68b99c19e29
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2020-05-26 01:59:58 -07:00
Aditya Bavanari
9f50810d7f asoc: codecs: Update rouleur watchdog interrupt sequence
Update PDM watchdog interrupt sequence for rouleur
codec. Add HPH PA gain registers in regmap and update
defaults. Update mic bias register bits and rouleur
version for ADIE RTC to work.

Change-Id: I1bbb41efcdd9a0a8b38fcd4beadbd5d639a4b858
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2020-05-12 22:57:48 -07:00
qctecmdr
8310f644b9 Merge "asoc: codecs: fix incorrect micbias value set at rouleur" 2020-04-29 22:27:54 -07:00
Xiaojun Sang
27b6c75029 asoc: codecs: fix incorrect micbias value set at rouleur
Micbias value set does not take effect on rouleur.
Shift micbias value to correct bits.

Change-Id: Ice083e3bc30f6e8e3fe7132c633a4043329ccfa5
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
2020-04-25 20:01:22 -07:00
Aditya Bavanari
b4364f47ec asoc: codecs: Update sequence for HPH path in rouleur
Update HPHL and HPHR sequence to avoid clicks and pops
by setting the LDIV and RDIV values in HD2
coefficients and increasing ramp time.

Change-Id: Ib47d14255a098511393b4b75392854c8b34dc0d3
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2020-04-20 11:32:47 -07:00
Aditya Bavanari
ee6367c560 asoc: Add support for rouleur codec in machine driver
Add rouleur codec support in bengal machine driver
to create codec entry and invoke mbhc hs detect
functions for respective codecs. Correct the logic
for headset detection pull up current and
volatile registers for digital part of rouleur codec.

Change-Id: I22545dc796c215c1501e883796546c97d8ca8698
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2020-04-16 01:17:00 -07:00
Aditya Bavanari
9120845177 asoc: codecs: Add support for rouleur codec
Add support for rouleur codec driver and pm2250
spmi driver.

Change-Id: Ie56f7af012c0c7b6e68077463f43050e051a3ef9
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2020-03-24 00:48:23 -07:00