Update make files to extend dlkm support for qcs605
Change-Id: Icf736fb66ca12966f4c6cd72bb906eb32899868a
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
lb_mode var is redundant for sdm660_cdc.
Loopback works fine without this var also.
CRs-Fixed: 2101423
Change-Id: I727da02660a0f1d6ee5582fc2f2c0a8f6cd59bc1
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
Pop is observed after start playback on hph.
This is because both compander channels are not enabled
at the same time which differs from ideal sequence.
Amplitude of pop gets reduced after
corresponding change is made.
CRs-Fixed: 2101404
Change-Id: Iba2b8a809fd3b53f0c180ce28ac5668d7635fb24
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
If compander DRE isn't turned on, ensure analog gain mode
is set to manual mode. This also resolves low volume
at one channel.
CRs-Fixed: 2102126
Change-Id: Id29b7055fe4f7fa7b3853c26770df38d10539d8c
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
Kernel panic is observed during SSR. This is because
ADSP does not get sufficient time to bring up LPASS after SSR.
An increase in ADSP Ready timeout resolves the issue.
CRs-Fixed: 2101404
Change-Id: Ia7d1ecde7a713b4d71b2a4ebb1f85a38b8fa28b5
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
Add a new mixer ctl to set WSA boost value for
speaker protection v3. Boost value for different
stages are packed together.
Change-Id: Ie80d7bea4d3af00b74935f8b680e72ee967717f6
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
Add new mixer ctls to control max boost state level
for speaker protection V3.
Change-Id: If967de46955f6dc8692986503daea68ce105f642
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
Add a new AFE API to send limiter threshold to ADSP.
Change-Id: Ibcd795d7c0edb4f081636c621e51e5a1eaa036b1
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
To support speaker protection v3, add sp version and
limiter threshold in spk_prot_cfg struct.
Change-Id: Ia4c89934e00bfa8c0e0c6823f48d56baf6759f14
Signed-off-by: Xiaojun Sang <xsang@codeaurora.org>
Add support for quinary pcm and tdm interfaces in q6audio.
CRs-Fixed: 2133890
Change-Id: I59ca2965f5d38d30bea5a00f34898af5c948ac16
Signed-off-by: Rohit kumar <rohitkr@codeaurora.org>
Update quinary mi2s dai id to 4 and secondary mi2s playback
sd1 dai id to 5. Also update index of mi2s_config_controls
for primary, secondary, tertiary and quaternary mi2s.
CRs-Fixed: 2133890
Change-Id: I00997b79a148cf50b2a3f9acf6e44fe603e5c944
Signed-off-by: Rohit kumar <rohitkr@codeaurora.org>
Update quinary mi2s cpu dai id to 4 for sdm670. This is
required for sending correct afe port id for quin mi2s
and keep all MI2S interfaces in sequence.
CRs-Fixed: 2133890
Change-Id: I0ab35f2d97858f355da577076a5a1e3f438a1bab
Signed-off-by: Rohit kumar <rohitkr@codeaurora.org>
Switch to DLKM for all audio kernel modules.
Change-Id: I6a96023a21f655f873531af9ace81f2b01eb0f58
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Compander disable sequence does not get called
after headphone playback on FM. This results
in mute at one channel. Compander clock
should be disabled at the end to resolve the mute.
CRs-Fixed: 2102126
Change-Id: Ia47fb1c393db255b52a965173a769896768f245e
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
Check if GPIO is valid before free to avoid crash.
Change-Id: Ie052e5ff1776ad57ae9c1d0f00873ba29e11f78f
Signed-off-by: Meng Wang <mwang@codeaurora.org>
Deregister sound card with audio notifier when removing driver to
avoid crash.
Change-Id: I4f22fefce519e8dab25901337fdf2e62044090ed
Signed-off-by: Meng Wang <mwang@codeaurora.org>
Deregister lpi with audio notifier when removing driver to
avoid crash when rmmod and insmod again.
Change-Id: Ibcaf272e6405ef8403b3ac66af5572050fa1092e
Signed-off-by: Meng Wang <mwang@codeaurora.org>
Remove any child devices associated with this
codec driver so that rmmod and insmod again will
run without issues.
Clear MBHC setting during tasha_remove.
Change-Id: Icad9b2ad21601525c68c5d151cd664aa6060e911
Signed-off-by: Meng Wang <mwang@codeaurora.org>
When CONFIG_SND_SOC_EXT_CODEC/CONFIG_SND_SOC_INT_CODEC is set to m not y,
"ifdef CONFIG_SND_SOC_EXT_CODEC/CONFIG_SND_SOC_INT_CODEC"
would be false which would cause init functions as dummy functions.
Change to "if IS_ENABLED" and When CONFIG_SND_SOC_EXT_CODEC/
CONFIG_SND_SOC_INT_CODEC is set to y/m, both would set the
condition to true.
Change Makefile to compile machine driver for internal/external
codec as one module.
Change-Id: Ib72f95a24e8a4e657a1e9efc655f92a397b44d32
Signed-off-by: Meng Wang <mwang@codeaurora.org>
Enable all five TDM interfaces to configure clock frequency during
the runtime.
Change-Id: I066ea2034509dee2350205ee887dd3eeb6f5389b
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
Update cpu_dai_name of quin_tdm from tdm group id to
port id for sdm670 internal and external codec machine
driver to fix soundcard registration issue.
Change-Id: I2f7ed4ea983c1d457c4d2940c33f5bb7440ddee6
Signed-off-by: Rohit kumar <rohitkr@codeaurora.org>
During ADSP SSR, unless all APR clients are de-registered, Glink
channel will not be closed, which will cause Glink channel to remain
in stale/unusable state after ADSP SSR. Fix this by adding APR reset
logic in LSM driver.
Change-Id: Idec26836cfa4ecbacc557996339facd84ac19668
Signed-off-by: Xiaoyu Ye <benyxy@codeaurora.org>
Add support to set number of channels and channel mapping to DSP
as per the info received from ACDB files along with topology
for a device in voice usecases instead of reading from
backend configuration. When topology specific channel info is
not supported, send the default no of channels and
channel mapping as per backend to support backward compatibility.
CRs-Fixed: 2110934
Change-Id: Iad512474fc25c906d97513f6648cd8ba6244eda1
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
Add support for HDMI and DP for S24_3LE bit format.
This allows playback of 24bit audio on the external
device.
Change-Id: Ia6e1148b2e5d13cc0ff6f2372d61c83c3e704255
Signed-off-by: Ben Romberger <bromberg@codeaurora.org>
Pop noise occurs during switch from handset to speaker mode
during voice call. This is because sufficient delay
is not provided for tx to unmute. A delayed workqueue
that will do unmute at the end solves the issue.
CRs-Fixed: 2101423
Change-Id: I1ae7068b23158bb8428d5b96e9f65fb05a67ff7e
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>