record: compatible with ts clone mode. [1/1]

PD#SWPL-134020

Problem:
record abnormal on ts clone mode.

Solution:
fix.
Need co-work with:
https://scgit.amlogic.com/#/c/343785/

Verify:
S905y4

Change-Id: Ic322bb34bf201f50ebde0a0223dba0bfd2a30ca2
Signed-off-by: Yahui Han <yahui.han@amlogic.com>
diff --git a/src/dvb_utils.c b/src/dvb_utils.c
index b0a490d..539e739 100644
--- a/src/dvb_utils.c
+++ b/src/dvb_utils.c
@@ -368,3 +368,21 @@
     }
     return 0;
 }
+
+//check if demux driver ts_clone enabled
+int dvr_ts_clone_enable(void)
+{
+    char node[32] = "/sys/class/dmx/ts_clone";
+    char buf[32] = {0};
+    int ts_clone_enable = 0;
+    int r;
+
+    r = dvr_file_read(node, buf, sizeof(buf));
+    if (r != -1)
+    {
+        sscanf(buf, "ts clone %d", &ts_clone_enable);
+        return ts_clone_enable;
+    }
+
+    return 0;
+}