[U-Boot] [PATCH 2/4] sound: Add sample rate as a parameter for square wave

sjg at google.com sjg at google.com
Thu Nov 29 17:40:18 UTC 2018


At present this value is hard-coded in the function that generates a
square wave. Since sample rates vary between different hardware, it makes
more sense to have this as a parameter.

Update the function and its users.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 arch/sandbox/cpu/sdl.c    | 2 +-
 drivers/sound/sound-i2s.c | 3 ++-
 drivers/sound/sound.c     | 6 +++---
 include/sound.h           | 4 +++-
 4 files changed, 9 insertions(+), 6 deletions(-)

Applied to u-boot-dm/master, thanks!


More information about the U-Boot mailing list