Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 192e5802 authored by Kuirong Wang's avatar Kuirong Wang Committed by Stephen Boyd
Browse files

ASoC: msm/apq: Remove the dependency of AUX PCM TX to AUX PCM RX



AUX PCM interface is a bi-direction interface which RX and TX paths
share the clock and sync word. In current design, it is assumed
when TX path is activated, RX path was enabled beforehand. So the
AUX PCM clock and GPIO pin configuration is only tied to AUX PCM RX
path.  There is use case that only AUX PCM TX path is activated by
application so the AUX PCM clock and GPIOs are never configured
in this case which causes recording from AUX PCM TX failed to
capture any audio sample.

The solution is to update the clock and GPIO pin configuration to
both RX and TX path and then use an atomic reference counter to
prevent them configured twice.

CRs-Fixed: 397095
Change-Id: I23dd140c63f9a20a35811293097f54aa04790ada
Signed-off-by: default avatarKuirong Wang <kuirongw@codeaurora.org>
parent 68a7ce1e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment