mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-26 23:13:16 +02:00
libarmbox/audio: e4hdultra fix
This commit is contained in:
@@ -323,7 +323,7 @@ int cAudio::PrepareClipPlay(int ch, int srate, int bits, int little_endian)
|
|||||||
perror("SNDCTL_DSP_CHANNELS");
|
perror("SNDCTL_DSP_CHANNELS");
|
||||||
if (ioctl(clipfd, SNDCTL_DSP_SPEED, &srate))
|
if (ioctl(clipfd, SNDCTL_DSP_SPEED, &srate))
|
||||||
perror("SNDCTL_DSP_SPEED");
|
perror("SNDCTL_DSP_SPEED");
|
||||||
#if !BOXMODEL_HD51 && !BOXMODEL_BRE2ZE4K && !BOXMODEL_H7
|
#if !BOXMODEL_HD51 && !BOXMODEL_BRE2ZE4K && !BOXMODEL_H7 && !BOXMODEL_E4HDULTRA
|
||||||
if (ioctl(clipfd, SNDCTL_DSP_RESET))
|
if (ioctl(clipfd, SNDCTL_DSP_RESET))
|
||||||
perror("SNDCTL_DSP_RESET");
|
perror("SNDCTL_DSP_RESET");
|
||||||
#endif
|
#endif
|
||||||
@@ -394,7 +394,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 || BOXMODEL_BRE2ZE4K || BOXMODEL_H7
|
#if BOXMODEL_HD51 || BOXMODEL_BRE2ZE4K || BOXMODEL_H7 || BOXMODEL_E4HDULTRA
|
||||||
again:
|
again:
|
||||||
#endif
|
#endif
|
||||||
ret = write(clipfd, buffer, size);
|
ret = write(clipfd, buffer, size);
|
||||||
@@ -403,7 +403,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 || BOXMODEL_BRE2ZE4K || BOXMODEL_H7
|
#if BOXMODEL_HD51 || BOXMODEL_BRE2ZE4K || BOXMODEL_H7 || BOXMODEL_E4HDULTRA
|
||||||
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);
|
||||||
|
Reference in New Issue
Block a user