summaryrefslogtreecommitdiff
path: root/drivers/misc/i2s/msp_i2s.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/misc/i2s/msp_i2s.c')
-rw-r--r--drivers/misc/i2s/msp_i2s.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/misc/i2s/msp_i2s.c b/drivers/misc/i2s/msp_i2s.c
index 8dcf86d4b64..bf80cc5cc1b 100644
--- a/drivers/misc/i2s/msp_i2s.c
+++ b/drivers/misc/i2s/msp_i2s.c
@@ -449,7 +449,8 @@ static int configure_clock(struct msp *msp,
bit_clock = (config->input_clock_freq * 1000)/(sck_div + 1);
/* If the bit clock is higher than 19.2MHz, Vape should be run in 100% OPP */
- if (bit_clock > 19200000) {
+ /* Only consider OPP 100% when bit-clock is used, i.e. MSP master mode */
+ if ((bit_clock > 19200000) && ((config->tx_clock_sel != 0) || (config->rx_clock_sel != 0))) {
prcmu_qos_update_requirement(PRCMU_QOS_APE_OPP, "msp_i2s", 100);
msp->vape_opp_constraint = 1;
} else {