Commit Graph
3162 Commits
Author SHA1 Message Date
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
qctecmdr 5cfdc3799d Merge "ASoC: wcd937x: Change resistor divider output for hph if fab id is enabled" 2021-09-22 22:15:57 -07:00
Linux Build Service Account aca15b39ac Merge f91caf5f58 on remote branch
Change-Id: I1d79d05f69b53ca47f0179e77f62b624a312c236
2021-09-05 23:21:38 -07:00
Vatsal Bucha 774957f968 dsp:q6afe: Resolve crash in q6afe_get_avcs_modules
Crash is happening in q6afe_get_avcs_modules in
APTX-Adaptive case. Check for format_id as
aptx_adaptive or lc3 to resolve crash.

Change-Id: I3e47bf38010a20df746455e35e316fa2103bc04a
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2021-09-03 12:53:34 +05:30
Vatsal Bucha cf02882f86 ASoC: wcd937x: Change resistor divider output for hph if fab id is enabled
Depending on efuse reg value, if fab id is enabled,
change resistor divider output to P12 for both hphl and hphr.

Change-Id: If5e0caac2648f6e0b8c089bb56883a442b5a8ecd
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2021-09-01 20:19:58 -07:00
Linux Build Service Account 938f14813e Merge ba00f99c41 on remote branch
Change-Id: I349bcf7272050374b32e6dbaf6e93ba496329cfe
2021-08-23 01:54:28 -07:00
Ramu Gottipati f91caf5f58 dsp: adm: add to check output/input channel value
To avoid out of bound value of output/input
channel add the check.

Change-Id: I25b7616d6fc08c2d0bb530dfb1457471dc25861c
Signed-off-by: Shashi Kant Maurya <smaury@codeaurora.org>
Signed-off-by: Ramu Gottipati <ramug@codeaurora.org>
2021-08-12 04:15:43 -07:00
qctecmdr ba00f99c41 Merge "asoc: wcd-cpe: Set the dma_mask for cpe_device" 2021-08-08 23:12:19 -07:00
Kunlei Zhang e6bdb3bfd6 asoc: Parse wcd-datalane-mismatch property to update rx frame config for khaje
Due to datalane mismatch, update rx frame config to use DATA_LANE0 for
khaje qrd.

Change-Id: I0f5720ab1d7b7c585f7df986481c28568385f09d
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
2021-08-04 03:53:36 -07:00
qctecmdr e76714cb32 Merge "ASoC: msm8952: Defer until pcm voice probe done" 2021-08-02 23:23:49 -07:00
qctecmdr d0f1d9b84f Merge "q6afe: Fix out of bound access of clkinfo_per_port" 2021-08-02 23:23:49 -07:00
Shashi Kant Maurya 4314a0f156 asoc: wcd-cpe: Set the dma_mask for cpe_device
Memory allocation for wcd-cpe ramdump fails as memory is
not allocated from CMA reserve leading to CPE configuration
failure.
So force driver to allocate memory from CMA by
initializing the device’s coherent_dma_mask and dma_mask.

Fixes the SVA CPE sound model loading issue on tashalite variants.

Change-Id: Ic47017009aee666e364c7ec3ac62725c77a36b3c
Signed-off-by: Shashi Kant Maurya <smaury@codeaurora.org>
2021-08-02 14:13:15 +05:30
Linux Build Service Account 96d83ec1c9 Merge ffe853a885 on remote branch
Change-Id: Ifde3e9fa15c2ef69ad1b205e9f16c3763fe10cd1
2021-08-01 21:33:50 -07:00
Kunlei Zhang f22c602a31 asoc: Parse wcd-datalane-mismatch property to update rx frame config for khaje
Due to datalane mismatch, update rx frame config to use DATA_LANE0 for
khaje qrd.

Change-Id: I0f5720ab1d7b7c585f7df986481c28568385f09d
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
2021-07-30 19:10:53 +08:00
Subhadra Jagadeesan 17074ec9bc ASoC: msm8952: Defer until pcm voice probe done
Random issue of delayed voice component probe is observed
sometimes happening after sound card registration. This causes
voice component driver probe not getting called during card registration and
results in voice mixer controls like CVD_Version missed out from sound mixer controls.
This results in crash in audio HAL acdb initialization flow.

Fix is to check for voice pcm probe status in machine driver and
defer until done.

Change-Id: Ib4e380da90d3dd66f054b46227e9fb79648b7524
Signed-off-by: Subhadra Jagadeesan <subhja@codeaurora.org>
2021-07-28 16:50:40 +05:30
Soumya Managoli 96167aa481 q6afe: Fix out of bound access of clkinfo_per_port
Avoid accessing clkinfo_per_port struct with idx
when idx is invalid.

Change-Id: I45bef3381659622cdb63d076842e9d58f54da0f5
Signed-off-by: Soumya Managoli <smanag@codeaurora.org>
2021-07-28 10:49:41 +05:30
qctecmdr ffe853a885 Merge "asoc: Register CDC_DMA interface only if enabled" 2021-07-24 11:15:18 -07:00
qctecmdr d642c50b52 Merge "config: sdm450: Disable CDC_DMA interfaces" 2021-07-24 11:15:18 -07:00
qctecmdr 20e0f5bb61 Merge "asoc: codecs: add null check before access" 2021-07-24 11:15:18 -07:00
Subhadra Jagadeesan 95f1bad1d3 asoc: Register CDC_DMA interface only if enabled
Register for the widgets and interconnections in routing
driver only when the respective interfaces are supported.
Add config based approach for CDC_DMA interface.

Change-Id: I56a8a3c14896cd1e267a4099e90ca480d13e2d6f
Signed-off-by: Subhadra Jagadeesan <subhja@codeaurora.org>
2021-07-15 11:45:03 +05:30
Subhadra Jagadeesan 6b0c8ad91b config: sdm450: Disable CDC_DMA interfaces
Added configs to disable CDC_DMA interface in sdm450 autoconf.
This is done to disable mixer controls and related
intercon routes in routing driver to avoid registration of
unnecessary sound controls to optimize audio sound card loading.

Change-Id: I6040f5f8ff5c0e09960bbb0332c7890f2b183f04
Signed-off-by: Subhadra Jagadeesan <subhja@codeaurora.org>
2021-07-15 10:57:07 +05:30
qctecmdr 5fd51489bb Merge "ASoC: wcd: Add check to stop invalid memory access" 2021-07-14 02:16:54 -07:00
Lakshman Chaluvaraju e7a2c47f01 asoc: codecs: add null check before access
Add null check before accessing cable status.

Change-Id: I77d19f543cf56ffaa159c490ea4df1f8c5a0f272
Signed-off-by: Lakshman Chaluvaraju <lchalu@codeaurora.org>
2021-07-13 16:39:59 +05:30
qctecmdr 5ffb545a61 Merge "audio-kernel: enable wsa883x compilation on qrb5165" 2021-07-11 23:35:09 -07:00
Zhou Song c4b4d9d89a asoc: fix KW issue of using uninitialized variable
Set initial vaue for cfg_type to avoid possible
accessing of uninitialized variable.

Change-Id: Ib2fa91202442a656915263694bd6fbf5cd663544
Signed-off-by: Zhou Song <zhous@codeaurora.org>
2021-07-09 07:02:55 -07:00
qctecmdr de549a6f75 Merge "asoc: codecs: Fix LPASS register access during bootup" 2021-07-08 20:30:27 -07:00
qctecmdr 9b69c23403 Merge "ASoC: msm8952: avoid static route between cpu and codec dai" 2021-07-08 20:30:27 -07:00
Shuai Zhang fcc68bbb9e audio-kernel: enable wsa883x compilation on qrb5165
Add support of wsa883x on qrb5165.
Since both qrb5165 and sxr2130 use the same kona`s config,
qrb5165 also needs to support wsa883x compilation,
otherwise carsh will appear.

Change-Id: Ibc9606b41bc3ae89672f8c4588c91c601cd8ea4c
Signed-off-by: Shuai Zhang <shuzhan@qti.qualcomm.com>
2021-07-08 00:18:12 -07:00
Sujin Panicker db70954c3b ASoC: Enable wsa881x-temp-sensor for bengal
Enable wsa881x-temp-sensor only for bengal, since
sdm450 uses both analog and digital wsa and would
cause symbolic error as wsa881x-temp-sensor would
be enabled twice.

Change-Id: Ibe78bee9a4400f5c4a355056b53d0bf726546f55
Signed-off-by: Sujin Panicker <c_spanic@qti.qualcomm.com>
2021-07-06 18:48:43 +05:30