summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJeff Epler <jepler@gmail.com>2019-08-06 21:59:16 -0500
committerJeff Epler <jepler@gmail.com>2019-08-06 22:00:31 -0500
commit39c64bf83c49571f572f3bc7ad91c10749ae3943 (patch)
tree065d1f7016f0cdbd874f64709dd6efeb0d19b1c9 /lib
parent8b717955ba198ff38d5122a32f3a3c277bbb3738 (diff)
samd: audio_dma_stop: don't free invalid channel
audio_dma_stop can be reached twice in normal usage of AudioOut. This may bear further investigation, but stop it here, by making the function check for a previously freed channel number. This also prevents the event channel from being disabled twice. The first stop location is from audio_dma_get_playing, when the buffers are exhausted; the second is from common_hal_audioio_audioout_stop when checking the 'playing' flag.
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions