2 * Copyright (C) 2012 Samsung Electronics
3 * R. Chandrasekar < rcsekar@samsung.com>
5 * SPDX-License-Identifier: GPL-2.0+
11 /* sound codec enum */
19 /* sound codec enum */
25 /* Codec information structure to store the info from device tree */
26 struct sound_codec_info {
29 enum en_sound_codec codec_type;
33 * Generates square wave sound data for 1 second
35 * @param data data buffer pointer
36 * @param size size of the buffer
37 * @param freq frequency of the wave
39 void sound_create_square_wave(unsigned short *data, int size, uint32_t freq);
42 * Initialises audio sub system
43 * @param blob Pointer of device tree node or NULL if none.
44 * @return int value 0 for success, -1 for error
46 int sound_init(const void *blob);
49 * plays the pcm data buffer in pcm_data.h through i2s1 to make the
52 * @return int 0 for success, -1 for error
54 int sound_play(uint32_t msec, uint32_t frequency);
56 #endif /* __SOUND__H__ */