msm: vidc: Set dpb count based on target for smooth streaming
The min_dpb required for smooth streaming is set for the
max requirement of 1080p playback session. For 8960 num
of dpb required is 18 and for 8660 it is 8. This is set
in vidc platform data in the resepective device file.
Change-Id: I1e6bc3e8dcd64a00a7eb159f4600d40f5c229e45
Signed-off-by: Mohan Kumar Gubbihalli Lachma Naik <mgubbi@codeaurora.org>
diff --git a/arch/arm/mach-msm/devices-8064.c b/arch/arm/mach-msm/devices-8064.c
index aaa5bfb..1ad089d 100644
--- a/arch/arm/mach-msm/devices-8064.c
+++ b/arch/arm/mach-msm/devices-8064.c
@@ -1065,6 +1065,7 @@
#endif
.disable_dmx = 0,
.disable_fullhd = 0,
+ .cont_mode_dpb_count = 18,
};
struct platform_device apq8064_msm_device_vidc = {
diff --git a/arch/arm/mach-msm/devices-8960.c b/arch/arm/mach-msm/devices-8960.c
index 0f6d55f..c77ee67 100644
--- a/arch/arm/mach-msm/devices-8960.c
+++ b/arch/arm/mach-msm/devices-8960.c
@@ -661,6 +661,7 @@
#endif
.disable_dmx = 0,
.disable_fullhd = 0,
+ .cont_mode_dpb_count = 18,
};
struct platform_device msm_device_vidc = {
diff --git a/arch/arm/mach-msm/devices-msm7x30.c b/arch/arm/mach-msm/devices-msm7x30.c
index 5f08d77..234af04 100644
--- a/arch/arm/mach-msm/devices-msm7x30.c
+++ b/arch/arm/mach-msm/devices-msm7x30.c
@@ -955,7 +955,8 @@
struct msm_vidc_platform_data vidc_platform_data = {
.memtype = MEMTYPE_EBI0,
.enable_ion = 0,
- .disable_dmx = 0
+ .disable_dmx = 0,
+ .cont_mode_dpb_count = 8
};
struct platform_device msm_device_vidc_720p = {
diff --git a/arch/arm/mach-msm/devices-msm8x60.c b/arch/arm/mach-msm/devices-msm8x60.c
index 4dc1d0c..e19beb8 100644
--- a/arch/arm/mach-msm/devices-msm8x60.c
+++ b/arch/arm/mach-msm/devices-msm8x60.c
@@ -2266,7 +2266,8 @@
.enable_ion = 0,
#endif
.disable_dmx = 0,
- .disable_fullhd = 0
+ .disable_fullhd = 0,
+ .cont_mode_dpb_count = 8
};
struct platform_device msm_device_vidc = {
diff --git a/arch/arm/mach-msm/include/mach/board.h b/arch/arm/mach-msm/include/mach/board.h
index 4c80a55..d6476f7 100644
--- a/arch/arm/mach-msm/include/mach/board.h
+++ b/arch/arm/mach-msm/include/mach/board.h
@@ -509,6 +509,7 @@
#ifdef CONFIG_MSM_BUS_SCALING
struct msm_bus_scale_pdata *vidc_bus_client_pdata;
#endif
+ int cont_mode_dpb_count;
};
struct vcap_platform_data {