]> git.sur5r.net Git - u-boot/blobdiff - include/sound.h
SPDX: Convert all of our single license tags to Linux Kernel style
[u-boot] / include / sound.h
index a06ab853869faef2137c18e290c2c0308bd625c7..3269f2371c3b1bce18ea3762177f8cf2b7ce1df3 100644 (file)
@@ -1,8 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
 /*
  * Copyright (C) 2012 Samsung Electronics
  * R. Chandrasekar < rcsekar@samsung.com>
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #ifndef __SOUND_H__
@@ -29,6 +28,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.