mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-08 14:38:22 +01:00
speaker-test: Don't retry after fatal errors
Fixup commit 9b1a2566
: Remove error loop
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
1ae28cae89
commit
b67d215d20
1 changed files with 2 additions and 2 deletions
|
@ -993,9 +993,9 @@ int main(int argc, char *argv[]) {
|
|||
|
||||
}
|
||||
|
||||
while ((err = snd_pcm_open(&handle, device, SND_PCM_STREAM_PLAYBACK, 0)) < 0) {
|
||||
if ((err = snd_pcm_open(&handle, device, SND_PCM_STREAM_PLAYBACK, 0)) < 0) {
|
||||
printf(_("Playback open error: %d,%s\n"), err,snd_strerror(err));
|
||||
sleep(1);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
if ((err = set_hwparams(handle, hwparams, SND_PCM_ACCESS_RW_INTERLEAVED)) < 0) {
|
||||
|
|
Loading…
Reference in a new issue