video: driver: Add handling for session priority

Following changes are added with this:
1. Handle and adjust session priority.
2. Session addmission based on priority.
3. Power (clock and bus) scaling based on priority.
4. Handle s_parm influence on priority.

Change-Id: I12dec5fb03d733f07b0b0a24b4d74d1ccd4bf791
Signed-off-by: Vikash Garodia <vgarodia@codeaurora.org>
This commit is contained in:
Vikash Garodia
2021-03-17 22:28:17 +05:30
orang tua ac3350d805
melakukan 0017afac21
14 mengubah file dengan 186 tambahan dan 82 penghapusan

Melihat File

@@ -124,6 +124,11 @@ enum msm_vidc_codec_type {
MSM_VIDC_HEIC = BIT(3),
};
enum priority_level {
MSM_VIDC_PRIORITY_LOW,
MSM_VIDC_PRIORITY_HIGH,
};
enum msm_vidc_colorformat_type {
MSM_VIDC_FMT_NONE = 0,
MSM_VIDC_FMT_NV12 = BIT(0),
@@ -686,11 +691,6 @@ struct msm_vidc_decode_batch {
struct delayed_work work;
};
enum load_calc_quirks {
LOAD_POWER = 0,
LOAD_ADMISSION_CONTROL = 1,
};
enum msm_vidc_power_mode {
VIDC_POWER_NORMAL = 0,
VIDC_POWER_LOW,