]> git.dujemihanovic.xyz Git - u-boot.git/commit
sound: Add sample rate as a parameter for square wave
authorSimon Glass <sjg@chromium.org>
Fri, 16 Nov 2018 02:56:13 +0000 (19:56 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 29 Nov 2018 16:30:05 +0000 (09:30 -0700)
commit7d92b0609093a047ce4b113d77ccd3cc78325e8f
tree4afa25f53b27bf4f76cac7e0a80ef8bb1de36242
parent03f11e87a86307903f40e74495936184063bab79
sound: Add sample rate as a parameter for square wave

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@chromium.org>
arch/sandbox/cpu/sdl.c
drivers/sound/sound-i2s.c
drivers/sound/sound.c
include/sound.h