mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 23:12:44 +02:00
supplement to commit f4ef056
- libarm clipplay-retry, thx DboxOldie
Origin commit data
------------------
Branch: master
Commit: 34ad9b44cf
Author: GetAway <get-away@t-online.de>
Date: 2019-10-23 (Wed, 23 Oct 2019)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -308,7 +308,7 @@ int cAudio::WriteClip(unsigned char *buffer, int size)
|
|||||||
hal_info("%s: clipfd not yet opened\n", __FUNCTION__);
|
hal_info("%s: clipfd not yet opened\n", __FUNCTION__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
#if BOXMODEL_HD51
|
#if BOXMODEL_HD51 || BOXMODEL_BRE2ZE4K || BOXMODEL_H7
|
||||||
again:
|
again:
|
||||||
#endif
|
#endif
|
||||||
ret = write(clipfd, buffer, size);
|
ret = write(clipfd, buffer, size);
|
||||||
@@ -316,7 +316,7 @@ again:
|
|||||||
hal_info("%s: write error (%m)\n", __FUNCTION__);
|
hal_info("%s: write error (%m)\n", __FUNCTION__);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
#if BOXMODEL_HD51
|
#if BOXMODEL_HD51 || BOXMODEL_BRE2ZE4K || BOXMODEL_H7
|
||||||
if (ret != size) {
|
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);
|
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))
|
if (ioctl(clipfd, SNDCTL_DSP_RESET))
|
||||||
|
Reference in New Issue
Block a user