ALSA: pcmtest: Add support for pcm pausing
authorIvan Orlov <ivan.orlov0322@gmail.com>
Tue, 22 Aug 2023 15:05:41 +0000 (19:05 +0400)
committerTakashi Iwai <tiwai@suse.de>
Thu, 24 Aug 2023 07:58:22 +0000 (09:58 +0200)
commit22459ef3a9dea5249c250b30046c3b31cc684da9
tree273c752ba8efffca4d7839dd358ac3704296990c
parent93dc18e11b1ab2d485b69f91c973e6b83e47ebd0
ALSA: pcmtest: Add support for pcm pausing

Add pause push/release support to the virtual PCM test driver. Add
'suspend' boolean field to the pcmtst_buf_iter structure, so we can
pause the timer without shutting it down. Update the trigger callback
handler correspondingly. Extract buffer initialization to the
'reset_buf_iterator' function since it is used in multiple places now.

Signed-off-by: Ivan Orlov <ivan.orlov0322@gmail.com>
Link: https://lore.kernel.org/r/20230822150541.8450-1-ivan.orlov0322@gmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/drivers/pcmtest.c