X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=include%2Fsound.h;h=71bd850652e4421a27244978b60258345cc027cf;hb=dc18413adbf188ffdfb0706023249e7c03b29545;hp=47de9fa3ed3ac70245cbedac9f811d2410009c31;hpb=2850266965ade165f913a66f679a0449faf21180;p=oweals%2Fu-boot.git diff --git a/include/sound.h b/include/sound.h index 47de9fa3ed..71bd850652 100644 --- a/include/sound.h +++ b/include/sound.h @@ -68,6 +68,18 @@ struct sound_ops { */ int (*play)(struct udevice *dev, void *data, uint data_size); + /** + * stop_play() - Indicate that there is no more data coming + * + * This is called once play() has finished sending all the data to the + * output device. This may be used to tell the hardware to turn off the + * codec, for example. + * + * @dev: Sound device + * @return 0 if OK, -ve on error + */ + int (*stop_play)(struct udevice *dev); + /** * start_beep() - Start beeping (optional) *