diff options
author | Simon Glass | 2018-12-10 10:37:47 -0700 |
---|---|---|
committer | Simon Glass | 2018-12-13 16:36:41 -0700 |
commit | f2b25c9bf8212139f43ded090c78d604babc4337 (patch) | |
tree | 8da5a8bcb40cf982708cfb9af886f94c9f6364c1 /include | |
parent | 1e224fef9446e8c0cde57636dd8a36d0ebc85437 (diff) |
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')
-rw-r--r-- | include/sound.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/include/sound.h b/include/sound.h index c94d2c37265..02acefd34f0 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__ */ |