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

Skip to content
Commit 3b2444a7 authored by Kiran Kandi's avatar Kiran Kandi Committed by Stephen Boyd
Browse files

ASoC: wcd9310: set rate only for required RX and TX paths.



Currently  when ever hw_params is called on a codec dai  the sample
rate is  set of all Interpolators(RX) and decimators(TX) which are
not active. This causes issues when  one TX codec dai active with one
sample rate and a side tone is enabled from one active  RX path to
another TX path with different sample rate. When First TX DAI is
enabled  all the  non-active decimators sample rate are set to its DAI
rate. When a RX Dai is enabled and the mixer commands are given for side
tone path to complete, it will cause the other TX path to be enabled
with sample rate of first TX DAI. So when second TX DAI hw_params is
called, since the decimator is already active its sample rate will not
be set. So only set sample rates of decimators and interpolators a DAI
is going to use.

CRs-Fixed: 370230
Change-Id: Ic916fc7680b51345cfcc83011a6df30c4b3320c8
Signed-off-by: default avatarKiran Kandi <kkandi@codeaurora.org>
parent b2091243
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