From 01dfd1619a9a5f32fffb47031644bfb37b29a283 Mon Sep 17 00:00:00 2001 From: "live.li" Date: Wed, 14 Nov 2018 10:15:00 +0800 Subject: [PATCH] tsync: tsync change the apts set code [1/2] PD#SWPL-1774 Problem: DD program has avysnc problem over one night play Solution: fix the apts set bug Verify: p321 Change-Id: I0f6a5b47d3e3171a3dd8fa9a0b721cd11ec20b9e Signed-off-by: live.li --- drivers/amlogic/media/frame_sync/tsync.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/amlogic/media/frame_sync/tsync.c b/drivers/amlogic/media/frame_sync/tsync.c index cb2fc32d7cf0..6c7937938e45 100644 --- a/drivers/amlogic/media/frame_sync/tsync.c +++ b/drivers/amlogic/media/frame_sync/tsync.c @@ -1441,7 +1441,7 @@ static ssize_t store_vpts(struct class *class, ssize_t r; /*r = sscanf(buf, "0x%x", &pts);*/ - r = kstrtoint(buf, 0, &pts); + r = kstrtouint(buf, 0, &pts); if (r != 0) return -EINVAL; @@ -1462,9 +1462,7 @@ static ssize_t store_apts(struct class *class, { unsigned int pts; ssize_t r; - - /*r = sscanf(buf, "0x%x", &pts);*/ - r = kstrtoint(buf, 0, &pts); + r = kstrtouint(buf, 0, &pts); if (r != 0) return -EINVAL;