Skip to content
Commit d0e8777b authored by Heinrich Schuchardt's avatar Heinrich Schuchardt
Browse files

sound: avoid endless loop



'sound play 1 100000' results in an endless loop on the sandbox.

If the frequency exceeds half the sampling rate, zero out the output
buffer.

Fixes: 511ed5fd ("SOUND: SAMSUNG: Add I2S driver")
Signed-off-by: default avatarHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
parent a50622d7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment