sound: Add a new stop_play() method
authorSimon Glass <sjg@chromium.org>
Mon, 3 Feb 2020 14:36:06 +0000 (07:36 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 6 Feb 2020 02:33:46 +0000 (19:33 -0700)
commit3062cd17af35b691582230c382dd125625d3b7ca
tree2fda0d01ece1da65ea3e0dd0d7790e2129aaa064
parent3ff6fe5fab11a99d4b3ec94a8a4a238d6f96f5ba
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>
arch/sandbox/include/asm/test.h
drivers/sound/sandbox.c
drivers/sound/sound-uclass.c
include/sound.h
test/dm/sound.c