Commit Graph
3176 Commits
Author SHA1 Message Date
Shalini Manjunatha d3da11881a dsp: afe: check for param size before copying
check for the proper param size before copying,
to avoid buffer overflow.

Mot-CRs-fixed: (CR)
CVE-Fixed: CVE-2023-33035
CRs-Fixed: 3438021

Change-Id: I70c52e6ab76f528ea3714784ab9013b070839c40
Signed-off-by: Shalini Manjunatha <quic_c_shalma@quicinc.com>
Signed-off-by: Ashutosh Verma <ashverma@motorola.com>
Reviewed-on: https://gerrit.mot.com/2674847
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2023-07-27 01:20:19 -05:00
zhangh12 464114a707 asoc: update q6afe for aw882xx
update afe_callback to handle RESET_EVENTS for aw882xx;
call aw_cal_unmap_memory to unmap memory.

Change-Id: I38dc659654e063286a50e712a06aec32d2d4d7b0
Signed-off-by: zhangh12 <zhangh12@motorola.com>
Reviewed-on: https://gerrit.mot.com/2318890
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:42:19 -03:00
guoyf2 47aa08b26f mbhc: set the type to lineout when zl or zr is zero.
surge will cause zl or zr is zero.
this kind of surge happened on aux.
so set this kind as lineout to avoid aux params wrong.

Propagation from (CR)

Change-Id: I2cc654a3db7cede55bc2ccdd6b67bcdd4da118ed
Signed-off-by: guoyf2 <guoyf2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2301019
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yunfei Guo <guoyf2@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:42:19 -03:00
guoyf2 91411c2350 asoc: update aw882xx driver to v1.9.0.9
changes:
fix set gain ctl timing issue.

Change-Id: I1e52b9ce38deee2c12b5bb4417fc9a975e481b0a
Signed-off-by: guoyf2 <guoyf2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2293053
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yunfei Guo <guoyf2@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:42:19 -03:00
guoyf2 48ce8d105a asoc: change linein threshold
Qcom mbhc default linein threshold is 5K, but some AUX carkit speaker
impedance is not large than it, mbhc detects it as headphone, not use
LINE audio parameter, causes audio performance issue.
As kp required , change it as 4K.

Change-Id: I2f99963d24f7822de5fda9b824f60b2d5cba4144
Signed-off-by: guoyf2 <guoyf2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2278335
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yunfei Guo <guoyf2@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:42:19 -03:00
guoyf2 c9072fb61f asoc: update aw88261 driver's spin relase function
Changes:
update aw88261 driver's spin relase function

Change-Id: Iee49b81aad887656194647a6e79efc78bcf366a0
Signed-off-by: guoyf2 <guoyf2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2269496
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zhengming Yao <yaozm1@lenovo.com>
Reviewed-by: Wanlong Zhou <zhouwl@motorola.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2023-06-01 00:42:19 -03:00
guoyf2 4045b34a01 asoc: devon support get awinic skt params from ram
changes:
support get awinic skt params from ram

Change-Id: I17aba7f05fcf5ab182de2859faf7ba733062af24
Signed-off-by: guoyf2 <guoyf2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2266732
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hong Zhang <zhangh12@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:39:50 -03:00
zhangh12 521195a275 audio-kernel: enable CONFIG_AW882XX_MAPSIZE_16K for rhode
after aw882xx algo upate to support get params from ram.
need enlarge mapsize to 16k.

Change-Id: Ib9c6e46965d071cd640627ff00be0e200f5a7488
Signed-off-by: zhangh12 <zhangh12@motorola.com>
Reviewed-on: https://gerrit.mot.com/2265470
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:39:50 -03:00
guoyf2 5d5f2bc88e audio-kernel: enlarge map size for aw882xx algo
after aw882xx algo upate to support get params from ram.
need enlarge mapsize to 16k.

Change-Id: I69c6933148b96b014e0497b8e240067387de9bc9
Signed-off-by: guoyf2 <guoyf2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2264461
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zhengming Yao <yaozm1@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:39:50 -03:00
guoyf2 aedadd21e6 asoc: audio:update aw882xx driver to v1.9.0.7
update aw882xx driver to v1.9.0.7
support get algo params from ram.
skt-prof-mode = 1 to support by product.

Change-Id: Id3d8ebc09cd616ad159486405ec95d67419eaf21
Signed-off-by: guoyf2 <guoyf2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2264458
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yunfei Guo <guoyf2@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:39:50 -03:00
guoyf2 4ea53be588 asoc: upgrade aw88261 driver to v1.9.0.6
v1.9.0.6:
Fix ramp volume issue

Change-Id: If6ea0382d77df50d1eac33a6fc78bcdf607698a2
Signed-off-by: guoyf2 <guoyf2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2223946
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yunfei Guo <guoyf2@motorola.com>
Reviewed-by: Hong Zhang <zhangh12@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:35:14 -03:00
guoyf2 a72bbed4eb asoc: fix wcd937x build error
changes;
fix https://gerrit.mot.com/#/c/2220048/ build error.

Change-Id: I7c88bf76322c5ac32267395d4dab06253826b06e
Signed-off-by: guoyf2 <guoyf2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2221136
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hong Zhang <zhangh12@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:35:14 -03:00
Vatsal Bucha fb92e85f31 audio: wcd937x_slave: Add retry while getting logical addr for wcd937x slave
cr#2888685
rx slave is not enumerated sometimes,
add retry while getting logical addr for wcd937x slave.

Change-Id: Iff3f6a071c13f8bdccc72da69e95432be2d4f90a
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
Reviewed-on: https://gerrit.mot.com/2220048
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:35:14 -03:00
longc103 740ed6fca5 audio-kernel: modify rcv and spk smartpa config
changes:
add receiver smartpa dai name
DVT hardware config: spk smartpa : 0x34 in I2C1; rcv smartpa : 0x35 in I2C1

Change-Id: I7924c0de447ca4745992d645951dfdb597eb99dd
Reviewed-on: https://gerrit.mot.com/2208911
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: <longc103@motorola.com>
Reviewed-by: Yunfei Guo <guoyf2@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:35:14 -03:00
longc103 342bfbb98c audio-kernel: devon fix build error
changes:
fix build error

Change-Id: I89abc2e606c900a5822d28910665d5f9865dcbc8
Reviewed-on: https://gerrit.mot.com/2207776
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Reviewed-by: <longc103@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:35:14 -03:00
longc103 4da94a78da audio-kernel: devon audio bring up
changes:
1. add aw88261 config
2. cause hw i2c address conflict, disable receiver smartpa.

Change-Id: I242f0edb9ea1db9d0620126d332f5f01cf3837dd
Reviewed-on: https://gerrit.mot.com/2205301
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Submit-Approved: Jira Key
Tested-by: Jira Key
Reviewed-by: <longc103@motorola.com>
SLTApproved: <longc103@motorola.com>
Submit-Approved: <longc103@motorola.com>
Tested-by: <longc103@motorola.com>
Reviewed-by: Yunfei Guo <guoyf2@motorola.com>
(cherry picked from commit 244d714b75be72eaff960780de0b3f0643f62ce8)
Reviewed-on: https://gerrit.mot.com/2206429
Reviewed-by: Hujun Liao <liaohj@motorola.com>
2023-06-01 00:35:14 -03:00
guoyf2 93396078c5 asoc: upgrade aw88261 driver to v1.9.0.5
Version: 1.9.0.5
Optimize driver initialization timing

Change-Id: I7cbc9e056e3afd0b4dd3471ec4fc718c71f3443b
Signed-off-by: guoyf2 <guoyf2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2204136
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zhengming Yao <yaozm1@lenovo.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:35:13 -03:00
yaozm1 e8b5e9bb14 asoc:update aw88261 spin config
remove low-latency only limitation;
spin will work for all case.

Change-Id: I157f35d824b51b36686bb0a4c0c4d289014c881b
Signed-off-by: yaozm1 <yaozm1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2178463
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Yunfei Guo <guoyf2@motorola.com>
Reviewed-by: Wanlong Zhou <zhouwl@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:35:13 -03:00
yaozm1 9e90cbf47c asoc:remove debug info for aw88261
update aw88261 driver;
remove spin debug info.

Change-Id: I3b0032a11b6794ea6ed80f4a1e46d795aa105641
Signed-off-by: yaozm1 <yaozm1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2179434
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:35:13 -03:00
yaozm1 6e3bdd99d8 asoc:upgrade aw88261 driver to v 1.9.0.4
version 1.9.0.4;
add speaker spin function;
fix compile errors.

Change-Id: I1ef2a6b32d373cc87ec0615e1ed4b3709e13051e
Signed-off-by: yaozm1 <yaozm1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2167927
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:35:13 -03:00
yaozm1 18e0cfd652 asoc:upgrade aw88261 driver to v1.9.0.3
integrate awinic's aw88261 release;
version: 1.9.0.3

Change-Id: I8a1b52089cff107d09faf89ed9c5381ea4b7803b
Signed-off-by: yaozm1 <yaozm1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2149458
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hujun Liao <liaohj@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:35:13 -03:00
tinno16 0bd5ad5e36 hawaii OLED: hawao audio bringup
hawao audio driver bringup

smartpa calibration add

Change-Id: Ic7b61ea858abeeaff5c4c482740b29f6f0db87d3
Reviewed-on: https://gerrit.mot.com/2136276
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Submit-Approved: Jira Key
Tested-by: Jira Key
Reviewed-by: Yunfei Guo <guoyf2@motorola.com>
(cherry picked from commit f20f799cccbcedface54a69fdeae35bd5f97ef36)
Reviewed-on: https://gerrit.mot.com/2144882
Reviewed-by: <tinno16@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
2023-06-01 00:35:13 -03:00
tinno16 55e843eee5 hawaii OLED: hawao audio bringup
hawao audio driver bringup audio-kernel

add hawao audio kernel config for aw88261 driver

Change-Id: If2042ac150d89495a756baaa6ae744d540179eab
Reviewed-on: https://gerrit.mot.com/2135169
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Submit-Approved: Jira Key
Tested-by: Jira Key
Reviewed-by: <tinno16@motorola.com>
Reviewed-by: Shengchun Li <lisc2@motorola.com>
(cherry picked from commit 4e3e26abb5bdc395797ec7b3680d8e500ed66a0c)
Reviewed-on: https://gerrit.mot.com/2144807
Reviewed-by: Yunfei Guo <guoyf2@motorola.com>
Reviewed-by: Hujun Liao <liaohj@motorola.com>
2023-06-01 00:35:13 -03:00
yaozm1 f6c4ec73dc asoc:upgrade aw88261 driver to v1.9.0.2
release v1.9.0.2,
add ramp support.

Change-Id: I0b13202e458c6c9fdd732edcedbdb78c4db8f826
Signed-off-by: yaozm1 <yaozm1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2143963
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:35:13 -03:00
yaozm1 3390566b8c asoc:upgrade aw88261 driver to v1.9 debug version
add profile control;
v1.9 debug version.

Change-Id: I2964cb83649917af1cdcd97bf53c0e1fb05411b1
Signed-off-by: yaozm1 <yaozm1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2130885
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:35:13 -03:00
huaqin95 2ea4212fc3 rhode:mbhc:enable moisture detect for rhode
update mbhc for rhode;
enable moisture detect.

Change-Id: I5b82baca51ee62511419076e8cf025b4b1e020f6
Signed-off-by: huaqin95 <huaqin95@motorola.com>
Reviewed-on: https://gerrit.mot.com/2125940
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhengming Yao <yaozm1@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:35:13 -03:00
huaqin95 5129944586 rhode: audio: update awinic smartpa driver to V1.8.0.1
update awinic smartpa driver to V1.8.0.1
test playback, smartpa cali, cqa test pass

Change-Id: I95d757065de1de1e5b6ef50ba55cea79c8883b84
Signed-off-by: huaqin95 <huaqin95@motorola.com>
Reviewed-on: https://gerrit.mot.com/2127502
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Zhengming Yao <yaozm1@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:35:13 -03:00
huaqin95 249139754c rhode: audio: enable aw882xx algo param store in aw_skt.bin
update the lib to store the params to aw_skt.bin,
enable algo_prof switch.

Change-Id: I34e10cc27d60f6fd2bb40500f90e916f93de7e5f
Signed-off-by: huaqin95 <huaqin95@motorola.com>
Reviewed-on: https://gerrit.mot.com/2124816
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: wangzhe <huaqin96@motorola.com>
Reviewed-by: Zhengming Yao <yaozm1@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:35:13 -03:00
yaozm1 7a40ed55b7 asoc:update audio config for rhode
update awinic codec config;
for rhode evt.

Change-Id: I8ab0f2b1239c74510894463fc46607997cfaee17
Signed-off-by: yaozm1 <yaozm1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2113385
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:35:13 -03:00
yaozm1 50680956a7 mbhc:disable moisture detect for rhode
update mbhc for rhode;
disable moisture detect.

Change-Id: I9f563b4007c9e9fc9064856bcf27e9c97c174be9
Signed-off-by: yaozm1 <yaozm1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2108749
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:35:13 -03:00
yaozm1 ebb8a240e5 asoc:init rhode audio
Change-Id: Ia605774ce9438516dea037f2e2538e3b8037560c
Signed-off-by: yaozm1 <yaozm1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2107467
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:35:13 -03:00
yaozm1 b3e58b6d6c asoc:add aw88261 codec driver
add aw88261 driver;
for rhode evb bringup.

Change-Id: I1d70441f873a5177b7209cb3e46283a57ceaeb7d
Signed-off-by: yaozm1 <yaozm1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/2099634
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:35:13 -03:00
yaozm1 793f3936a6 asoc: Add fs1818 support for guamp/guamna
Propagation of the https://gerrit.mot.com/#/c/1510671/
in order to enable fs1818 as audio PA for
guamp and guamna EVT sample devices.

Change-Id: I772278e04a98bd4c95443e911d228d746797a263
Signed-off-by: yaozm1 <yaozm1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1510671
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1914385
Reviewed-by: Monica Mabuchi <monicam@motorola.com>
Reviewed-by: Nelson Guedes Paulo Junior <npaulo@motorola.com>
Reviewed-by: Jian Luan <jamesluan@motorola.com>
2023-06-01 00:35:13 -03:00
guoyf2 39d96b8ecc ASoC: update aw882xx driver to v0.1.17
Volume fade in/out feature doesn't depend on afe-profile,
ues a new property fade-flag to control it.

Change-Id: Ifc14f98538710c8fcf0ba669ad2daa81c59ca52f
Signed-off-by: guoyf2 <guoyf2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1784580
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Wen Xie <xiewen3@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
2023-06-01 00:35:13 -03:00
guoyf2 9a6f021a1c update aw882xx driver to v0.1.16
- Modify the setting of gain initial value, set it according to
temperature and voltage, and modify the setting of volume when
fade in.
- Problems solved:
When the battery power is high and low-temperature and
low-pressure protection is not triggered, the initial GAIN will
be set to -6dB. After the low-temperature and low-pressure trigger,
the sound will become louder.

Change-Id: Ib3f4eddd3117f148d1b3e1242c36621882346574
Signed-off-by: guoyf2 <guoyf2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1758919
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yunfei Guo <guoyf2@motorola.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
Submit-Approved: Jira Key
2023-06-01 00:35:13 -03:00
Laxminath Kasam b660be1d97 soc: soundwire: Update hw_ctl on HCLK at bootup
Propogate changes from (CR).
Merge qcom patch:
case number: 04629828

soc: soundwire: Update hw_ctl on HCLK at bootup

For soundwire version 1.6, HCLK remove HW controlled
at bootup before soundwire frame generation status check.

Change-Id: Idc2420d086261766ea4e79f69320f12c4d6b2259
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Reviewed-on: https://gerrit.mot.com/1592905
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Yunfei Guo <guoyf2@motorola.com>
Reviewed-by: Zhengming Yao <yaozm1@lenovo.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
Reviewed-on: https://gerrit.mot.com/1745677
Reviewed-by: Wen Xie <xiewen3@motorola.com>
2023-06-01 00:35:13 -03:00
yaozm1 81c4cb937b asoc:Enable necessary log for mbhc
Propogate changes from (CR).
For headset debug purpose;
Enable necessary log.

Change-Id: Ib34f66978a7659ca396ef6db4d0a8e5f18363bd4
Signed-off-by: yaozm1 <yaozm1@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1581555
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
(cherry picked from commit 08300c96a3e1454a6c8e2de9df5a3df69ecc1776)
Reviewed-on: https://gerrit.mot.com/1744665
Reviewed-by: Yunfei Guo <guoyf2@motorola.com>
Reviewed-by: Wang Wang <wangwang1@lenovo.com>
2023-06-01 00:35:13 -03:00
guoyf2 feb238febf Audio bringup: asoc: add aw882xx support
Change-Id: Ia5781b73ecaceba7393379da5c38c63112e7f894
Signed-off-by: guoyf2 <guoyf2@lenovo.com>
Reviewed-on: https://gerrit.mot.com/1732545
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Submit-Approved: Jira Key
Tested-by: Jira Key
Reviewed-by: Yunfei Guo <guoyf2@motorola.com>
Reviewed-by: Xianhong Li <lixh8@lenovo.com>
2023-06-01 00:35:13 -03:00
Linux Build Service Account 66b9d28370 Merge fa03eae637 on remote branch
Change-Id: I9473edbe13f26f250784aa399eb009a94a7d9721
2023-02-20 04:02:38 -08:00
qctecmdr fa03eae637 Merge "ASoC: rouleur-mbhc: Enhance impedance calculation logic" 2023-01-22 06:56:30 -08:00
qctecmdr e7371e7285 Merge "ASoC: rouleur-mbhc: Fix pop noise heard when headset insertion" 2023-01-22 06:51:23 -08:00
Soumya Managoli 28658bc2a0 ASoC: msm-pcm-q6-v2: Add dsp buf check
Current logic copies user buf size of data
from the avail dsp buf at a given offset.
If this offset returned from DSP in READ_DONE event
goes out of bounds or is corrupted, then it can lead to
out of bounds DSP buffer access, resulting in memory fault.
Fix is to add check for this buf offset, if it is within
the buf size range.

Change-Id: I7753cc6db394704dbb959477150141d42b836bef
Signed-off-by: Soumya Managoli <quic_c_smanag@quicinc.com>
2023-01-11 17:53:21 +05:30
Vijay Kumar Maddula c03164c8a2 ASoC: rouleur-mbhc: Enhance impedance calculation logic
When headset insert, calculate impedance for multiple times
and stop calculating if the result is within the threshold.
Modify register write sequence as per rouleur software sequence.

Change-Id: Id035304963d0822f758d7a527a712aca500a8a78
Signed-off-by: Vijay Kumar Maddula <quic_vmaddula@quicinc.com>
2023-01-10 02:18:24 -08:00
Vijay Kumar Maddula b99e002ebb ASoC: rouleur-mbhc: Fix pop noise heard when headset insertion
Observed pop noise during impedance discharge after
headset/headphone plugged in.
Adding 40ms delay while discharge to complete ramp down properly.

Change-Id: I7eb4ba3423660454990722579b7c7b57156c8067
Signed-off-by: Vijay Kumar Maddula <quic_vmaddula@quicinc.com>
2023-01-05 21:42:14 -08:00
Vaibhav Raut 5fd49711c9 asoc: wsa881x: Fix to set the correct volume level
Equality operator was used instead of assignment.
Updated the same.

Change-Id: I6f49dc8801669ae1734b9b3f31b57a6a8dfdfbde
Signed-off-by: Vaibhav Raut <quic_vraut@quicinc.com>
2022-12-22 11:34:42 +05:30
Shalini Manjunatha 03feca0991 soc: swr-mstr-ctrl: remove FIFO_Flush for overflow
FIFO_Flush should only be for SWRM_INTERRUPT_STATUS_CMD_ERROR.
For other usecase, it should not be flushed otherwise it would
cause register write mismatch and cause some sideeffect.

Change-Id: I3316f0fefa10b58ceabd57990db0782e0654a580
2022-11-24 17:32:42 +05:30
ronghuiz 3789f88189 asoc: Add routing control for qrb5165 BT HFP usecase
Add entry in snd_soc_dapm_route array for hfp client rx mixer
control path.
Add entry in iwsa_cdc_rx_0_port_mixer_controls for
slimbus7 interface

Change-Id: I782cfbc56344fec9454a8317fbab828cab0e6fde
2022-11-07 12:58:50 +08:00
Shalini Manjunatha 09aa948bc6 soc: swr-mstr: Store and compare dev_addr along with dev_num
-> If enumeration is changed runtime, dev_num gets changed
-> so it might result in different dev_num for same device
-> between swrm_connect_port and swr_disconnect_port while powering
up and down of widget
-> This results in not emptying the port_req list, hence swrm not
going to suspend state
-> This results into adsp not going to sleep state

Change-Id: I80326a35f0cac7f7be30cbbee119a8ba247a0f76
2022-09-14 10:51:38 +05:30
Linux Build Service Account c098c04955 Merge 38e81d823d on remote branch
Change-Id: I9f051db786269969ec94ec0ef2560e1117cd93ab
2022-08-15 02:14:07 -07:00
Vaibhav Raut 54fca86eb6 Asoc: fix integer overflow for long duration offload playback
update runtime total bytes transferred and received
in compress driver.

Change-Id: I1bd129e18681fcf10a27efaa061594081114c1fb
Signed-off-by: Akhil Karuturi <akarutur@codeaurora.org>
2022-07-27 17:15:15 +05:30