X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Fsound.h;h=155e1b40e28a1c91e9a6f8b228b46a12ff3c30c0;hb=2d8d190c8394b43c0989cdb04a50cb48d4e1f8da;hp=a06ab853869faef2137c18e290c2c0308bd625c7;hpb=3be2bdf5dc69b3142c1162a59bc67191c9077567;p=platform%2Fkernel%2Fu-boot.git diff --git a/include/sound.h b/include/sound.h index a06ab85..155e1b4 100644 --- a/include/sound.h +++ b/include/sound.h @@ -30,6 +30,15 @@ struct sound_codec_info { }; /* + * 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. * @return int value 0 for success, -1 for error