mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user