commit | a5c75ceca0280068f5ac4b459aa04479dd734834 | [log] [tgz] |
---|---|---|
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | Sun Dec 04 14:00:05 2022 +0100 |
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | Mon Dec 05 17:43:21 2022 +0100 |
tree | 6986a7653c006895bd23fc7b9eef06dd3749f08a | |
parent | 868a9be5de4d8d14535857c762053193e004029f [diff] |
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: 511ed5fdd389 ("SOUND: SAMSUNG: Add I2S driver") Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Simon Glass <sjg@chromium.org>