Commit graph

3,832 commits

Author SHA1 Message Date
qctecmdr
deec79da50 Merge "dsp: q6adm: Resolve pop noise heard during playback when screen rotated" 2021-09-15 00:32:06 -07:00
qctecmdr
169b8b1e6b Merge "dsp : Support different mode POPPs connect to same COPP" 2021-09-07 05:24:58 -07:00
qctecmdr
8ef759651e Merge "dsp:q6afe: Resolve crash in q6afe_get_avcs_modules" 2021-09-07 05:24:58 -07:00
qctecmdr
54c572ba92 Merge "asoc: codecs: Fix mute if hpf cut off freq set to 150hz" 2021-09-07 05:24:58 -07:00
qctecmdr
5b2e1084f7 Merge "ASoC: wcd937x: Change resistor divider output for hph if fab id is enabled" 2021-09-07 05:24:58 -07:00
Vatsal Bucha
e66ba13773 dsp: q6adm: Resolve pop noise heard during playback when screen rotated
Pop noise is heard during speaker swap when screen
is rotated. This is because path is not muted before
swap. Mute path before applying swap and unmute afterwards
to resolve issue.

Change-Id: I235a75f92c451b95dae89671681628e500e3029a
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2021-09-02 18:12:37 +05:30
Vatsal Bucha
732b5ca86a 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-02 14:42:50 +05:30
Hexuan Zhu
5239366167 dsp: Fix audiodlkm sparse warning issue
To resolve sparse warnings due to kernel downstream changes,
we need to fix audio-kernel sparse warning.

Change-Id: I5ecd30f6fa818c0e290c61f6157246770ca47b74
Signed-off-by: Hexuan Zhu <hexuzhu@codeaurora.org>
2021-09-02 15:15:12 +08:00
qctecmdr
9c87b94c10 Merge "ASoC: wcd937x: Change comment for enabling tanggu second source" 2021-08-27 11:41:31 -07:00
qctecmdr
f737033275 Merge "ASoC: mbhc-adc: Enable BCS if plug type already reported" 2021-08-27 11:41:31 -07:00
qctecmdr
8fea5f6500 Merge "asoc: add supported ec_ref port" 2021-08-27 11:41:31 -07:00
qctecmdr
604133a0a7 Merge "asoc: clean klocwork warnings" 2021-08-27 11:41:31 -07:00
Hongtao Peng
549e4babae dsp : Support different mode POPPs connect to same COPP
Allow Low-Latency POPP and Legacy POPP connect to the same COPP
Allow Low-Latency POPP use spcical topology

Change-Id: I67365d8dd98eaebccd78a7e237891e85a518003b
Signed-off-by: Hongtao Peng <hongtaop@codeaurora.org>
2021-08-26 01:56:11 -07:00
Vatsal Bucha
3a50469cbe asoc: codecs: Fix mute if hpf cut off freq set to 150hz
There is mute in recorded sound when hpf cut off freq is
150hz as hpf is never gated for the same.
Gate hpf register in order to avoid mute.

Change-Id: Ic6bb6da529d78140a734675dae8c8b9f220e0054
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2021-08-25 16:57:19 +05:30
Vatsal Bucha
2cf4691ce7 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-08-25 14:46:06 +05:30
Vatsal Bucha
3b35be1eba ASoC: codecs: Initialize temp_val before use for wsa881x-analog
Initialize temp_val before use in wsa881x_ocp_ctl_work.

Change-Id: Id4fcca78068896be1e7a8fa0d382ea903bd6934f
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2021-08-23 11:43:15 +05:30
Vatsal Bucha
8cbd96d836 ASoC: wcd937x: Change comment for enabling tanggu second source
Change comment for enabling tanggu second source in init.

Change-Id: I4aa2dbd2b584d0c5ad19b676acb5188e4fd78491
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2021-08-20 10:01:47 +05:30
Erin Yan
a4b9951fee asoc: add supported ec_ref port
Extend ec_ref port array to support PRI_TDM_RX_2/TERT_TDM_RX_0/SEC_TDM_TX_1 port.

Change-Id: Id4f5692a1dea64f2510bc650606ef0c155062858
Signed-off-by: Erin Yan <xinyey@codeaurora.org>
2021-08-17 19:19:06 -07:00
qctecmdr
02744ac315 Merge "audio-driver: Modify audio headers path" 2021-08-12 21:40:22 -07:00
qctecmdr
44bba8a442 Merge "asoc:differentiate sa8155 and sa6155 snd card" 2021-08-12 21:40:22 -07:00
Vatsal Bucha
9f495f6dd4 ASoC: mbhc-adc: Enable BCS if plug type already reported
BCS is not enabled sometimes after inserting headset if
plug is already reported and we dont report it again.
Enable BCS if plug type already reported.

Change-Id: I8c9f15ced66a21bda169d3479da96168ebec26a7
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2021-08-11 13:10:13 +05:30
Zun Qiao
83a26db097 audio-driver: Modify audio headers path
Modify audio headers path to fix build error.

Change-Id: Ic6a63cbd252df59b705f1db30fde2d060dbedb6c
Signed-off-by: Zun Qiao <zqiao@codeaurora.org>
2021-08-09 02:09:56 -07:00
qctecmdr
e3766898f3 Merge "ASoC: msm: fix ec reference channel issue" 2021-08-08 23:18:35 -07:00
qctecmdr
a9926e433d Merge "dsp: q6asm: fix consecutive cal_memory unmap failure" 2021-08-08 23:18:35 -07:00
qctecmdr
f0bec96171 Merge "asoc: bengal: update soundwire master port config for bengal" 2021-08-08 23:18:35 -07:00
qctecmdr
4374553f80 Merge "ASoC: mbhc-adc: Resolve bcs not enabled for us headset" 2021-08-08 23:18:35 -07:00
qctecmdr
d17f74aaf8 Merge "ASoC: bolero: Return the correct clk_div value" 2021-08-08 23:18:35 -07:00
Alex Zou
e6cc4ee9f2 asoc:differentiate sa8155 and sa6155 snd card
update sa8155 and sa6155 soc dai link

Change-Id: I1a4803763299e26acded0653e0d980223323d17d
2021-08-05 12:51:16 -07:00
Alex Zou
dd512fa708 asoc: add dummy machine driver for hgh snd card probing
add dummy machine driver for HGH SND card

asoc: add auxpcm nodes for hgh

Change-Id: Ic154a7c157c8a33bf8e5e3cd642238c750e5e9bd
Signed-off-by: Narsinga Rao Chella <nrchella@codeaurora.org>

Change-Id: Ia5c36c9ccfbfc922cb7871886e36020457fc5ba0
2021-08-05 12:31:22 -07:00
Guodong Hu
ce2515b1b3 dsp: q6asm: fix consecutive cal_memory unmap failure
buffer_node for cal_memory are maintained in asm
commont_client IN-port lists.
Current codes work fine for the pattern:
map, unmap, map, unmap, map, unmap...
But it fails at the second unmap in the cases:
map, map, map, unmap, unmap, unmap, since the
buffer address in the common_client has not been
updated and we are actually trying to unmap
the same buffer multi-times.

Change-Id: I51f442dc8063a55932f44b8b7f3c689029565f7b
Signed-off-by: Guodong Hu <guodhu@codeaurora.org>
2021-08-03 07:31:25 -07:00
Deru Wang
e8c9cbd8e5 asoc: add support run-time detection of Gen3/Gen4
On GVM, we need enable machine driver now for Gen3
and Gen4 in a image, which means we need detect dtb
file at run-time to register the soundcard of Gen3
and Gen4.

Change-Id: I9d8a5bb1f4c88616b90aea60d1bb5654b241d3d0
Signed-off-by: Deru Wang <deruwang@codeaurora.org>
2021-08-03 16:04:51 +08:00
Dechen Chai
b1130f2590 asoc: bengal: update soundwire master port config for bengal
Update soundwire master port config for bengal.

Change-Id: I0ace747fba93ac391e4ca14296233e336d0c227c
Signed-off-by: Dechen Chai <dchai@codeaurora.org>
2021-08-03 00:57:46 -07:00
qctecmdr
3971a6b337 Merge "asoc: bengal: Upadte machine driver for codec dai-link" 2021-08-02 23:14:31 -07:00
qctecmdr
1104fd1179 Merge "asoc: bengal: Add wcd937x codec dai-link for bengal" 2021-08-02 23:14:31 -07:00
Vatsal Bucha
65e69e25c3 ASoC: mbhc-adc: Resolve bcs not enabled for us headset
BCS is not enabled for us headset as after 3sec loop
we directly switch to report headset and bcs is still disabled.
Enable bcs only after reporting valid plug to resolve issue.

Change-Id: I69bb71d20583fd2e2be921e9b657d9c44c047708
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2021-08-02 15:04:46 +05:30
Kunlei Zhang
6580d442ca 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 04:41:37 -07:00
Sitong Chen
b349a2afd4 asoc: clean klocwork warnings
Add changes to fix KW warning in audio driver

Signed-off-by: Sitong Chen <sitochen@codeaurora.org>
Change-Id:I7863c0ab7de63c9d5880e5616bb2c9c1a35ab8dc
2021-07-30 00:29:40 -07:00
Shashi Kant Maurya
b3d5d486d8 ASoC: bolero: Return the correct clk_div value
clk_div starts with index 0.
Incorrect check for return value of
clk_div_get is causing CLK_DIV2 setting
being missed. Change is to correct the same.

Change-Id: If0475cee5b1d5a9e0184e90f6046c389cd9122a9
Signed-off-by: Shashi Kant Maurya <smaury@codeaurora.org>
2021-07-30 10:52:47 +05:30
Hongtao Peng
33b18e716b ASoC: msm: fix ec reference channel issue
Allow the number of ec reference channel is 0, in capture case.

Change-Id: If2c10a1f885d51a5f99ef4641027fcfbb8fccebc
Signed-off-by: Hongtao Peng <hongtaop@codeaurora.org>
2021-07-28 19:04:13 -07:00
qctecmdr
659f37f76f Merge "ASoC : Update max BE DAI index supported in routing driver" 2021-07-27 23:25:27 -07:00
qctecmdr
f3deb8a0a3 Merge "ASoC: bengal: Update machine driver for qrbx210" 2021-07-27 04:25:05 -07:00
qctecmdr
818de3856a Merge "asoc: codecs: Add dai driver in rouleur" 2021-07-27 04:25:05 -07:00
qctecmdr
825a85ba7e Merge "dsp: usf: update wakeup_source API" 2021-07-27 04:25:04 -07:00
qctecmdr
cdd9a15fef Merge "dsp: update avtimer for kernel 5.4" 2021-07-27 04:25:04 -07:00
qctecmdr
7e9c038f39 Merge "asoc: disable mclk2 during boot up stage" 2021-07-27 04:25:04 -07:00
Dechen Chai
26ca05244c asoc: bengal: Upadte machine driver for codec dai-link
Upadte machine driver for codec dai-link

Change-Id: I993ecd9ea0f13b6901e1217172bf9484e79c8953
Signed-off-by: Dechen Chai <dchai@codeaurora.org>
2021-07-27 12:28:19 +05:30
qctecmdr
7198bd3d83 Merge "audio-driver: Update for qrbx210 build" 2021-07-24 11:19:19 -07:00
qctecmdr
3930deeec9 Merge "asoc: codecs: add null check before access" 2021-07-24 11:19:19 -07:00
qctecmdr
a80fc839ea Merge "ASoC: msm: extend audio stream app type cfg mixer with bit width" 2021-07-24 11:19:19 -07:00
Dechen Chai
2645fc8c1d asoc: bengal: Add wcd937x codec dai-link for bengal
Add wcd937x codec dai-link for bengal

Change-Id: I78884d47e422187d94f52cf618db400b56c846ae
Signed-off-by: Dechen Chai <dchai@codeaurora.org>
2021-07-22 15:13:55 +05:30