From mboxrd@z Thu Jan 1 00:00:00 1970 From: sjg at google.com Date: Fri, 14 Dec 2018 07:38:54 -0800 Subject: [U-Boot] [PATCH v2 06/22] dm: sandbox: Update sound to use two buffers In-Reply-To: <20181210173751.177266-7-sjg@chromium.org> References: <20181210173751.177266-7-sjg@chromium.org> <20181210173751.177266-1-sjg@chromium.org> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de At present we use a single buffer for sound which means we cannot be playing one sound while queueing up the next. This wouldn't matter except that a long sound (more than a second) has to be created as a single buffer, thus using a lot of memory. To better mimic what real sound drivers do, add support for double buffering in sandbox. Signed-off-by: Simon Glass --- Changes in v2: None arch/sandbox/cpu/sdl.c | 88 ++++++++++++++++++++++++++++++------------ 1 file changed, 63 insertions(+), 25 deletions(-) Applied to u-boot-dm/master