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:
Kuirong Wang <kuirongw@codeaurora.org>
Loading
Please register or sign in to comment