From 6e1b8335224e76794e336b20ca4d66f6705f4b03 Mon Sep 17 00:00:00 2001 From: GetAway Date: Wed, 23 Oct 2019 22:43:12 +0200 Subject: [PATCH] supplement to commit f4ef056 - libarm clipplay-retry, thx DboxOldie --- libarmbox/audio.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libarmbox/audio.cpp b/libarmbox/audio.cpp index e2c331b..91bc5de 100644 --- a/libarmbox/audio.cpp +++ b/libarmbox/audio.cpp @@ -308,7 +308,7 @@ int cAudio::WriteClip(unsigned char *buffer, int size) hal_info("%s: clipfd not yet opened\n", __FUNCTION__); return -1; } -#if BOXMODEL_HD51 +#if BOXMODEL_HD51 || BOXMODEL_BRE2ZE4K || BOXMODEL_H7 again: #endif ret = write(clipfd, buffer, size); @@ -316,7 +316,7 @@ again: hal_info("%s: write error (%m)\n", __FUNCTION__); return ret; } -#if BOXMODEL_HD51 +#if BOXMODEL_HD51 || BOXMODEL_BRE2ZE4K || BOXMODEL_H7 if (ret != size) { hal_info("cAudio::%s: difference > to write (%d) != written (%d) try (%d) > reset dsp and restart write\n", __FUNCTION__, size, ret, count); if (ioctl(clipfd, SNDCTL_DSP_RESET))