ALSA: pcmtest: Move buffer iterator initialization to prepare callback
authorIvan Orlov <ivan.orlov0322@gmail.com>
Fri, 4 Aug 2023 11:07:39 +0000 (15:07 +0400)
committerTakashi Iwai <tiwai@suse.de>
Tue, 8 Aug 2023 12:44:42 +0000 (14:44 +0200)
commit205b96e307480e0484894b619c481fac5b6653e6
treecdcd275e4033585058c916cc01f4a61412e04499
parentd700a11633502a9b4effcf8be4c43c25c7168c87
ALSA: pcmtest: Move buffer iterator initialization to prepare callback

Trigger callback is not the best place for buffer iterator
initialization, so move it out to the prepare callback, where it
have to be.

Minor enhancement: remove blank line.

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