asoc: common: Enable AudioHM vote for VA I2S and TDM interface
Enable Audio HM vote for VA I2S and TDM interface so that clock is sourced from CXO instead of RO. Change-Id: I4f74f46a4ae7977e9cd15a2d8f59f020e02ac8a1 Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com>
This commit is contained in:

committed by
Gerrit - the friendly Code Review server

parent
96aa37207f
commit
77dec4e24c
@@ -447,7 +447,8 @@ int msm_common_snd_hw_params(struct snd_pcm_substream *substream,
|
||||
intf_clk_cfg.clk_root = 0;
|
||||
|
||||
if (pdata->is_audio_hw_vote_required[index] &&
|
||||
is_fractional_sample_rate(rate)) {
|
||||
(is_fractional_sample_rate(rate) ||
|
||||
(index == QUIN_MI2S_TDM_AUXPCM))) {
|
||||
ret = mi2s_tdm_hw_vote_req(pdata, 1);
|
||||
if (ret < 0) {
|
||||
pr_err("%s lpass audio hw vote enable failed %d\n",
|
||||
@@ -490,7 +491,8 @@ int msm_common_snd_hw_params(struct snd_pcm_substream *substream,
|
||||
intf_clk_cfg.clk_root = CLOCK_ROOT_DEFAULT;
|
||||
|
||||
if (pdata->is_audio_hw_vote_required[index] &&
|
||||
is_fractional_sample_rate(rate)) {
|
||||
(is_fractional_sample_rate(rate) ||
|
||||
(index == QUIN_MI2S_TDM_AUXPCM))) {
|
||||
ret = mi2s_tdm_hw_vote_req(pdata, 1);
|
||||
if (ret < 0) {
|
||||
pr_err("%s lpass audio hw vote enable failed %d\n",
|
||||
@@ -611,7 +613,8 @@ void msm_common_snd_shutdown(struct snd_pcm_substream *substream)
|
||||
}
|
||||
|
||||
if (pdata->is_audio_hw_vote_required[index] &&
|
||||
is_fractional_sample_rate(rate)) {
|
||||
(is_fractional_sample_rate(rate) ||
|
||||
(index == QUIN_MI2S_TDM_AUXPCM))) {
|
||||
ret = mi2s_tdm_hw_vote_req(pdata, 0);
|
||||
}
|
||||
} else if (atomic_read(&pdata->lpass_intf_clk_ref_cnt[index]) < 0) {
|
||||
|
Reference in New Issue
Block a user