Age | Commit message (Collapse) | Author |
|
'qcom-msm-4.19-7250-audio-drivers.lnx.4.0.r3' into android-msm-pixel-4.19
Bug: 261541074
Change-Id: I9afc4042670bd395febcc0906666b49ca88f044d
Signed-off-by: JohnnLee <johnnlee@google.com>
|
|
-> 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
|
|
'qcom-msm-4.19-7250-audio-drivers.lnx.4.0.r3' into android-msm-pixel-4.19
Bug: 253163588
Change-Id: Id8f721dfcc23ead6f4c6adc36a7b8471f3584aab
Signed-off-by: JohnnLee <johnnlee@google.com>
|
|
fix for nullptr deref issue
Change-Id: I26acf2c5c696038c6d5c64d858174b2f2c58a7d3
Signed-off-by: Shazmaan Ali <quic_shazmaan@quicinc.com>
|
|
'qcom-msm-4.19-7250-audio-drivers.lnx.4.0.r3' into android-msm-pixel-4.19
Conflicts:
dsp/q6adm.c
dsp/rtac.c
include/dsp/q6adm-v2.h
Bug: 187909050
Signed-off-by: Lucas Wei <lucaswei@google.com>
Change-Id: I9261f1c48a33410da347a0ed29da4b93d4ec0ec9
|
|
Enable interrupt request only when the interrupt is
in disabled state.
Bug: 187655844
Signed-off-by: Jason Hsu <jasonchhsu@google.com>
Change-Id: I18d32113be7b81d5ea120bd7fd696474efd5229d
|
|
'qcom-msm-4.19-7250-audio-drivers.lnx.4.0.r3' into android-msm-pixel-4.19
Conflicts:
asoc/kona.c
Bug: 182748782
Change-Id: I3a9dffa6dd350b5a6b240e50c7e94eebb8b31243
|
|
Auto suspend timer for core vote is triggering before read write complete.
Move the auto suspend of core vote to post read write operation.
Change-Id: Ib0f6b026fe0e7fd3fbe052691db492915e436a78
Signed-off-by: Vangala, Amarnath <avangala@codeaurora.org>
|
|
android-msm-pixel-4.19
Conflicts:
Makefile
asoc/kona.c
asoc/msm-pcm-routing-v2.c
Bug: 172988823
Signed-off-by: lucaswei <lucaswei@google.com>
Change-Id: I7f325c91d3f13c62a046dd150bef827a25cb34ad
|
|
Check for fifo availability before writing slave registers
during swrm master bulk write so as to prevent swr
overflow, underflow errors.
Change-Id: I97a914cac289b3f1215ccf5c1abec88b959a9f21
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
|
|
When ext clk stop wakeup and slave_pending_irq come together
then interrupt at swrslave is cleared due to calling
enable_slave_irq. Do not clear interrupts for enable_slave_irq
when its called from clk stop wakeup.
Change-Id: Ia710030ab80306d6750bea7264f0d4c07053d701
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
|
|
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>
|
|
updated"
|
|
|
|
Headset is not detected sometimes due to master.num_dev not being
updated when we call GET_ENUM_SLAVE_STATUS as get_logical address
may not have been called. Also enable slave irq only when
swr wokeup from clk stop and not when master is already up.
This will prevent valid irq to be discarded as spurious irq.
Change-Id: I00284e9340668c853d0bd604fe66801118982780
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
|
|
Enable component after enabling interrupt to avoid missing
some intterupt during master init.
Change-Id: I0f60c5431a815c58f878d3b9275a046e47939111
Signed-off-by: Meng Wang <mengw@codeaurora.org>
|
|
When headset is inserted and reboot device sometimes
headset is not detected after reboot as host_irq from
swr slave gets masked. This is because of cmd error seen
after clearing all irq which results in fifo flush.
Read swrslave irq before clearing so as to resolve cmd error.
Also enable slave irq only after clearing enum interrupt at
master which results in proper enabling of irq.
Change-Id: Id66029c65c4d813391bfeb8c0c619560f298eeab
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
|
|
|
|
Use the legacy pinctrl-lpi driver for sdm660
instead of the latest driver to avoid conflicts.
Change-Id: I58b1854eecb9488227c6e378c9ac10f779259e90
Signed-off-by: Soumya Managoli <smanag@codeaurora.org>
|
|
Avoid swr fifo overflow by checking no. of outstanding
commands in fifo and comparing with fifo depth before
every read/write. If no. of commands is equal to fifo
depth then give some delay and retry. If no of outstanding
commands are still equal to fifo depth then flush fifo
and try writing/reading from fifo again.
Change-Id: Ifd986c7affb70a61f8a90e4960a2779273a7d4d2
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
|
|
Enable compilation of ipc, soc, dsp and
asoc components for sdm660 target.
Change-Id: I5f575fcbca4d4e2e2ef6fcb8705d6bf3d54bcf61
Signed-off-by: Soumya Managoli <smanag@codeaurora.org>
|
|
Irq pointer is first freed and then used in
irq_set_trigger_type and set wakeup capable.
This may lead to Null pointer dereference if
irq is NULL. Free irq after using it.
Change-Id: I86339e9995922cc8111f12593eb781226bb07a2a
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
|
|
|
|
There is no delay after last write during bulk write. Add 100us delay
so as to ensure that last write goes fine.
Change-Id: Ifc1585f30eec639ffd6b80dde2e0365f368349d7
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
|
|
This reverts commits ea6cbeeb1ad818c8c7907252409edb306c81d0ae
and b06236e6377a48282b59410e0440b8be6d83095f.
Change-Id: I0b8b44bc5cca6bef6bc18c228f08a9c585c79c1c
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
|
|
|
|
Headset insertion/removal is not detected sometime due to
fifo read failure due to swr underflow. This is because if
headset sva is enabled, during clk switch swr force stop
happens and if mbhc has already taken pm vote for 3sec
further mbhc reads/writes will fail. If swr is in clk switch
mode then call swrm runtime_resume during reads/writes
to resolve issue.
Change-Id: I0d65869bd1c645bbf7ded9c0265f8d7de0dc624b
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
|
|
'qcom-msm-4.19-7250-audio-drivers.lnx.4.0.r3' into android-msm-pixel-4.19
Bug: 158429902
Change-Id: I42078b87107d01790bb8341cf441ed60f9ef7a82
Signed-off-by: lucaswei <lucaswei@google.com>
|
|
'qcom-msm-4.19-7250-audio-drivers.lnx.4.0.r3' into android-msm-pixel-4.19
Conflicts:
asoc/codecs/wcd-mbhc-adc.c
asoc/msm-lsm-client.c
config/litoauto.conf
config/litoautoconf.h
dsp/codecs/audio_alac.c
dsp/codecs/audio_ape.c
dsp/codecs/audio_g711alaw.c
dsp/codecs/audio_g711mlaw.c
dsp/q6afe.c
dsp/q6asm.c
dsp/usf.c
Bug: 157858241
Signed-off-by: lucaswei <lucaswei@google.com>
Change-Id: I8aa73fb62a60d33dcd98d67ce88523fb7e42d10b
|
|
This reverts commit 96c04bee538a04fa95946dec9e1c81c483643ac2.
Change-Id: Icc7e33adce6cff5c284faf351351e8b9febc583f
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
|
|
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>
|
|
Avoid swr fifo overflow by checking no. of outstanding
commands in fifo and comparing with fifo depth before
every read/write. If no. of commands is equal to fifo
depth then give some delay and retry. If no of outstanding
commands are still equal to fifo depth then flush fifo
and try writing/reading from fifo again.
Change-Id: I612203ce6879f5ffcffadc23650f5bba1d45856f
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
|
|
Restore change to retain audio_hm voting and
ensure AOP hang issue not seen by masking interrupt
wakeup of swr pinctrl pins.
Change-Id: I51bf36d6d6b0999abf10a4bc94cce900d1adf1d5
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
|
|
android-msm-pixel-4.19
Conflicts:
asoc/kona.c
asoc/msm-pcm-routing-v2.c
Bug: 156322859
Change-Id: I682634a6f444fd9eb6693981d42790d5956f13f9
Signed-off-by: Wilson Sung <wilsonsung@google.com>
|
|
Add 100msec delay before resetting hw vote counts in
SSR up sequence in order to ensure AVS is up when
votes are requested.
Change-Id: I0f46c60555f6bf833b1cac76f86a54afdcb78ba0
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
|
|
|
|
android-msm-pixel-4.19
Conflicts:
asoc/codecs/bolero/bolero-clk-rsc.c
Bug: 153823050
Signed-off-by: lucaswei <lucaswei@google.com>
Change-Id: Ifcf95fdee88bb2099bb33c9521ad276c825e164f
|
|
|
|
RX Master does not support div2 clk switching as div2_en bit
for rx master is floating. Do not do clk switch for rx master.
Change-Id: Iee1716fe892e792ffd17d0861a807e3711cee5d5
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
|
|
|
|
|
|
Overflow/Underflow errors are observed sometimes while doing fifo write.
Add delay between writes to resolve error.
Change-Id: Id460e17753001a0dd52acd01a181d91132c36048
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
|
|
HW vote and unvote is currently called from multiple
clients leading to synchronization issues
during SSR/PDR scenarios. Synchronize all the vote requests
by using digital codec resource manager.
Change-Id: I7e63f69ab5d761a3bb4c7ce70bbef2e8bfd76cfb
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
|
|
Mask bus clash interrupts to avoid interrupt
storm issues.
Change-Id: Ie5634e65c759f0ebbd74cf104888dfbc49a289f6
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
|
|
During SSR and headset detection/removal interrupt
concurrencies, ssr_lock can lead to serv reg ack timeout
issues. Remove this synchronization to avoid this issue.
Change-Id: I242a013a7e9d833db21d737cbdfea2d84bbd29fa
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
|
|
android-msm-pixel-4.19
Conflicts:
asoc/codecs/bolero/va-macro.c
asoc/codecs/wcd-mbhc-v2.c
asoc/msm-pcm-routing-v2.c
Bug: 151568484
Change-Id: I616296e1f324a64d6053625f6fb11c6c3262579c
Signed-off-by: Robin Peng <robinpeng@google.com>
|
|
|
|
In order to synchronize the core and audio hw votes
in SSR use cases, vote or unvote for these
based on clock count.
Change-Id: I0047e2cc689cc96b34992e5f6f59dae84d1d4e4b
Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>
|
|
Headset is not detected if devnum 0 gets detached at bootup.
This is because on detach being called hw will mask interrupt
at slave side but will not unmask it afterwards.
Also device 0 is used only for discovery purpose and
interrupt shouldnt be masked if it detaches.
Change-Id: I78d47243ef67ea5ee1fe3badaec94e596bc8faf3
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
|
|
'qcom-msm-4.19-7250-audio-drivers.lnx.4.0.r3' into android-msm-pixel-4.19
Conflicts:
asoc/codecs/audio-ext-clk-up.c
asoc/codecs/bolero/bolero-cdc.c
asoc/msm-pcm-routing-v2.c
dsp/q6afe.c
soc/pinctrl-lpi.c
soc/swr-mstr-ctrl.c
Bug: 149799837
Change-Id: Ia05814012ac22d11e68d4ea8fbe61ee78a075878
Signed-off-by: Robin Peng <robinpeng@google.com>
|