From 2c97ff00cd90b3912241d03799e542b4faa5f540 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Thu, 24 Oct 2019 23:20:31 +0200 Subject: [PATCH] fix SNDCTL_DSP_RESET handling for bre2ze4k and h7 Origin commit data ------------------ Branch: master Commit: https://github.com/neutrino-images/ni-libstb-hal/commit/413a45ff61ac63d43181df89094c20688c6616f2 Author: vanhofen Date: 2019-10-24 (Thu, 24 Oct 2019) Origin message was: ------------------ - fix SNDCTL_DSP_RESET handling for bre2ze4k and h7 ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- libarmbox/audio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libarmbox/audio.cpp b/libarmbox/audio.cpp index 2c2e762..ba896aa 100644 --- a/libarmbox/audio.cpp +++ b/libarmbox/audio.cpp @@ -246,7 +246,7 @@ int cAudio::PrepareClipPlay(int ch, int srate, int bits, int little_endian) perror("SNDCTL_DSP_CHANNELS"); if (ioctl(clipfd, SNDCTL_DSP_SPEED, &srate)) perror("SNDCTL_DSP_SPEED"); -#if !BOXMODEL_HD51 +#if !BOXMODEL_HD51 && !BOXMODEL_BRE2ZE4K && !BOXMODEL_H7 if (ioctl(clipfd, SNDCTL_DSP_RESET)) perror("SNDCTL_DSP_RESET"); #endif