X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=include%2Fsound.h;h=155e1b40e28a1c91e9a6f8b228b46a12ff3c30c0;hb=637b84ce3094c73f1c6c34376af93a81e18ed4bf;hp=94922f66daeaf6d5a56c3722d243eeeb254d9f8a;hpb=412665b46134f93464c09405e02f08ac9c62526d;p=karo-tx-uboot.git diff --git a/include/sound.h b/include/sound.h index 94922f66da..155e1b40e2 100644 --- a/include/sound.h +++ b/include/sound.h @@ -2,23 +2,7 @@ * Copyright (C) 2012 Samsung Electronics * R. Chandrasekar < rcsekar@samsung.com> * - * See file CREDITS for list of people who contributed to this - * project. - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, - * MA 02111-1307 USA + * SPDX-License-Identifier: GPL-2.0+ */ #ifndef __SOUND_H__ @@ -45,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.