diff options
author | Kamil Debski | 2014-05-20 15:15:13 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab | 2014-05-23 20:32:50 +0200 |
commit | 9aa5f0087a5c2aabbce5a475309d7d5caa1fab07 (patch) | |
tree | d5317f22597ff6113c0124d98907113a50f78b6a /drivers/media/platform/s5p-mfc/s5p_mfc_common.h | |
parent | [media] v4l: s5p-mfc: Fix default pixel format selection for decoder (diff) | |
download | kernel-qcow2-linux-9aa5f0087a5c2aabbce5a475309d7d5caa1fab07.tar.gz kernel-qcow2-linux-9aa5f0087a5c2aabbce5a475309d7d5caa1fab07.tar.xz kernel-qcow2-linux-9aa5f0087a5c2aabbce5a475309d7d5caa1fab07.zip |
[media] v4l: s5p-mfc: Limit enum_fmt to output formats of current version
MFC versions support a different set of formats, this specially applies
to the raw YUV formats. This patch changes enum_fmt, so that it only
reports formats that are supported by the used MFC version.
Signed-off-by: Kamil Debski <k.debski@samsung.com>
Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/platform/s5p-mfc/s5p_mfc_common.h')
-rw-r--r-- | drivers/media/platform/s5p-mfc/s5p_mfc_common.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc_common.h b/drivers/media/platform/s5p-mfc/s5p_mfc_common.h index 993c99303d41..4f3d38e3b08d 100644 --- a/drivers/media/platform/s5p-mfc/s5p_mfc_common.h +++ b/drivers/media/platform/s5p-mfc/s5p_mfc_common.h @@ -223,6 +223,7 @@ struct s5p_mfc_buf_align { struct s5p_mfc_variant { unsigned int version; unsigned int port_num; + u32 version_bit; struct s5p_mfc_buf_size *buf_size; struct s5p_mfc_buf_align *buf_align; char *fw_name; @@ -664,6 +665,7 @@ struct s5p_mfc_fmt { u32 codec_mode; enum s5p_mfc_fmt_type type; u32 num_planes; + u32 versions; }; /** @@ -703,4 +705,9 @@ void set_work_bit_irqsave(struct s5p_mfc_ctx *ctx); #define IS_MFCV6_PLUS(dev) (dev->variant->version >= 0x60 ? 1 : 0) #define IS_MFCV7_PLUS(dev) (dev->variant->version >= 0x70 ? 1 : 0) +#define MFC_V5_BIT BIT(0) +#define MFC_V6_BIT BIT(1) +#define MFC_V7_BIT BIT(2) + + #endif /* S5P_MFC_COMMON_H_ */ |