Commit Graph

3812 Commits

Author SHA1 Message Date
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
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
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
Dechen Chai
578282f10d dsp: usf: update wakeup_source API
wakeup_source_init and wakeup_source_trash are removed in new kernel.
Update the two APIs to wakeup_source_register and wakeup_source_unregister.

Change-Id: I1e0b6e856dc2636032da68bf0e3d2be215d3ae8e
Signed-off-by: Dechen Chai <dchai@codeaurora.org>
2021-07-21 13:26:28 +05:30
Dechen Chai
b746691434 audio-driver: Update for qrbx210 build
Update for qrbx210 build and update for LE build.

Change-Id: I13020267c62aa716e25f1ccd235d0a73ec5f05d0
Signed-off-by: Dechen Chai <dchai@codeaurora.org>
2021-07-21 12:15:40 +05:30
Narsinga Rao Chella
2fc9364ed7 ASoC : Update max BE DAI index supported in routing driver
Increase the max BE DAI index supported to accommodate
SEP & HSIF BE DAI TDM interface added

Suggested-by: Karthik D K
Change-Id: Icb8df001ffa766212bc7f660d18307353ff82e59
Signed-off-by: Narsinga Rao Chella <nrchella@codeaurora.org>
2021-07-21 11:17:57 +05:30
Dechen Chai
300fff002e ASoC: bengal: Update machine driver for qrbx210
Remove msm_aux_codec_init.

Change-Id: Iee99202a6874d52ee1bb0b052c70faac64505411
Signed-off-by: Dechen Chai <dchai@codeaurora.org>
2021-07-21 10:48:25 +05:30
Dechen Chai
132677f6a5 asoc: codecs: Add dai driver in rouleur
Add dai driver in rouleur.
Changed micbias widget to supply widget.

Change-Id: I7ddfe98ac70eab7f622e78758af8467ccf93b8e3
Signed-off-by: Dechen Chai <dchai@codeaurora.org>
2021-07-21 10:37:26 +05:30
Dechen Chai
cb89ebef6a dsp: update avtimer for kernel 5.4
update timespec to timespec64 in avtimer.

Change-Id: I63ada80df880ea670791592cc79804e930f9d311
Signed-off-by: Dechen Chai <dchai@codeaurora.org>
2021-07-21 10:31:12 +05:30
Dechen Chai
874ab7e78c ASoC: bengal: fix build error for new kernel
fix build error for new kernel.

Change-Id: I7876bc4456c0b7d54930a51ac7478d3a3e874d7f
Signed-off-by: Dechen Chai <dchai@codeaurora.org>
2021-07-20 06:21:38 -07:00
Dechen Chai
7c9c5c5b4c asoc: bengal: Update dai-link for qrbx210
Update dai-link for qrbx210.

Change-Id: I40176776ab69d9c365f9d2c03868451318f3bc1a
Signed-off-by: Dechen Chai <dchai@codeaurora.org>
2021-07-20 18:50:37 +05:30
Deru Wang
85282f5383 asoc: disable mclk2 during boot up stage
Disable mclk2 by default. Can enable it with kcontrol
command if needed.

Change-Id: I58af41277f87c135878e419f4a2e6ab4bdf76652
Signed-off-by: Deru Wang <deruwang@codeaurora.org>
2021-07-20 17:22:00 +08:00
qctecmdr
b698fda5c7 Merge "dsp: q6asm: Fix spinlock corruption during q6asm_callback" 2021-07-19 03:05:33 -07:00
Hongtao Peng
d4c4903253 ASoC: msm: extend audio stream app type cfg mixer with bit width
With above extended mixer commands, bit width can be achieved
from fe_dai_app_type_cfg by FE, BE and session type.

Change-Id: I09596ac27b4327a94139b9da0e04befac45c3f30
Signed-off-by: Hongtao Peng <hongtaop@codeaurora.org>
2021-07-14 08:25:45 -07:00
qctecmdr
d48f0b5e1e Merge "ASoC: wcd: Add check to stop invalid memory access" 2021-07-14 02:17:01 -07:00
Vatsal Bucha
cd8da87618 dsp: q6asm: Fix spinlock corruption during q6asm_callback
Use spin_unlock_irqrestore while unlocking mutex being locked
with spin_lock_irqsave to prevent spinlock corruption.

Change-Id: I47def0516348de7caf07134167f4962bf87bcc08
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2021-07-13 18:52:24 +05:30
Lakshman Chaluvaraju
2f778a077d 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:29:55 +05:30
Vatsal Bucha
1da5c56c8b ASoC: bolero: Synchronize bolero register macro function
Bolero_register_macro can be called simultaneously by different
macros as bootup resulting in inconsistent value of
num_macros_registered. This will result in one of macro going ahead and
registering bolero component and other macro failing to register which
will cause probe of other macro to fail. Protect function with mutex lock
so that macros access it sequentially.

Change-Id: Idd0110d8b0bcfdcbf9f03c293c4cdba82e0a8827
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2021-07-08 09:48:33 +05:30
qctecmdr
e73ea1c01a Merge "dsp:q6asm: Resolve warning during compilation for static global function" 2021-07-05 01:54:48 -07:00
qctecmdr
e03cf4b8b1 Merge "SoC: msm: Compatible with loopback case without asm cal data" 2021-06-30 07:01:52 -07:00
Sanjana B
5c2764c603 ASoC: wcd: Add check to stop invalid memory access
Catch any unexpected behavior with else case to
prevent invalid memory access.

Change-Id: I0edad1c645031286ba0528a52fd11655f445df35
Signed-off-by: Sanjana B <sanjb@codeaurora.org>
2021-06-29 12:23:17 +05:30
Vatsal Bucha
e7c556bbe6 dsp:q6asm: Resolve warning during compilation for static global function
Some functions in q6asm are declared as static and global with export_symbol
resulting in warning bring generated during compilation. Remove static from
functions to resolve issue.

Change-Id: I2c7be032278f956effc0d230a53fef5e02f771d7
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2021-06-28 09:39:55 +05:30
qctecmdr
d6c798872c Merge "audio-kernel:Fix for potential stability issues" 2021-06-23 08:28:23 -07:00