]> git.baikalelectronics.ru Git - uboot.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)
commita4e0a5fff2ef90d03118eb96a43e52d89057c36d
tree4afa25f53b27bf4f76cac7e0a80ef8bb1de36242
parentbfe7cabd062c9fa2fae5e04861ddc34c4366e985
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