status = "okay";
};
+ amlvideo2_0 {
+ compatible = "amlogic, amlvideo2";
+ dev_name = "amlvideo2";
+ status = "okay";
+ amlvideo2_id = <0>;
+ cma_mode = <1>;
+ };
+
+ amlvideo2_1 {
+ compatible = "amlogic, amlvideo2";
+ dev_name = "amlvideo2";
+ status = "okay";
+ amlvideo2_id = <1>;
+ cma_mode = <1>;
+ };
+
hdmirx {
compatible = "amlogic, hdmirx-txl";
status = "okay";
status = "okay";
};
+ amlvideo2_0 {
+ compatible = "amlogic, amlvideo2";
+ dev_name = "amlvideo2";
+ status = "okay";
+ amlvideo2_id = <0>;
+ cma_mode = <1>;
+ };
+
+ amlvideo2_1 {
+ compatible = "amlogic, amlvideo2";
+ dev_name = "amlvideo2";
+ status = "okay";
+ amlvideo2_id = <1>;
+ cma_mode = <1>;
+ };
+
hdmirx {
compatible = "amlogic, hdmirx-txl";
status = "okay";
memory-region = <&defendkey_reserved>;
status = "okay";
};
-
status = "okay";
};
+ amlvideo2_0 {
+ compatible = "amlogic, amlvideo2";
+ dev_name = "amlvideo2";
+ status = "okay";
+ amlvideo2_id = <0>;
+ cma_mode = <1>;
+ };
+
+ amlvideo2_1 {
+ compatible = "amlogic, amlvideo2";
+ dev_name = "amlvideo2";
+ status = "okay";
+ amlvideo2_id = <1>;
+ cma_mode = <1>;
+ };
+
hdmirx {
compatible = "amlogic, hdmirx-txl";
status = "okay";
status = "okay";
};
+ amlvideo2_0 {
+ compatible = "amlogic, amlvideo2";
+ dev_name = "amlvideo2";
+ status = "okay";
+ amlvideo2_id = <0>;
+ cma_mode = <1>;
+ };
+
+ amlvideo2_1 {
+ compatible = "amlogic, amlvideo2";
+ dev_name = "amlvideo2";
+ status = "okay";
+ amlvideo2_id = <1>;
+ cma_mode = <1>;
+ };
+
hdmirx {
compatible = "amlogic, hdmirx-txl";
status = "okay";
/* #define USE_SEMA_QBUF */
/* #define USE_VDIN_PTS */
-/* #define MULTI_NODE */
+#define MULTI_NODE
+
#ifdef MULTI_NODE
#define MAX_SUB_DEV_NODE 2
#else
#ifdef PREVIOUS_VOUT_MODE
static enum tvin_scan_mode_e vmode2scan_mode(enum vmode_e mode)
{
- enum tvin_scan_mode_e scan_mode =
- TVIN_SCAN_MODE_NULL;/* 1: progressive 2:interlaced */
+ enum tvin_scan_mode_e scan_mode = TVIN_SCAN_MODE_PROGRESSIVE;
+ //TVIN_SCAN_MODE_NULL;/* 1: progressive 2:interlaced */
switch (mode) {
case VMODE_480I:
return -1;
}
} else {
- flags = CODEC_MM_FLAGS_DMA |
+ flags = CODEC_MM_FLAGS_DMA_CPU|
CODEC_MM_FLAGS_CMA_CLEAR;
if (node_id == 0) {
if (vid_dev->node[node_id]->