Commit Graph

2238 Commits

Author SHA1 Message Date
qctecmdr
21b6b95462 Merge "asoc: kona: vote audio dcodec for mi2s fractional sample rate" 2019-10-12 08:53:33 -07:00
qctecmdr
18b8880076 Merge "asoc: codecs: wcd937x: restore clear_ack setting for wcd937x" 2019-10-12 08:51:14 -07:00
qctecmdr
55603d0cb0 Merge "asoc: codecs: Add HPH and EAR concurrency state in class-h driver" 2019-10-12 08:49:13 -07:00
Karthikeyan Mani
1a9d750c9b asoc: kona: vote audio dcodec for mi2s fractional sample rate
To enable clock for mi2s running over fractional
sample rate, vote for audio dcodec lpass clock.

Change-Id: Ib8cff3ee0c61f23a4d8d163debea78dfb3a367a9
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-10-07 15:04:33 -07:00
qctecmdr
ae5dca4830 Merge "asoc: codecs: wcd938x: limit buffer copy to max buffer size" 2019-10-06 11:49:21 -07:00
qctecmdr
9781513741 Merge "asoc: Add support for Hifi resampler check with bitwidth and sample_rate" 2019-10-03 20:07:55 -07:00
qctecmdr
4b5cc9dcbe Merge "soc: pinctrl-lpi: Enable gpio for swr tx data3 for lito v2" 2019-10-03 20:07:55 -07:00
qctecmdr
46c1ee44b8 Merge "dsp: adsp-loader: Support dynamic size for array priv->adsp_fw_name." 2019-10-03 20:07:55 -07:00
Prasad Kumpatla
6db89c7dc3 asoc: Add support for Hifi resampler check with bitwidth and sample_rate
The check for bitwidht and sample rate along with hifi enable is to ensure not
to open speaker at 32bit in combo usecase of speaker and Hifi-headphone.

Change-Id: I4d1e5f357a74424c28d11d17a9fdfdd9309adec3
2019-10-01 03:50:16 -07:00
qctecmdr
3c19b49560 Merge "asoc: codecs: bolero: Update mixing path and channel mask for RX path" 2019-09-30 23:31:40 -07:00
qctecmdr
61f51296b3 Merge "asoc: msm: Add support for updated tdm slot map cfg version" 2019-09-30 23:29:02 -07:00
Karthikeyan Mani
80b063e8d9 asoc: codecs: wcd938x: limit buffer copy to max buffer size
Check for max buffer size before filling the buffer and
add error handling for cases where buffer copy fails.

Change-Id: I0eede1e5baf63c35c65a704c8bf53c85fe49892e
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-09-27 14:06:11 -07:00
qctecmdr
6fc4b30d6b Merge "soc: swr-mstr: exit irq handler if clock req fails" 2019-09-27 09:15:54 -07:00
qctecmdr
86eff99707 Merge "dsp: Change condition for cal_data for v_vali_param" 2019-09-27 09:13:08 -07:00
Ajit Pandey
72066d3ab6 dsp: adsp-loader: Support dynamic size for array priv->adsp_fw_name.
Current implementation allocates fixed size for array priv->adsp_fw_name
but this may result in out of bound access if source adsp_fw_name_array
dts property size exceed this fixed size. This patch fixes this issue by
allocating priv->adsp_fw_name array with dynamic size of source array.
Also fixes bytes copied in strlcpy.

Change-Id: Iea031952224672c34eb7245996687985e18ef8be
Signed-off-by: Ajit Pandey <ajitp@codeaurora.org>
2019-09-27 19:56:30 +05:30
Vatsal Bucha
45e51d1685 soc: pinctrl-lpi: Enable gpio for swr tx data3 for lito v2
Lito swr has three data lines for tx. Third data line is
on different lpi gpio from other data lines for tx.
Enable corresponding gpio.

Change-Id: I3213897766e3b38d3d04ca85410c8ca674efcfc6
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-09-27 10:38:51 +05:30
Laxminath Kasam
e6c06ae348 asoc: codecs: wcd937x: restore clear_ack setting for wcd937x
For wcd937x interrupts, need to set clear_ack explicitly
for regmap irq to clear the interrupt.

Change-Id: Ieffc20db0665fa82fe088337fbdf8b518191be3d
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-09-26 15:05:08 +05:30
Karthikeyan Mani
7af16b8364 asoc: codecs: wcd938x: check for device up before writes
During SSR, codec device will be down and wait till
receiving up notification before doing any register
reads or writes.

Change-Id: I0e2967990bfc9d0d780d4c7e666a4c31159e70ce
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-09-24 14:45:00 -07:00
Karthikeyan Mani
4bee1db049 soc: swr-mstr: exit irq handler if clock req fails
exit irq handler gracefully if soundwire clock request
fails, so that soundwire registers are not accessed
without clock.

Change-Id: Ic2c9162e49901c7d5c876115f386d0a5a00fd691
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-09-24 12:19:35 -07:00
Vatsal Bucha
ff83a9e205 dsp: Change condition for cal_data for v_vali_param
V-Validation is not working due to different
size for cal_data and data_size. This is expected as
same callbacks are used for ftm and v validation.
Change condition to ensure data_size is less than
or equal to size of cal_data.

Change-Id: I78b4e6778de9cfa5f95830fc6d48b84e608ba3a5
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-09-24 12:08:31 +05:30
qctecmdr
63a3452c9c Merge "ASoC: wcd938x: Update wcd938x initialization sequence" 2019-09-23 22:59:02 -07:00
qctecmdr
7347f53ca7 Merge "asoc: codec: bolero: keep internal track of TX votes" 2019-09-23 22:56:48 -07:00
qctecmdr
50caff1bd9 Merge "ASoc: swr-mstr: Avoid changing auto suspend timer value in runtime resume" 2019-09-22 11:32:10 -07:00
qctecmdr
21bd954e24 Merge "asoc: msm-pcm: Added lock in controls _put() and _get() callback" 2019-09-21 23:13:13 -07:00
qctecmdr
8d400e0261 Merge "asoc: msm-compress: Add lock in controls _put() and _get() callback" 2019-09-21 23:08:52 -07:00
qctecmdr
050efd64a3 Merge "asoc: msm-routing: Fix array out of bounds issue." 2019-09-21 22:16:47 -07:00
qctecmdr
0ed4827e2f Merge "dsp: adm: use default rate for unsupported sample rates" 2019-09-21 22:14:56 -07:00
qctecmdr
9d0f53cc20 Merge "asoc: codecs: Fix pop issue on WSA cold start" 2019-09-21 22:13:09 -07:00
qctecmdr
05d1cbfdf2 Merge "dsp: avtimer: Add adsp ready check before accessing avtimer registers" 2019-09-21 22:11:08 -07:00
qctecmdr
212f9e9be2 Merge "ASoC: tx-macro: Disable wakeup source for soundwire tx data gpio" 2019-09-21 22:09:40 -07:00
qctecmdr
7c8393fd01 Merge "asoc: codecs: wsa881x: turn off PA at ssr" 2019-09-21 22:07:38 -07:00
Karthikeyan Mani
0eef9ab635 asoc: codec: bolero: keep internal track of TX votes
TX clock is needed for setting up or tearing down
VA path. while voting and unvoting for TX clock,
keep track of the votes to unvote only if it was
voted from VA widgets.

Change-Id: Ia013517ed8d932ed3a5242bb7d052c1ee314fdbe
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-09-20 13:12:40 -07:00
qctecmdr
3336074e53 Merge "ASoC: wcd938x: Add debug support for WCD938x soundwire slave" 2019-09-20 00:37:48 -07:00
qctecmdr
dc92f04266 Merge "ASoC: bolero: Fix audio mute during first 4-5 seconds in headset record" 2019-09-20 00:35:48 -07:00
qctecmdr
a134afc4f5 Merge "asoc: hdmi: return 0 when get_audio_edid_blk is NULL" 2019-09-20 00:32:35 -07:00
qctecmdr
96957b41b9 Merge "ASoC: bolero: Update init registers for tx and rx paths" 2019-09-20 00:29:19 -07:00
qctecmdr
59139d3262 Merge "ASoC: wcd-mbhc: Remove max impedance limit for lineout detection" 2019-09-20 00:26:15 -07:00
qctecmdr
cd5eb95e74 Merge "ASoC: Add support for tx data lane3 for lito v2" 2019-09-20 00:23:14 -07:00
qctecmdr
e7ca2c922b Merge "asoc: qcs405: add ignore_suspend for lineout booster" 2019-09-20 00:21:54 -07:00
qctecmdr
c73a9db04a Merge "asoc: cdc-pinctrl: Update to disable MPM wakeup for multiple gpios" 2019-09-20 00:19:52 -07:00
Sudheer Papothi
92bf3feadb ASoC: wcd938x: Update wcd938x initialization sequence
Update wcd938x codec initialization sequence as per hardware
requirement.

Change-Id: I17989e3f159d106eb9de6b1b8f660a647962539c
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2019-09-20 00:47:15 +05:30
Laxminath Kasam
ade1444dd5 asoc: codecs: Add HPH and EAR concurrency state in class-h driver
Update the class-h driver state machine to allow HPH and EAR concurrency.

Change-Id: I5e227bdc87929b61fef78956f3a4eba4a686873e
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-09-19 18:39:21 +05:30
Vatsal Bucha
e50b500f6e ASoc: swr-mstr: Avoid changing auto suspend timer value in runtime resume
Changing auto suspend timer to default value without checking module params
is causing audio touch tone to hold CX out of power collapse longer.
Instead set another variable to change autosuspend delay during
swr clk request failed.

Change-Id: Ia85c4ebeea020221c8f385006543a95c69d9124e
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-09-19 03:06:58 -07:00
Laxminath Kasam
069df14aa0 asoc: codecs: Fix pop issue on WSA cold start
Observe pop if FS clock is turned on at end of
powerup sequence. Ensure WSA PA is turned on
after FS clock to avoid pop.

Change-Id: Ic1214d361e77db252b7a90a89fc99c69f51e270b
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2019-09-19 11:37:00 +05:30
Karthikeyan Mani
13485b7fe1 asoc: codecs: wsa881x: turn off PA at ssr
Register for a callback for ssr notification
and turn off PA at pre-ssr to protect speaker
from any turning off damage during ssr.

Change-Id: I286d9bdcbcba9561424a8f0d4a1e99a8492caf08
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-09-18 22:42:52 -07:00
Aditya Bavanari
156a57fbb5 dsp: avtimer: Add adsp ready check before accessing avtimer registers
Add adsp ready check before accessing avtimer registers in
order to avoid NOC errors on these registers during SSR/PDR
usecases while querying offset.

Change-Id: I9246302f01906ab35095c76f729ea082b9756cc5
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
2019-09-18 20:46:44 +05:30
qctecmdr
33de327759 Merge "asoc: codecs: wcd937x: Fix compile error" 2019-09-18 04:54:28 -07:00
qctecmdr
4710d04f7b Merge "asoc: msm: Add primary tdm tx line in echo reference" 2019-09-18 04:04:37 -07:00
qctecmdr
ae58e9ee01 Merge "asoc: codecs: wcd938x: Enable EAR over INT2 chain" 2019-09-18 04:01:17 -07:00
qctecmdr
c98f3f9707 Merge "asoc: kona: Update LPI GPIO wakeup disable for all DMICs" 2019-09-18 03:58:07 -07:00