Commit graph

3,499 commits

Author SHA1 Message Date
qctecmdr
30f23bd6ea Merge "ASoC: msm: Add second proxy tx device FE and AFE Rx BE" 2020-11-25 22:10:13 -08:00
qctecmdr
5d09fd2f10 Merge "asoc: msm-pcm-routing: Add missing intercon for MultiMedia23" 2020-11-25 18:57:02 -08:00
qctecmdr
92a978066d Merge "ASoC: sdx: Add initial machine driver" 2020-11-25 18:57:02 -08:00
qctecmdr
9f35768b19 Merge "asoc: bolero: Add core_vote before gfmux access" 2020-11-25 18:57:02 -08:00
qctecmdr
d01dff99d6 Merge "dsp: afe: Add new token to handle nowait cmds" 2020-11-25 18:57:02 -08:00
qctecmdr
9fd3acfe83 Merge "ASoC: bolero: remove LPI status check during device switch" 2020-11-25 18:57:01 -08:00
qctecmdr
287c245659 Merge "ASoC: wsa883x: disable speaker brown out protection" 2020-11-25 18:57:01 -08:00
qctecmdr
65c5953d9a Merge "soc: swr-mstr: Avoid underflow due to CPS spkr prot enabled" 2020-11-25 18:57:01 -08:00
qctecmdr
8527c974cb Merge "soc: swr-mstr: Update soundwire state to SSR during UP" 2020-11-25 18:57:01 -08:00
qctecmdr
f3bf502f35 Merge "dsp: unmap cma memory before hyp unassign during adm close" 2020-11-25 18:57:01 -08:00
Tahir Dawson
453c34d2bd ASoC: msm: Add second proxy tx device FE and AFE Rx BE
* Add AFE playback backend with port 0x2002
* Add proxy capture frontend to read data from port 0x2002
* Modify AFE platform and DSP drivers to support dual proxy usecase

Change-Id: I35e33e5e922fb3092cffcc065fb514268c16cc17
Signed-off-by: Alexy Joseph <alexyj@codeaurora.org>
2020-11-25 08:50:14 +08:00
Amitkumar H(Temp)
2196f8b020 ASoC: sdx: Add initial machine driver
Add SDX machine driver and dai links.

Change-Id: Ia74403e3318439278476460a75310bd084cefac9
Signed-off-by: Amitkumar H(Temp) <amih@codeaurora.org>
Signed-off-by: Vivek Malapaka <malapaka@codeaurora.org>
2020-11-23 15:46:55 +05:30
qctecmdr
27e52b9f18 Merge "asoc: codec: add range check to avoid overflow" 2020-11-20 02:14:34 -08:00
qctecmdr
9cd98ddfc7 Merge "ASoC: codecs: Add count check for swr haptics device up/down" 2020-11-20 02:14:34 -08:00
qctecmdr
b27eed5dc9 Merge "dsp: q6core: retry till adsp is up to send custom topologies" 2020-11-20 02:14:34 -08:00
qctecmdr
ddd29e8bca Merge "dsp: use default bit-width when start VoLTE call in power mode" 2020-11-20 02:14:34 -08:00
qctecmdr
8148965cc4 Merge "dsp: add change to fix use-after-free issue" 2020-11-20 02:14:34 -08:00
qctecmdr
9bb5ce8e27 Merge "ASoC: msm: add proxy port and pcm backend in machine driver" 2020-11-20 02:14:34 -08:00
qctecmdr
30f572a80d Merge "ASOC: fix audio machine driver compile issue" 2020-11-20 02:14:34 -08:00
qctecmdr
d4c2f7ad66 Merge "asoc: reduce AUXPCM widget connection when it's disabled" 2020-11-20 02:14:33 -08:00
qctecmdr
2fea3356dc Merge "ASoC: Fix typo in SENARY_MI2S_RX clk info" 2020-11-20 02:14:33 -08:00
qctecmdr
b6c1574215 Merge "ASoC: wsa883x: Handle PA_ERR interrupt on WSA speaker" 2020-11-20 02:14:33 -08:00
Akhil Karuturi
62eca6d27b dsp: unmap cma memory before hyp unassign during adm close
unmap memory before hyp unassign during adm close
for handset/speaker FNN usecase.

Change-Id: I1d4d335c5179e42af4dcf7cf8e82e48669b32830
Signed-off-by: Akhil Karuturi <akarutur@codeaurora.org>
2020-11-19 21:35:04 -08:00
Vignesh Kulothungan
eefcf012a3 ASoC: wsa883x: disable speaker brown out protection
Disable brown out protection (bop) attenuation levels 1,2 and 3 
which causes fast and coarse transitions in gain during voltage drop.
This creates "pop" noise during the drop. Since battery current
limiting (bcl) feature is enabled with CPS, bop is redundant and
can be disabled.

Change-Id: I51617333203ba14784e2338d91a96082c55e1331
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-11-18 19:46:07 -08:00
Sudheer Papothi
3d94de3747 ASoC: wsa883x: Handle PA_ERR interrupt on WSA speaker
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-11-17 16:51:26 -08:00
Laxminath Kasam
643c33dcd6 soc: swr-mstr: Update soundwire state to SSR during UP
During SSR up event handler, if soundwire state is
already up or auto suspend jiffies is not completed,
ensure put in suspend/SSR state.

Change-Id: I853f42d125eb5a60e3f1f065a60516877e3a463c
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2020-11-17 02:30:16 -08:00
Tahir Dawson
34bba45ccf asoc: msm-pcm-routing: Add missing intercon for MultiMedia23
Add missing intercon entry needed for MultiMedia23 routing

Change-Id: I0f57adafb007c8ca7b62bd30b712f46e130765b6
Signed-off-by: Tahir Dawson <dawson@codeaurora.org>
2020-11-16 17:39:12 -08:00
Viraja Kommaraju
9cb508c863 audio-kernel: include sa6155 config
Include sa6155 config to compile Talos machine driver

Change-Id: I35213a8ff533f217869f37355ef35074df65ba1c
Signed-off-by: Viraja Kommaraju <virajak@codeaurora.org>
2020-11-16 20:07:36 +05:30
Hongtao Peng
eae52c27a7 ASOC: fix audio machine driver compile issue
LV Platform use the same LVGVM cause Kbuild mismatch issue

Change-Id: Iad092ebcbd991e52daedb87406920055528e3a1c
Signed-off-by: Hongtao Peng <hongtaop@codeaurora.org>
2020-11-15 18:32:38 -08:00
Meng Wang
748165aae9 asoc: codec: add range check to avoid overflow
Add range check for ucontrol value to avoid array
overflow.

Change-Id: I7b699519bec6f605e5ca5ece8f67badbefc7a094
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-11-13 09:16:35 +08:00
Tahir Dawson
4dad2aea99 ASoC: msm: add proxy port and pcm backend in machine driver
* Add additional proxy port frontend and pcm backend to support dual proxy port
* Add channel configuration mixer control for second proxy port

Change-Id: Iba7e21f17122926d27acc58be653351b4d0ea37a
Signed-off-by: Alexy Joseph <alexyj@codeaurora.org>
Signed-off-by: Tahir Dawson <dawson@codeaurora.org>
2020-11-12 11:39:51 -08:00
Kunlei Zhang
f3e67f4b51 dsp: use default bit-width when start VoLTE call in power mode
VoLTE in power mode doesn't support to configure bit-width of
AFE port with 24bit.

Fix it by use default bit-width when start VoLTE in power mode.

Change-Id: Ic429ea317c71c9a4436705663185fc69cb885166
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
2020-11-12 16:35:35 +08:00
Akhil Karuturi
a6d9099cf5 dsp: q6core: retry till adsp is up to send custom topologies
add retry logic to ensure adsp is up before registering custom
topologies

Change-Id: Ib88c06ae8c64cd0784319f40e3746ccbbce0cdf7
Signed-off-by: Akhil Karuturi <akarutur@codeaurora.org>
2020-11-11 21:25:47 -08:00
Nirav Khatri
123a24f2c0 ASoC: Fix typo in SENARY_MI2S_RX clk info
Update the typo to fix failure in afe_get_port_idx during RX usecase.

Change-Id: I2026cbce0165e6f5e4059945183a09feaee89b45
Signed-off-by: Nirav Khatri <khatri@codeaurora.org>
2020-11-12 07:32:28 +05:30
Saurav Kumar
1546c9a1b2 dsp: add change to fix use-after-free issue
Add change to properly handle the pointers by setting them to
NULL after free and adding some null checks before dereferencing.

Change-Id: Ic2f3ef5631d0f4e4191bf772eb0b3f0b825044a6
2020-11-11 02:54:36 -08:00
qctecmdr
dec796e30a Merge "dsp: add change to enable preemption at cal_utils_dealloc_cal." 2020-11-10 23:20:57 -08:00
qctecmdr
e9b221b2ee Merge "asoc: pcm-noirq: set substream state to disconnect when ssr happens" 2020-11-10 23:20:57 -08:00
qctecmdr
4aa9a95519 Merge "soc: add support to read swr physical addr from dt" 2020-11-10 23:20:57 -08:00
qctecmdr
911e4533ee Merge "asoc: codec: Fix compilation for wcd934x codec driver" 2020-11-10 23:20:57 -08:00
Vatsal Bucha
70dbfce31b asoc: bolero: Add core_vote before gfmux access
GFMUX access happen during WSA macro usecase.
Update wsa macro to do core_vote before clock
request.

Change-Id: I0b96e725e5150fff4d8bef0d6a50837fc9a3f873
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-11-10 20:34:56 +05:30
Soumya Managoli
c98cda65d3 dsp: afe: Add new token to handle nowait cmds
Race condition is observed when sending afe cmd
and afe nowait cmd one after other resulting
in incorrect interpretation of the adsp responses
received back to back.
Handle this by adding a new data token for nowait
commands to indentify the response recevied is for
the same.

Change-Id: I76bf810c23d1fd572cb496c62cbfaac1a5c349b5
Signed-off-by: Soumya Managoli <smanag@codeaurora.org>
2020-11-09 16:08:57 +05:30
Vatsal Bucha
7a33dc6cc1 ASoC: codecs: Add count check for swr haptics device up/down
Add count check before enabling/disabling regulator for swr
haptics. This is to ensure that count dosent get mismatched.

Change-Id: I73bb9f8ef459eea4327b9db09c430e8c2ec87adb
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-11-09 10:42:20 +05:30
Kunlei Zhang
288c9e6f71 ASoC: bolero: remove LPI status check during device switch
Remove LPI status check during device switch to avoid missing
deregister irq.

Change-Id: I06860cc0b6f16a2150f9475c7d021fe97daf6b97
Signed-off-by: Kunlei Zhang <kunleiz@codeaurora.org>
2020-11-06 15:06:14 +08:00
Meng Wang
e0705ab0d4 asoc: pcm-noirq: set substream state to disconnect when ssr happens
When SSR happens, set substream state to SNDRV_PCM_STATE_DISCONNECTED
to avoid userspace keeping waiting for substream state and causing
deadlock.

Change-Id: Iaa4d76101204652742c55d13da5c770c418a16bc
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2020-11-06 09:14:44 +08:00
Vignesh Kulothungan
41db7ae304 soc: add support to read swr physical addr from dt
Remove static definitions of rx swr slave physical addresses.
Add support to read swr slave physical addresses from device
tree and store it within respective master data structure.
Revert addition of slave device address for wcd937x in soundwire
master.

Change-Id: I0eb2597b8e40a54d476cd2662bbe4f2008af899a
Signed-off-by: Vignesh Kulothungan <vigneshk@codeaurora.org>
2020-11-05 16:10:45 +08:00
qctecmdr
78fff06931 Merge "asoc: codecs: fix race condition of core vote and reg access" 2020-11-04 19:57:25 -08:00
Saurav Kumar
e4463e36c8 dsp: add change to enable preemption at cal_utils_dealloc_cal.
Add change to enable preemption at cal_utils_dealloc_cal.

Change-Id: I3d9304851f4d61d7afb82c0512421159ec788db1
Signed-off-by: Saurav Kumar <sauravk@codeaurora.org>
2020-11-03 12:30:01 +05:30
Amitkumar H(Temp)
5d7c21de7f asoc: codec: Fix compilation for wcd934x codec driver
Fixed compilation issues.

Change-Id: Ia8ba3840f7630361c430ccbaab6cde5a24f8c367
Signed-off-by: Amit Kumar Hayyal <amih@codeaurora.org>
Signed-off-by: Vivek Malapaka <malapaka@codeaurora.org>
2020-11-01 20:44:17 -08:00
qctecmdr
59298aad12 Merge " ASoC: bolero: Update clock sequence to clear Fs counter" 2020-11-01 20:23:50 -08:00
qctecmdr
8ae1b12168 Merge "soc: add check condition before enabling irq" 2020-11-01 20:23:50 -08:00