diff options
author | Simon Glass <sjg@chromium.org> | 2014-02-27 13:26:20 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2014-03-17 20:05:49 -0600 |
commit | a77bf70978a42e94790a8bc81941edc1026939ce (patch) | |
tree | 9481c2ad1393db98a271fde6557c227eb0fbe1a3 /include/sound.h | |
parent | 7d95f2a329c964b54cf505503a61e8fd4f12e2a3 (diff) | |
download | u-boot-imx-a77bf70978a42e94790a8bc81941edc1026939ce.zip u-boot-imx-a77bf70978a42e94790a8bc81941edc1026939ce.tar.gz u-boot-imx-a77bf70978a42e94790a8bc81941edc1026939ce.tar.bz2 |
sound: Move Samsung-specific code into its own file
The i2s code is in fact Samsung-specific, but there might be other
implementation. Move this code into its own file. This makes it slightly
more obviously how to adjust the code to support another SoC, when someone
takes this task on.
Also drop non-FDT support, since it isn't used on Exynos 5.
Tested-by: Che-Liang Chiou <clchiou@chromium.org>
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/sound.h')
-rw-r--r-- | include/sound.h | 9 |
1 files changed, 9 insertions, 0 deletions
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 |