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
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Audio mute is observed if record is started as soon as headset
is inserted. This is because hold time after button release is set
as 800ms causing the delay. Change hold time to 200ms to fix this issue.
Change-Id: I98028fca3412a3d47ad8e5154f25ff1726426955
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
Apps is not able to enter into power suspend mode.
Adding lineout booster widget to ignore suspend
Change-Id: I220ff46465e0ad3d2b6852933e00331c055a26d6
Signed-off-by: Surendar Karka <skarka@codeaurora.org>