Commit graph

3,796 commits

Author SHA1 Message Date
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
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
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
qctecmdr
692ff34114 Merge "asoc: lpass-cdc: Update swr pdev initialize order" 2021-06-23 08:28:23 -07:00
Hongtao Peng
b5f628803d SoC: msm: Compatible with loopback case without asm cal data
In the prepare stage of loopback driver, no asm cal data will report info
instead of fatal error, make sure the sequence contiune.

Change-Id: Ib7c1e0efd26838eb6b40d3cce9174dda189c8028
Signed-off-by: Hongtao Peng <hongtaop@codeaurora.org>
2021-06-23 10:52:50 +08:00
qctecmdr
58f399da80 Merge "Asoc: check for invalid voice session id" 2021-06-19 10:29:31 -07:00
E V Ravi
e6fcdb7de0 audio-kernel:Fix for potential stability issues
Fix for potential stability issues

Signed-off-by: E V Ravi <evenka@codeaurora.org>
2021-06-16 09:31:11 +05:30
Vatsal Bucha
da782e1589 asoc: lpass-cdc: Update swr pdev initialize order
During sound card register init call, if swr pdev
is not initialized yet respective soundwire port
config is not updated to soundwire controller device.
In macro drivers, update swr pdev into macro private
data prior to platform device add.

Change-Id: Ifa67471cfc7a10b102b573df6285e598bb0b5e5e
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2021-06-15 15:42:15 +05:30
qctecmdr
2ffb30af03 Merge "dsp: ensure set persist cal for TX path" 2021-06-12 09:53:43 -07:00
qctecmdr
70901e3a3a Merge "ASoC: codecs: Change delay before swr mic enumeration to 10msec" 2021-06-12 09:53:43 -07:00
Lakshman Chaluvaraju
28a5f16642 Asoc: check for invalid voice session id
Add check to return if session id is invalid.

Change-Id: Ida0e07b78657102a3bf6e73a1ca23c44ad112426
Signed-off-by: Lakshman Chaluvaraju <lchalu@codeaurora.org>
2021-06-10 14:34:12 +05:30
Vatsal Bucha
ad90615b46 ASoC: wcd937x: Change vbg fine voltage to 0.5V for wcd937x second source
VBG Fine Voltage should be changed to 0.5V for second source
target. Set it to corresponding value in init.

Change-Id: Ica73f45d7cb4f5f623d3333680894625603ca92c
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2021-06-08 14:14:24 +05:30
Kunlei Zhang
42b12a820c dsp: ensure set persist cal for TX path
Ensure persist cal is set for TX path if mode
is not LISTEN.

Change-Id: Ic57c71942b94473d010e90c2a52756637d78595a
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
2021-06-04 15:44:02 +08:00
qctecmdr
895a1ddf26 Merge "ASoC: add HS TDM support for 8295" 2021-06-02 10:29:38 -07:00
qctecmdr
40430de537 Merge "ASoC: update token mask for port id in adm callback" 2021-06-02 10:29:38 -07:00
qctecmdr
da56021682 Merge "asoc: Add support for using AFE_PCM_TX port in listen session" 2021-06-02 10:29:38 -07:00
qctecmdr
3149e77920 Merge "dsp: Add proper param size for data logging disable" 2021-06-02 10:29:38 -07:00
Vatsal Bucha
f152942d20 ASoC: codecs: Change delay before swr mic enumeration to 10msec
Sometimes during stability enumeration for swr dmics is not
successful due to proper delay not given after reset. Change
delay from 5msec to 10msec to resolve issue.

Change-Id: I0068d75456d9ff787ab49cbbea02438237f7ce89
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2021-05-31 09:10:46 -07:00
qctecmdr
4c1f3568b0 Merge "dsp: fix out of bound access for cal_data size" 2021-05-30 23:15:56 -07:00