]> git.baikalelectronics.ru Git - uboot.git/commit
sound: sandbox: Use the correct frequency
authorSimon Glass <sjg@chromium.org>
Fri, 16 Nov 2018 02:56:14 +0000 (19:56 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 29 Nov 2018 16:30:05 +0000 (09:30 -0700)
commitc1e517d6583c22c061b2e26bf416d656acbb520e
treee10d0199e5298d27eefb4355fd57fea7b26cf954
parenta4e0a5fff2ef90d03118eb96a43e52d89057c36d
sound: sandbox: Use the correct frequency

At present we request a particular frequency but we may not get the exact
same frequency in response. So use the actual frequency for generation of
the square wave. This ensures that the pitch remains accurate on all host
machines.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/sandbox/cpu/sdl.c