mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 12:57:06 +09:00
vdec: add drm_framemode in codec profile [1/2]
PD#SWPL-1081 Problem: omx need get profile to know whether kernel support drm framemode Solution: add drm_framemode in codec profile Verify: P212 Change-Id: I9e817d01714296646f150680ca1e7a301de9b341 Signed-off-by: Tao Guo <tao.guo@amlogic.com>
This commit is contained in:
@@ -2,3 +2,4 @@ obj-m += decoder_common.o
|
||||
decoder_common-objs += utils.o vdec.o vdec_input.o amvdec.o
|
||||
decoder_common-objs += decoder_mmu_box.o decoder_bmmu_box.o
|
||||
decoder_common-objs += config_parser.o secprot.o vdec_profile.o
|
||||
decoder_common-objs += amstream_profile.o
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
#include <linux/device.h>
|
||||
#include <linux/interrupt.h>
|
||||
#include <linux/amlogic/media/utils/amstream.h>
|
||||
#include "amports_priv.h"
|
||||
|
||||
static const struct codec_profile_t *vcodec_profile[SUPPORT_VDEC_NUM] = { 0 };
|
||||
|
||||
@@ -32,12 +31,13 @@ ssize_t vcodec_profile_read(char *buf)
|
||||
int i = 0;
|
||||
|
||||
for (i = 0; i < vcodec_profile_idx; i++) {
|
||||
pbuf += sprintf(pbuf, "%s:%s;\n", vcodec_profile[i]->name,
|
||||
pbuf += snprintf(pbuf, PAGE_SIZE - (pbuf - buf), "%s:%s;\n", vcodec_profile[i]->name,
|
||||
vcodec_profile[i]->profile);
|
||||
}
|
||||
|
||||
return pbuf - buf;
|
||||
}
|
||||
EXPORT_SYMBOL(vcodec_profile_read);
|
||||
|
||||
int vcodec_profile_register(const struct codec_profile_t *vdec_profile)
|
||||
{
|
||||
@@ -3936,6 +3936,11 @@ static struct platform_driver vdec_driver = {
|
||||
}
|
||||
};
|
||||
|
||||
static struct codec_profile_t amvdec_input_profile = {
|
||||
.name = "vdec_input",
|
||||
.profile = "drm_framemode"
|
||||
};
|
||||
|
||||
int vdec_module_init(void)
|
||||
{
|
||||
if (platform_driver_register(&vdec_driver)) {
|
||||
@@ -3944,6 +3949,7 @@ int vdec_module_init(void)
|
||||
}
|
||||
INIT_REG_NODE_CONFIGS("media.decoder", &vdec_node,
|
||||
"vdec", vdec_configs, CONFIG_FOR_RW);
|
||||
vcodec_profile_register(&amvdec_input_profile);
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL(vdec_module_init);
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
obj-m += stream_input.o
|
||||
|
||||
stream_input-objs += amports/amstream.o
|
||||
stream_input-objs += amports/amstream_profile.o
|
||||
stream_input-objs += amports/adec.o
|
||||
stream_input-objs += parser/thread_rw.o
|
||||
stream_input-objs += parser/streambuf.o
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
obj-y += amports.o
|
||||
amports-objs += amstream.o amstream_profile.o adec.o
|
||||
amports-objs += amstream.o adec.o
|
||||
|
||||
Reference in New Issue
Block a user