X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=include%2Fsound.h;h=155e1b40e28a1c91e9a6f8b228b46a12ff3c30c0;hb=e856bdcfb49291d30b19603fc101bea096c48196;hp=a06ab853869faef2137c18e290c2c0308bd625c7;hpb=1a4596601fd395f3afb8f82f3f840c5e00bdd57a;p=people%2Fms%2Fu-boot.git diff --git a/include/sound.h b/include/sound.h index a06ab85386..155e1b40e2 100644 --- a/include/sound.h +++ b/include/sound.h @@ -29,6 +29,15 @@ struct sound_codec_info { enum en_sound_codec codec_type; }; +/* + * Generates square wave sound data for 1 second + * + * @param data data buffer pointer + * @param size size of the buffer + * @param freq frequency of the wave + */ +void sound_create_square_wave(unsigned short *data, int size, uint32_t freq); + /* * Initialises audio sub system * @param blob Pointer of device tree node or NULL if none.