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 <live.li@amlogic.com>
This commit is contained in:
live.li
2018-11-14 10:15:00 +08:00
committed by Dongjin Kim
parent c3be59cd4f
commit 01dfd1619a

View File

@@ -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;