summaryrefslogtreecommitdiff
path: root/include/sound.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2018-12-10 20:37:47 +0300
committerSimon Glass <sjg@chromium.org>2018-12-14 02:36:41 +0300
commitf2b25c9bf8212139f43ded090c78d604babc4337 (patch)
tree8da5a8bcb40cf982708cfb9af886f94c9f6364c1 /include/sound.h
parent1e224fef9446e8c0cde57636dd8a36d0ebc85437 (diff)
downloadu-boot-f2b25c9bf8212139f43ded090c78d604babc4337.tar.xz
dm: sound: Complete migration to driver model
All users of sound are converted to use driver model. Drop the old code and the CONFIG_DM_SOUND option. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/sound.h')
-rw-r--r--include/sound.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/include/sound.h b/include/sound.h
index c94d2c3726..02acefd34f 100644
--- a/include/sound.h
+++ b/include/sound.h
@@ -46,14 +46,6 @@ void sound_create_square_wave(uint sample_rate, unsigned short *data, int size,
uint 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(const void *blob);
-
-#ifdef CONFIG_DM_SOUND
-/*
* The sound uclass brings together a data transport (currently only I2C) and a
* codec (currently connected over I2C).
*/
@@ -101,14 +93,4 @@ int sound_beep(struct udevice *dev, int msecs, int frequency_hz);
*/
int sound_find_codec_i2s(struct udevice *dev);
-#else
-/*
- * plays the pcm data buffer in pcm_data.h through i2s1 to make the
- * sine wave sound
- *
- * @return int 0 for success, -1 for error
- */
-int sound_play(uint32_t msec, uint32_t frequency);
-#endif /* CONFIG_DM_SOUND */
-
#endif /* __SOUND__H__ */