From 621f2f5e83b71c9f93d8aeb4130bfb2bcda9eee7 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 25 Feb 2018 18:39:39 -0600 Subject: [PATCH] apps/graphics/ft80x: Fix an incorrect size adjustment. --- graphics/ft80x/ft80x_audio.c | 5 +++-- graphics/ft80x/ft80x_ramcmd.c | 3 +-- graphics/ft80x/ft80x_ramg.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/graphics/ft80x/ft80x_audio.c b/graphics/ft80x/ft80x_audio.c index ce4c0e6d8..e97077518 100644 --- a/graphics/ft80x/ft80x_audio.c +++ b/graphics/ft80x/ft80x_audio.c @@ -288,9 +288,10 @@ int ft80x_audio_playfile(int fd, FAR struct ft80x_dlbuffer_s *buffer, while (freespace < MAX_DLBUFFER || freespace < remaining); } - /* Mute the sound clearing buffer. + /* Mute the sound clearing by clearing RAM_G after the current offset. + * * REVISIT: There is an ugly hack into the display list logic in the - * following 8( + * following 8( I also suspect that the logic is not even correct. */ memset.cmd = FT80X_CMD_MEMSET; diff --git a/graphics/ft80x/ft80x_ramcmd.c b/graphics/ft80x/ft80x_ramcmd.c index 46bb4d4f5..1b006513f 100644 --- a/graphics/ft80x/ft80x_ramcmd.c +++ b/graphics/ft80x/ft80x_ramcmd.c @@ -165,9 +165,8 @@ int ft80x_ramcmd_append(int fd, FAR struct ft80x_dlbuffer_s *buffer, } } - /* Set up for the next time through the loop */ + /* Set up for the next time through the loop. */ - buffer->dlsize += wrsize; remaining -= wrsize; src += wrsize; } diff --git a/graphics/ft80x/ft80x_ramg.c b/graphics/ft80x/ft80x_ramg.c index 4c3064dcf..614bd9a50 100644 --- a/graphics/ft80x/ft80x_ramg.c +++ b/graphics/ft80x/ft80x_ramg.c @@ -95,4 +95,4 @@ int ft80x_ramg_write(int fd, unsigned int offset, FAR const void *data, } return OK; -} \ No newline at end of file +}