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)
commit856b8f5629700fc329ea08b071ad04ecc377aea5
treee10d0199e5298d27eefb4355fd57fea7b26cf954
parent7d92b0609093a047ce4b113d77ccd3cc78325e8f
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