summaryrefslogtreecommitdiff
path: root/asoc
AgeCommit message (Collapse)Author
2021-06-22Merge LA.UM.9.12.C10.11.00.00.840.010 via branch ↵android-s-v2-beta-2_r0.4android-s-v2-beta-1_r0.4android-s-beta-5_r0.5android-s-beta-4_r0.5android-12.0.0_r0.6android-12.0.0_r0.24android-12.0.0_r0.14android-msm-redbull-4.19-s-beta-5android-msm-redbull-4.19-s-beta-4android-msm-redbull-4.19-android12-v2-beta-2android-msm-redbull-4.19-android12android-msm-redbull--s-v2-beta-1Lucas Wei
'qcom-msm-4.19-7250-audio-drivers.lnx.4.0.r3' into android-msm-pixel-4.19 Conflicts: dsp/q6adm.c dsp/rtac.c include/dsp/q6adm-v2.h Bug: 187909050 Signed-off-by: Lucas Wei <lucaswei@google.com> Change-Id: I9261f1c48a33410da347a0ed29da4b93d4ec0ec9
2021-04-21Merge branch 'LA.UM.9.12.R1.11.00.00.597.108' via branch ↵JohnnLee
'qcom-msm-4.19-7250-audio-drivers.lnx.4.0.r3' into android-msm-pixel-4.19 Conflicts: asoc/kona.c Bug: 182748782 Change-Id: I3a9dffa6dd350b5a6b240e50c7e94eebb8b31243
2021-04-16audio: sound trigger new PCM for zero-latency recordingandroid-s-beta-2_r0.5android-msm-redbull-4.19-s-beta-2yixuanjiang
Create new PCM to capture hotword buffer for zeroy latency Bug: 184006297 Signed-off-by: yixuanjiang <yixuanjiang@google.com> Change-Id: I3101302d980ebeab69f7040c7dcd17126b582041
2021-03-26asoc: codecs: fix race condition of core vote and reg accessVangala, Amarnath
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>
2021-03-17dsp: adm: add to check output/input channelShashi Kant Maurya
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: Lakshman Chaluvaraju <lchalu@codeaurora.org>
2021-03-10Merge "asoc: bolero: Add core_vote before gfmux access"qctecmdr
2021-03-08asoc: codecs: add child devices after completing initializationVangala, Amarnath
In bolero-cdc and tx, va, wsa and rx macros, move schedule_work call to add the child devices to the point later to where the parent initialization gets completed. Change-Id: Iaa07329a25020dde21d9249c3848bb7fcf7d816a Signed-off-by: Vangala, Amarnath <avangala@codeaurora.org>
2021-03-08asoc: bolero: Add core_vote before gfmux accessLaxminath Kasam
GFMUX access happen during RX macro usecase. Update rx macro to do core_vote before clock request. Change-Id: I1afd38ae13066dcfbda307308afce7c4291142d9 Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2021-02-26asoc: fix voice two way no soundandroid-s-preview-3_r0.5android-msm-redbull-4.19-s-preview-3vincenttew
add voice call TX routing path to fix no backend DAI issue Bug: 178767850 Signed-off-by: vincenttew <vincenttew@google.com> Change-Id: I46da86b2bbc3d7ab51f26ed21b3c077e74414877
2021-02-26Merge LA.UM.9.12.R2.10.00.00.685.039 via branch 'qcom-msm-4.19-7250' into ↵Lucas Wei
android-msm-pixel-4.19 Conflicts: Makefile asoc/kona.c asoc/msm-pcm-routing-v2.c Bug: 172988823 Signed-off-by: lucaswei <lucaswei@google.com> Change-Id: I7f325c91d3f13c62a046dd150bef827a25cb34ad
2021-02-01audio: change log level for warning messageandroid-s-preview-2_r0.5android-msm-redbull-4.19-s-preview-2Jason Hsu
kernel_debug_memory built will treate dbg_warn as KP. Bug: 171357371 Test: local built pass Signed-off-by: Jason Hsu <jasonchhsu@google.com> Change-Id: I325606ca18a6d973c8419679648e3e986ddeb090
2021-01-30asoc: Add check to handle negative value passed for num_app_cfg_typeHarshal Ahire
Long int negative value passed as part of ucontrol structure is assigned to int num_app_cfg_type making it positive and leading to overflow while populating maximum supported lsm_app_type_cfg structures. Change-Id: I81e3c75eea82265c8e8e1b3f8f95d9e334c895c4 Signed-off-by: Harshal Ahire <hahire@codeaurora.org>
2021-01-29asoc: Update copy_to_user to requested buffer sizeLaxminath Kasam
Avoid copy to user more than requested buffer size to avoid memory corruption. Change-Id: Ibf1607f777a358ebd16fd8b8728809afda34eba7 Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-12-10asoc: wsa881x: Fix crash while capturing swr_slv codec dumpShashi Kant Maurya
Swr-slv address is overwritten during wsa881x_swr_probe, hence soundwire getting incorrect slave address. While accessing swr master from swr slave due to incorrect address device crashed To avoid the issue align the debugfs similar to wsa883x codec. Change-Id: Ic8aaa0728a43936cd4c6e1ed590e01ba8f0fbf5b Signed-off-by: Shashi Kant Maurya <smaury@codeaurora.org>
2020-12-09ASoC: wsa883x: Handle PA_ERR interrupt on WSA speakerSudheer Papothi
PA_ERR can happen during speaker path setup. Log the error status in the interrupt handler and clear the error status for next audio playback to resume properly on the speaker. Change-Id: I5800d9505a3036127097745aaa880b73b3e87f30 Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-12-09ASoC: Add support to send voice UI port id to afeSoumya Managoli
As per the current design in afe, if the afe_get_cal_topology for AFE_TOPOLOGY_CAL or send_afe_cal_type for AFE_COMMON_TX_CAL fails, then the voice UI calblock is fetched/sent. This is resulting in sending voice UI calblock on a non voice UI port during concurrent usecase scenario. Fix is to check if the calblock for get/set is for a voice UI port or not. Added support to send this port id info from routing driver to afe when usecase is enabled via mixer_control. Change-Id: I356aae61e1b9d11324e7b9f9a57953767a64b71e Signed-off-by: Soumya Managoli <smanag@codeaurora.org>
2020-11-27Merge "ASoC: wsa883x: add function to get swr device number"qctecmdr
2020-11-27Merge "ASoC: lagoon: add support for CPS speaker protection"qctecmdr
2020-11-19Merge "ASoC: tx-macro: Allow regcache sync during clock enablement"qctecmdr
2020-11-19Merge "ASoC: wsa883x: enable vbat adc filter"qctecmdr
2020-11-19ASoC: lagoon: add support for CPS speaker protectionFaiz Nabi Kuchay
Add support to parse static cps configuration from dt. Add support to send cps configuration for speaker protection usecases. Change-Id: I0166a378f24cedef07393bdbb8618df944c62984 Signed-off-by: Faiz Nabi Kuchay <fkuchay@codeaurora.org>
2020-11-18ASoC: tx-macro: Allow regcache sync during clock enablementSudheer Papothi
Allow regcache sync during clock enable to make sure the registers are in proper state before the usecase. Change-Id: I8a9214e460c7f77759d1956e0e7e2d6b2f5b3d3a Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-11-17Merge "asoc: bolero: control wakeup of swr_tx during clock setup"qctecmdr
2020-11-16ASoC: wsa883x: add function to get swr device numberVignesh Kulothungan
Add a function in wsa883x which returns the sound wire device number for a given wsa883x codec slave instance. Change-Id: Ie3d0e309870f488b1643a853bcddcf93314d94b5 Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-11-05Merge "asoc: msm-pcm-q6-v2: Update memset for period size"qctecmdr
2020-11-05asoc: bolero: control wakeup of swr_tx during clock setupLaxminath Kasam
Move the enable and disable of wakeup capability of swr_tx gpios to clock setup to disable or enable it in all required usecases. Change-Id: I9fb76926d8520c382e7f19777190357c50f98994 Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-11-01asoc: va-macro: Allow swr switch at powerup/shutdownLaxminath Kasam
Ensure soundwire clock re-setup always for SWR AMIC usecase startup and at end of usecase. Change-Id: Ie0e94a456c8e5e529a2a7435ded094483e369f01 Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-10-27asoc: msm-pcm-q6-v2: Update memset for period sizeLaxminath Kasam
tinycap test can attempt with different size to read from driver and need to avoid access more than period size. Change-Id: Ifa4ddfb086bd83aa981da62e88da3a9395f5aabc Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-10-18Merge "ASoC: wsa-macro: Update smart boost sequence for wsa883x"qctecmdr
2020-10-08ASoC: wsa883x: enable vbat adc filterVignesh Kulothungan
Enable vbat adc filter inorder to read vbat and temperature values for cps speaker protection. Change-Id: I31c50bdd6ed0becae355600ba3cf48e761406d87 Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-09-30ASoC: wsa-macro: Update smart boost sequence for wsa883xSudheer Papothi
Update smart boost sequence for wsa883x speaker amplifier to reach max voltage at full scale signal. Update default tables to maintain backward compatible with wsa8810/wsa8815. Change-Id: Ic1a9ce13753d6e573c7916ae99643c85d6892aa0 Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-09-30asoc: kona: Update wsa8815 default configLaxminath Kasam
With wsa883x supported in lagoon, need to set wsa8815 default config also. Change-Id: I7e247cb564c893f7fbbc715de68821c6b91d559a Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-09-28asoc: va-macro: Update widget order for VA_MCLK and VA_SWR_PWRLaxminath Kasam
Update widget order for widgets VA_MCLK and VA_SWR_PWR. As both are having widget supply priority -1, sometimes dapm is triggering both widget callbacks simultaneously causing race condition in handling the SWR clock release with proper request for VA_CLK instead of TX_CLK and next usecase powerup is impacted. Change-Id: I3d3a3fadcdb897287ad070dc9e81e354c6f970b0 Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-09-11Merge "ASoC: wsa883x: Update register sequence to reduce CnP"qctecmdr
2020-09-07ASoC: wsa883x: Update register sequence to reduce CnPSudheer Papothi
Update register sequence of WSA883x codec to reduce CnP during bringup and teardown of speaker path. Change-Id: I348a55e1324b5c26a36b8d7c78edf52a66e40381 Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2020-09-06asoc: add null check for pcm pointer of snd_pcm_volumexsang
In platform driver volume controls, add null check for pcm pointer of struct snd_pcm_volume. Change-Id: I511a79422eaeced6240849cbb665a289afdc5984 Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
2020-08-23Merge "asoc: Register widgets and intercons only when supported"qctecmdr
2020-08-17asoc: Register widgets and intercons only when supportedHarshal Ahire
Register for the widgets and interconnections in routing driver only when the respective interfaces are supported. Add config based approach for TDM, AUXPCM and MI2S interfaces. Change-Id: I2b76e295d7cafde6062a3e0afbe7f25721fa9cca Signed-off-by: Harshal Ahire <hahire@codeaurora.org>
2020-08-13dsp: Add support for GET_PARAMSHarshal Ahire
Add support to query module parameters from ADSP. Change-Id: Ie63dd95cf27277f9c836becc98952d48971a3ec3 Signed-off-by: Harshal Ahire <hahire@codeaurora.org>
2020-08-07Merge "ASoC: wcd937x: Add mixer ctl for TX CH power level"qctecmdr
2020-08-04Merge "ASoC: rouleur: Update hph registers based on foundry id"qctecmdr
2020-08-04Merge "ASoC: sdm660 audio changes"qctecmdr
2020-08-04ASoC: wcd937x: Add mixer ctl for TX CH power levelVatsal Bucha
Add mixer ctl for tx channel power level. CRs-Fixed: 2703598 Change-Id: Iecb0dfe491afaface4c4dd1995aa13c7efd9df82 Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-07-30Merge "asoc: wcd938x: Add WCD ADC Mode mask to control modes"qctecmdr
2020-07-30Merge "ASoC: rouleur: Change hph and ear gain according to soc capacity"qctecmdr
2020-07-30Merge "soc: wsa883x: Update changes for wsa8830"qctecmdr
2020-07-30Merge "ASoC: wsa883x: Update initial register sequence"qctecmdr
2020-07-30Merge "ASoC: wsa883x: Update sequence for temperature"qctecmdr
2020-07-30ASoC: rouleur: Update hph registers based on foundry idVatsal Bucha
Rouleur has different hph settings for different foundry id. Read foundry id and update hph settings so as to provide same settings to end user. Change-Id: I114047226462ab95e0c93271c3d6099f15af2343 Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-07-28asoc: wcd938x: Add WCD ADC Mode mask to control modesLaxminath Kasam
To set correct swr clk rate in concurrency, use WCD ADC modes as status mask bit to confirm ADC paths active and control set clock rate. Change-Id: Id3401d6ed59bd617e0751e7c704268346b36dac4 Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>