Commit Graph
3140 Commits
Author SHA1 Message Date
yaozm1 81c4cb937b asoc:Enable necessary log for mbhc
Propogate changes from (CR).
For headset debug purpose;
Enable necessary log.

Change-Id: Ib34f66978a7659ca396ef6db4d0a8e5f18363bd4
Signed-off-by: yaozm1 <yaozm1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1581555
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
(cherry picked from commit 08300c96a3e1454a6c8e2de9df5a3df69ecc1776)
Reviewed-on: https://gerrit.mot.com/1744665
Reviewed-by: Yunfei Guo <guoyf2@motorola.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
2023-06-01 00:35:13 -03:00
guoyf2 feb238febf Audio bringup: asoc: add aw882xx support
Change-Id: Ia5781b73ecaceba7393379da5c38c63112e7f894
Signed-off-by: guoyf2 <guoyf2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1732545
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Submit-Approved: Jira Key
Tested-by: Jira Key
Reviewed-by: Yunfei Guo <guoyf2@motorola.com>
Reviewed-by: Xianhong Li <lixh8@lenovo.com>
2023-06-01 00:35:13 -03:00
Linux Build Service Account 66b9d28370 Merge fa03eae637 on remote branch
Change-Id: I9473edbe13f26f250784aa399eb009a94a7d9721
2023-02-20 04:02:38 -08:00
qctecmdr fa03eae637 Merge "ASoC: rouleur-mbhc: Enhance impedance calculation logic" 2023-01-22 06:56:30 -08:00
qctecmdr e7371e7285 Merge "ASoC: rouleur-mbhc: Fix pop noise heard when headset insertion" 2023-01-22 06:51:23 -08:00
Soumya Managoli 28658bc2a0 ASoC: msm-pcm-q6-v2: Add dsp buf check
Current logic copies user buf size of data
from the avail dsp buf at a given offset.
If this offset returned from DSP in READ_DONE event
goes out of bounds or is corrupted, then it can lead to
out of bounds DSP buffer access, resulting in memory fault.
Fix is to add check for this buf offset, if it is within
the buf size range.

Change-Id: I7753cc6db394704dbb959477150141d42b836bef
Signed-off-by: Soumya Managoli <quic_c_smanag@quicinc.com>
2023-01-11 17:53:21 +05:30
Vijay Kumar Maddula c03164c8a2 ASoC: rouleur-mbhc: Enhance impedance calculation logic
When headset insert, calculate impedance for multiple times
and stop calculating if the result is within the threshold.
Modify register write sequence as per rouleur software sequence.

Change-Id: Id035304963d0822f758d7a527a712aca500a8a78
Signed-off-by: Vijay Kumar Maddula <quic_vmaddula@quicinc.com>
2023-01-10 02:18:24 -08:00
Vijay Kumar Maddula b99e002ebb ASoC: rouleur-mbhc: Fix pop noise heard when headset insertion
Observed pop noise during impedance discharge after
headset/headphone plugged in.
Adding 40ms delay while discharge to complete ramp down properly.

Change-Id: I7eb4ba3423660454990722579b7c7b57156c8067
Signed-off-by: Vijay Kumar Maddula <quic_vmaddula@quicinc.com>
2023-01-05 21:42:14 -08:00
Vaibhav Raut 5fd49711c9 asoc: wsa881x: Fix to set the correct volume level
Equality operator was used instead of assignment.
Updated the same.

Change-Id: I6f49dc8801669ae1734b9b3f31b57a6a8dfdfbde
Signed-off-by: Vaibhav Raut <quic_vraut@quicinc.com>
2022-12-22 11:34:42 +05:30
Shalini Manjunatha 03feca0991 soc: swr-mstr-ctrl: remove FIFO_Flush for overflow
FIFO_Flush should only be for SWRM_INTERRUPT_STATUS_CMD_ERROR.
For other usecase, it should not be flushed otherwise it would
cause register write mismatch and cause some sideeffect.

Change-Id: I3316f0fefa10b58ceabd57990db0782e0654a580
2022-11-24 17:32:42 +05:30
ronghuiz 3789f88189 asoc: Add routing control for qrb5165 BT HFP usecase
Add entry in snd_soc_dapm_route array for hfp client rx mixer
control path.
Add entry in iwsa_cdc_rx_0_port_mixer_controls for
slimbus7 interface

Change-Id: I782cfbc56344fec9454a8317fbab828cab0e6fde
2022-11-07 12:58:50 +08:00
Shalini Manjunatha 09aa948bc6 soc: swr-mstr: Store and compare dev_addr along with dev_num
-> If enumeration is changed runtime, dev_num gets changed
-> so it might result in different dev_num for same device
-> between swrm_connect_port and swr_disconnect_port while powering
up and down of widget
-> This results in not emptying the port_req list, hence swrm not
going to suspend state
-> This results into adsp not going to sleep state

Change-Id: I80326a35f0cac7f7be30cbbee119a8ba247a0f76
2022-09-14 10:51:38 +05:30
Linux Build Service Account c098c04955 Merge 38e81d823d on remote branch
Change-Id: I9f051db786269969ec94ec0ef2560e1117cd93ab
2022-08-15 02:14:07 -07:00
Vaibhav Raut 54fca86eb6 Asoc: fix integer overflow for long duration offload playback
update runtime total bytes transferred and received
in compress driver.

Change-Id: I1bd129e18681fcf10a27efaa061594081114c1fb
Signed-off-by: Akhil Karuturi <akarutur@codeaurora.org>
2022-07-27 17:15:15 +05:30
qctecmdr 38e81d823d Merge "asoc: Correct the range of dev_token for usb headset." 2022-07-22 08:07:41 -07:00
Fudong Zhang 99b672de4e asoc: Correct the range of dev_token for usb headset.
The range shows 0->-1 which is not right.

Change-Id: Icb319271795826aa49b80f354ee8d3507febc8ae
Signed-off-by: Fudong Zhang <quic_fudozhan@quicinc.com>
2022-07-14 20:34:35 +08:00
Meng Wang d212c829f3 asoc: pcm-noirq: set substream state to disconnect when ssr happens
When SSR happens, set substream state to SNDRV_PCM_STATE_DISCONNECTED
to avoid userspace keeping waiting for substream state and causing
deadlock.

Change-Id: Iaa4d76101204652742c55d13da5c770c418a16bc
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2022-07-11 22:32:10 -07:00
Linux Build Service Account 9d63d445e1 Merge ec3ecad742 on remote branch
Change-Id: I76c911b1d7164991c74b7d0604e6346f911071bc
2022-07-09 00:12:56 -07:00
Sunil Yellamelli ec3ecad742 soc: pinctrl-lpi-legacy : Add nullptr check
fix for nullptr dereference issue

Change-Id: I245094107fe6a57ea5139604d244a03be3e63fcd
Signed-off-by: Sunil Yellamelli <quic_syellame@quicinc.com>
2022-06-22 16:07:33 +05:30
Linux Build Service Account d054ad857c Merge b03e6b4f97 on remote branch
Change-Id: I67e3ed788ccd3527d0b0116cc7cf25776fb9b404
2022-05-16 05:41:47 -07:00
Arungopal Kondaveeti 93ff782147 asoc: msm-pcm-routing: Assign default topology when app_type is zero
In normal cases audio hal will sent  proper ACDB and APP type values
but in some cases if app type becomes zero.Assign default topology
when app_type is zero.

Change-Id: Id588308650f823f7d94ffb1fd2d7656d4bcf9cb2
Signed-off-by: Arungopal Kondaveeti <quic_kondavee@quicinc.com>
2022-04-27 00:26:33 -07:00
qctecmdr b03e6b4f97 Merge "asoc: codecs: fix race condition of core vote and reg access" 2022-04-26 02:26:15 -07:00
qctecmdr 580a6ea284 Merge "asoc: notify dp driver after disp codec probe" 2022-04-26 02:26:14 -07:00
ronghuiz 358438b502 asoc: notify dp driver after disp codec probe
Since dp driver load faster than audio driver,
Dp driver can't get ext codec ops, we need to notify
Dp driver after audio disp codec driver probe.

Change-Id: I159faefad06e04a1727c71240c7cf90d48522504
2022-04-20 00:10:14 -07:00
Vangala, Amarnath affa5ed6fb asoc: codecs: fix race condition of core vote and reg access
Auto suspend timer for core vote is triggering before read write complete.
Move the auto suspend of core vote to post read write operation.

Change-Id: Ib0f6b026fe0e7fd3fbe052691db492915e436a78
Signed-off-by: Vangala, Amarnath <avangala@codeaurora.org>
2022-04-12 20:20:38 -07:00
Linux Build Service Account 74bdcb6310 Merge deab6661d2 on remote branch
Change-Id: I45b6e9ab6a48d99ad6fe339aef2b83f58a103c02
2022-04-06 05:29:49 -07:00
Faiz Nabi Kuchay df752383fc ASoC: wcd937x: Add check for ULP irrespective of the Class
Add check for ULP mode irrespective of the Class to update
QCRG sequence.

Change-Id: Ie314aec147083df2b7db3e2769e3ff652d13c7de
2022-04-05 23:08:59 -07:00
Shazmaan Ali 7ce05e2df9 asoc: codecs: Add nullptr check
fix for nullptr deref issue

Change-Id: I26acf2c5c696038c6d5c64d858174b2f2c58a7d3
Signed-off-by: Shazmaan Ali <quic_shazmaan@quicinc.com>
2022-03-25 13:59:41 -07:00
Faiz Nabi Kuchay deab6661d2 ASoC: wcd937x: Update QCRG sequence for wcd937x
Update QCRG sequence for wcd937x.

Change-Id: I039a8b2dc74c34722b6c81bab429dee6326ec362
2022-03-21 23:48:38 -07:00
Linux Build Service Account a99182ff0d Merge 695fc8b6d6 on remote branch
Change-Id: Ia6f91a801228557d57159742c8d592800d01cc16
2022-03-08 23:02:45 -08:00
Lakshman Chaluvaraju b050316e86 asoc: changes to fix KW errors.
Add changes to fix KW errors.

Change-Id: I87fc8bf5b2753cef6af881713637e9521389708d
Signed-off-by: Lakshman Chaluvaraju <quic_lchalu@quicinc.com>
2022-02-15 20:56:21 -08:00
Lakshman Chaluvaraju 695fc8b6d6 asoc: changes to fix KW errors.
Add changes to fix KW errors.

Change-Id: I87fc8bf5b2753cef6af881713637e9521389708d
Signed-off-by: Lakshman Chaluvaraju <quic_lchalu@quicinc.com>
2022-01-27 11:31:16 +05:30
Linux Build Service Account 8d18f19138 Merge 691eeafacf on remote branch
Change-Id: I63ba7573692fc55d34ac5a2eca5e013229cd6cd0
2022-01-10 04:42:57 -08:00
Sudheer Papothi 691eeafacf ASoC: pcm-routing: Add WSA VI sense macro to support capture
Add WSA VI sense macro to support VI sense capture.

Change-Id: I704aa6fbcb3908c0b76c82c941818b64e1d4598b
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2021-12-09 14:48:10 +05:30
Linux Build Service Account b133b2c47e Merge d8b7b3eda7 on remote branch
Change-Id: I4f7242170e44a2d7f45b4dd3b13f0054c44d4de4
2021-11-16 22:23:15 -08:00
Soumya Managoli 722d9fd1a7 ASoC: wcd937x: Update EAR PA CnP FSM sequence
EAR PA short switch is not released after
PA is turned on and off.
Address this hardware issue by updating the
EAR PA CnP FSM while EAR power down sequence.

Change-Id: If4269c30c13572db1b252f223368d444b9250901
Signed-off-by: Soumya Managoli <smanag@codeaurora.org>
2021-11-07 21:31:41 -08:00
qctecmdr d8b7b3eda7 Merge "soc: swr-mstr: update component and interrupt enable sequence" 2021-11-05 05:28:12 -07:00
qctecmdr 4fb2a8fe25 Merge "soc: swr-mstr: Fix headset detect issue due to master.num_dev not updated" 2021-11-05 05:28:11 -07:00
qctecmdr 3d5792b70b Merge "ASoC: wcd937x: Update EAR PA CnP FSM sequence" 2021-11-05 05:28:11 -07:00
qctecmdr 2e5243e208 Merge "soc: add check condition before enabling irq" 2021-11-01 07:24:42 -07:00
Meng Wang 5144dbbcd1 soc: swr-mstr: update component and interrupt enable sequence
Enable component after enabling interrupt to avoid missing
some intterupt during master init.

Change-Id: I0f60c5431a815c58f878d3b9275a046e47939111
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2021-11-01 03:09:45 -07:00
Linux Build Service Account a13da578ef Merge a1d9ad0e09 on remote branch
Change-Id: I5dce617345866805c99ce64b4647bc09f3bb0033
2021-11-01 00:59:55 -07:00
Soumya Managoli 4b95879003 ASoC: wcd937x: Update EAR PA CnP FSM sequence
EAR PA short switch is not released after
PA is turned on and off.
Address this hardware issue by updating the
EAR PA CnP FSM while EAR power down sequence.

Change-Id: If4269c30c13572db1b252f223368d444b9250901
Signed-off-by: Soumya Managoli <smanag@codeaurora.org>
2021-10-26 12:31:23 +05:30
Vignesh Kulothungan 86fd2a41db soc: add check condition before enabling irq
Enable interrupt request only when the interrupt is
in disabled state.

Change-Id: I67795bf0ee344661e02b0fec3181cd7980d56652
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2021-10-18 14:38:05 +05:30
Linux Build Service Account 247f52e45a Merge 505430b7d1 on remote branch
Change-Id: I5dc17198b73a9c53aa56e3b121be85cf5b894d71
2021-10-17 03:55:09 -07:00
Vatsal Bucha a1d9ad0e09 ASoC: wcd937x: Add change for LDOL VOUT accuracy calibration
ATE stores the calibration result in EFUSE register. This has to
be copied to sleep bandgap voltage for accurate calibration.

Change-Id: I118c5c3b42ba4cfd42185d8da6d468f44e31b88f
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2021-10-13 12:46:19 +05:30
Soumya Managoli 505430b7d1 ASoC: dsp: Synchronise adm commands
Race condition observed while processing the
get/set_pp_params and adm_close command.
Synchronise adm open, close and get/set_pp_params
by sending the apr cmd pkt using the same lock.

Change-Id: I9a1ebcedc91f78f3940846688f8569ec9088e1e7
Signed-off-by: Soumya Managoli <smanag@codeaurora.org>
2021-10-06 10:52:42 +05:30
Linux Build Service Account 52c6f2246f Merge 5cfdc3799d on remote branch
Change-Id: I9a8d75ee2ae11d186e8a3e5510d638b4063784c1
2021-09-30 10:49:45 -07:00
Vatsal Bucha 41c63392cb ASoC: wcd937x: Add change to micbias reg for new tanggu fab id
Add change to micbias reg for new tanggu fab id.

Change-Id: I9bfa54c6ee3b87db56e72c1fefb4d4f0db461f14
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2021-09-28 12:31:22 +05:30
Vatsal Bucha edbd2b5086 ASoC: wcd937x: Update register value for new fab id for tanggu
Update register value for new fab id for tanggu.

Change-Id: I13594dbd311bbeab115753e0bec1a748158f8100
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2021-09-23 19:17:58 +05:30