X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Fsound.h;h=3269f2371c3b1bce18ea3762177f8cf2b7ce1df3;hb=19ca29f3ff5811e058360aa275208d219b3078c2;hp=ea0b1158f80ba682529a5588efe4bd5993b5575d;hpb=b8a7c467960ffb4d5a5e1eef5f7783fb6f594542;p=platform%2Fkernel%2Fu-boot.git diff --git a/include/sound.h b/include/sound.h index ea0b115..3269f23 100644 --- a/include/sound.h +++ b/include/sound.h @@ -1,24 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ /* * 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 */ #ifndef __SOUND_H__ @@ -28,6 +11,7 @@ enum en_sound_codec { CODEC_WM_8994, CODEC_WM_8995, + CODEC_MAX_98095, CODEC_MAX }; @@ -45,11 +29,20 @@ struct sound_codec_info { }; /* - * Initialises audio sub system + * 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 */ -int sound_init(void); +int sound_init(const void *blob); /* * plays the pcm data buffer in pcm_data.h through i2s1 to make the