summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-02-03 17:36:06 +0300
committerSimon Glass <sjg@chromium.org>2020-02-06 05:33:46 +0300
commit3062cd17af35b691582230c382dd125625d3b7ca (patch)
tree2fda0d01ece1da65ea3e0dd0d7790e2129aaa064 /arch
parent3ff6fe5fab11a99d4b3ec94a8a4a238d6f96f5ba (diff)
downloadu-boot-3062cd17af35b691582230c382dd125625d3b7ca.tar.xz
sound: Add a new stop_play() method
At present there is no positive indication that U-Boot has finished sending sound data. This means that it is not possible to power down an audio codec, for example. Add a new method that is called once all sound data has been sent. Add a new method for this, called when the sound_play() call is done. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/sandbox/include/asm/test.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/sandbox/include/asm/test.h b/arch/sandbox/include/asm/test.h
index 2421922c9e..92ff494453 100644
--- a/arch/sandbox/include/asm/test.h
+++ b/arch/sandbox/include/asm/test.h
@@ -166,6 +166,13 @@ int sandbox_get_i2s_sum(struct udevice *dev);
int sandbox_get_setup_called(struct udevice *dev);
/**
+ * sandbox_get_sound_active() - Returns whether sound play is in progress
+ *
+ * @return true if active, false if not
+ */
+int sandbox_get_sound_active(struct udevice *dev);
+
+/**
* sandbox_get_sound_sum() - Read back the sum of the sound data so far
*
* This data is provided to the sandbox driver by the sound play() method.