summaryrefslogtreecommitdiff
path: root/asoc
AgeCommit message (Collapse)Author
2021-06-22Merge android-msm-pixel-4.19 into android-msm-barbet-4.19android-s-v2-beta-3_r0.5android-s-v2-beta-2_r0.5android-s-v2-beta-1_r0.5android-s-beta-5_r0.6android-12.1.0_r0.5android-12.0.0_r0.7android-12.0.0_r0.25android-12.0.0_r0.15android-msm-barbet-4.19-s-v2-beta-3android-msm-barbet-4.19-s-v2-beta-1android-msm-barbet-4.19-s-beta-5android-msm-barbet-4.19-android12-v2-beta-2android-msm-barbet-4.19-android12Lucas Wei
Bug: 187909050 Signed-off-by: Lucas Wei <lucaswei@google.com> Change-Id: I5355253bce3b7c945ea75f94f24d22ec601dacf5
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-06-17asoc: codec: Playback Amp power up/down time optimization.vijeth.po
In-order reduce the power down and hence to improve audio-server restart time following time optimization is done. 1. Add common delay after both Amp is powered down. a. Use 16ms instead of 20ms 2. Remove extra delay added in tas256x_set_power_shutdown() 3. Use usleep_range() instead of msleep for less than 20ms in power up/down related functions. Bug: 171941028 Signed-off-by: vincenttew <vincenttew@google.com> Change-Id: I9d169b73f140c0b6b65d4f035193e3f687624aaa
2021-05-03Merge branch android-msm-pixel-4.19 into android-msm-barbet-4.19JohnnLee
Conflicts: asoc/codecs/Kbuild dsp/q6afe.c Bug: 184813985 Change-Id: I1ac7afebff5a637726ed6770cf4e4e3fc0fa59ac
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-04-15audio: sound trigger new PCM for zero-latency recordingyixuanjiang
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>
2021-01-06audio: reduce log for TAS amp in kernelvincenttew
reduce unnecessary log: 1. change to debug level log for register read/write 2. change adsp module log to debug level Bug: 170955458 Test: build pass, check kernel log Signed-off-by: vincenttew <vincenttew@google.com> Change-Id: I58d5d9c5a4f3f5ce0f7d48cee81428de022cfe3c
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-10asoc: codecs: performance improvement for suezvincenttew
not using floting or double division caculation in kernel it may cause performance issue Bug: 175092754 Test: stress GCA with touch sound enable Signed-off-by: vincenttew <vincenttew@google.com> Change-Id: I96a123758954afd4a5723306f09013c1a38314ab
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-12-02asoc: codecs: suez realtime impedance sensevincenttew
write speaker realtime impedance to suez file node, location as below: /sys/devices/platform/codec_detect/resistance_left_right Bug: 170696887 Test: playback and monitor file node realtime value Signed-off-by: vincenttew <vincenttew@google.com> Change-Id: Ie3b57a3efe90731dca37d4f4742808996812da9d
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-25asoc: codecs: Disable DSP communication on power downNiranjan H Y
* The functionality of following mixer control is moved such that when the TAS device enters into power down mode, the algo communication is disabled. - tinymix TAS25XX_SMARTPA_ENABLE DISABLE * This change will stop the unwanted DSP communication after Rx port close which leads to module instatntiation which is unwanted. Test: build pass, MT/MO voice/voip, pickup/drop call Bug: 172902030 Change-Id: Ieea08ecb43af199c9f95693f3bde319b686f0f72 Signed-off-by: Peeyush Gupta <a0875211@ti.com> Signed-off-by: vincenttew <vincenttew@google.com>
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-11Fix to no-sound issue during screen lock/unlockvijeth.po
Issue: During Screen lock/unlock sometimes no sound or compress sound Update: (1)Increase TDM Clock error shutdown time a. Default to 838ms (2)Ignore Initial TDM clock error (before 838ms) a. Move Power-Up sequence to tas256x_set_power_state() from irq_work_func() b. Unmask TDM clock error interrupt after 50ms in init_work_func() Bug: 172902030 Bug: 171847273 Test: path switching and check tdm clk status Change-Id: I7758ce76fa5695ebdcd0050c3ccdb8789e2f3d5c Signed-off-by: vincenttew <vincenttew@google.com>
2020-11-11audio: fix KP for "PLL config data"Jason Hsu
During negative test case if the backend index is out of range update error check to avoid crashes. Bug: 171771845 Signed-off-by: Jason Hsu <jasonchhsu@google.com> Change-Id: Ieb31efc8553e1a6b21751a73adcc259efa7b0863 (cherry picked from commit 87efbb8f4dc7025c059c39ac3d1474ebf333d9f0)
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-23dev_dbg: Binding debug flag with CONFIG_DYNAMIC_DEBUGlucaswei
`dev_dbg` transform into dev_printk while DYNAMIC_DEBUG been disabled and DEBUG is defined in spcificed files. Dynamic debug will been disable in user kernel. To fully clean debug information from user kernel, we add constrain with file specificed `DEBUG` define with CONFIG_DYNAMIC_DEBUG. Bug: 162288636 Signed-off-by: lucaswei <lucaswei@google.com> Change-Id: I619b0b162d0b85b8334d7953cb8632d98bbba497
2020-10-18Merge "ASoC: wsa-macro: Update smart boost sequence for wsa883x"qctecmdr
2020-10-15asoc: codec: add ignore suspend for dapm endpointvincenttew
ignore suspend for dapm endpoint to keep audio path awake during device suspend Bug: 164924634 Test: build pass, phone call during suspend, playback Signed-off-by: vincenttew <vincenttew@google.com> Change-Id: Ie79e33ad03a813805ae2fc21e5ffcf225b464782
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-15asoc: codec: Fixed Abrupt Audio Stop at the End When TinyPlay Used.vijeth.po
1)Moved Power Up/Down to DAC Event Instead of Mute Stream. 2)Mute Stream is Made Dummy 3)Moved TAS config to config header Bug: 165162850 Change-Id: Iae2460347eeb387c9921f93d3e3725b51099f9bd Signed-off-by: vincenttew <vincenttew@google.com>
2020-09-14asoc: correct tdm slot settingvincenttew
use only 4slot for quin tdm for tas driver Bug: 168089507 Signed-off-by: vincenttew <vincenttew@google.com> Change-Id: If39076846bd3b5ee2ad3c94548dddd29b9c6968c
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>