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

Commit d92068af authored by Arun Menon's avatar Arun Menon Committed by Gerrit - the friendly Code Review server
Browse files

msm: vidc: Fix an issue with high bitrate playback



If the instant bitrate during playback is higher than
the max supported bitrate, then driver should ensure
that venus core is scaled at max frequency. Without this
change we will see frame drops if instant bitrate is
higher than max supported.

CRs-Fixed: 1038427
Change-Id: Id76865085285e2d8b92dba6aa456b972374789ac
Signed-off-by: default avatarArun Menon <avmenon@codeaurora.org>
parent ad8cf1bb
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -1238,6 +1238,13 @@ static unsigned long __get_clock_rate_with_bitrate(struct clock_info *clock,
				break;
			}
		}

		/*
		 * Current bitrate is higher than max supported load.
		 * Select max frequency to handle this load.
		 */
		if (i < 0)
			supported_clk[j] = table[0].freq;
	}

	for (i = 0; i < data->num_sessions; i++)