mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 23:12:44 +02:00
rework VUPLUS defines
Origin commit data
------------------
Branch: master
Commit: 99de5b6be0
Author: vanhofen <vanhofen@gmx.de>
Date: 2020-06-12 (Fri, 12 Jun 2020)
Origin message was:
------------------
- rework VUPLUS defines
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
30
acinclude.m4
30
acinclude.m4
@@ -305,26 +305,38 @@ fi
|
|||||||
# all vuplus BOXMODELs
|
# all vuplus BOXMODELs
|
||||||
case "$BOXMODEL" in
|
case "$BOXMODEL" in
|
||||||
vusolo4k|vuduo4k|vuultimo4k|vuuno4k|vuuno4kse|vuzero4k|vuduo)
|
vusolo4k|vuduo4k|vuultimo4k|vuuno4k|vuuno4kse|vuzero4k|vuduo)
|
||||||
AC_DEFINE(BOXMODEL_VUPLUS, 1, [vuplus])
|
AC_DEFINE(BOXMODEL_VUPLUS_ALL, 1, [vuplus_all])
|
||||||
vuplus=true
|
vuplus_all=true
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
vuplus=false
|
vuplus_all=false
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
AM_CONDITIONAL(BOXMODEL_VUPLUS, test "$vuplus" = "true")
|
AM_CONDITIONAL(BOXMODEL_VUPLUS_ALL, test "$vuplus_all" = "true")
|
||||||
|
|
||||||
# all vuplus4k BOXMODELs
|
# all vuplus arm BOXMODELs
|
||||||
case "$BOXMODEL" in
|
case "$BOXMODEL" in
|
||||||
vusolo4k|vuduo4k|vuultimo4k|vuuno4k|vuuno4kse|vuzero4k)
|
vusolo4k|vuduo4k|vuultimo4k|vuuno4k|vuuno4kse|vuzero4k)
|
||||||
AC_DEFINE(BOXMODEL_VUPLUS4K, 1, [vuplus4k])
|
AC_DEFINE(BOXMODEL_VUPLUS_ARM, 1, [vuplus_arm])
|
||||||
vuplus4k=true
|
vuplus_arm=true
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
vuplus4k=false
|
vuplus_arm=false
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
AM_CONDITIONAL(BOXMODEL_VUPLUS4K, test "$vuplus4k" = "true")
|
AM_CONDITIONAL(BOXMODEL_VUPLUS_ARM, test "$vuplus_arm" = "true")
|
||||||
|
|
||||||
|
# all vuplus mips BOXMODELs
|
||||||
|
case "$BOXMODEL" in
|
||||||
|
vuduo)
|
||||||
|
AC_DEFINE(BOXMODEL_VUPLUS_MIPS, 1, [vuplus_mips])
|
||||||
|
vuplus_mips=true
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
vuplus_mips=false
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
AM_CONDITIONAL(BOXMODEL_VUPLUS_MIPS, test "$vuplus_mips" = "true")
|
||||||
])
|
])
|
||||||
|
|
||||||
dnl backward compatiblity
|
dnl backward compatiblity
|
||||||
|
@@ -1944,7 +1944,7 @@ void cCA::SetTSClock(u32 Speed, int slot)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if BOXMODEL_VUPLUS
|
#if BOXMODEL_VUPLUS_ALL
|
||||||
void cCA::SetCIDelay(int Delay)
|
void cCA::SetCIDelay(int Delay)
|
||||||
{
|
{
|
||||||
char buf[64];
|
char buf[64];
|
||||||
|
@@ -329,7 +329,7 @@ public:
|
|||||||
/// sh4 unused
|
/// sh4 unused
|
||||||
void SetTSClock(u32 Speed, int slot = 0);
|
void SetTSClock(u32 Speed, int slot = 0);
|
||||||
|
|
||||||
#if BOXMODEL_VUPLUS
|
#if BOXMODEL_VUPLUS_ALL
|
||||||
/// dvb wait delay for ci response
|
/// dvb wait delay for ci response
|
||||||
void SetCIDelay(int Delay);
|
void SetCIDelay(int Delay);
|
||||||
/// relevant pids routing
|
/// relevant pids routing
|
||||||
|
@@ -96,7 +96,7 @@ int map_volume(const int volume)
|
|||||||
vol = 63 - vol * 63 / 100;
|
vol = 63 - vol * 63 / 100;
|
||||||
// now range is 63..0, where 0 is loudest
|
// now range is 63..0, where 0 is loudest
|
||||||
|
|
||||||
#if BOXMODEL_VUPLUS4K
|
#if BOXMODEL_VUPLUS_ALL
|
||||||
if (vol == 63)
|
if (vol == 63)
|
||||||
vol = 255;
|
vol = 255;
|
||||||
#endif
|
#endif
|
||||||
@@ -343,7 +343,7 @@ int cAudio::StopClip()
|
|||||||
hal_info("%s: clipfd not yet opened\n", __FUNCTION__);
|
hal_info("%s: clipfd not yet opened\n", __FUNCTION__);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
#if BOXMODEL_VUPLUS4K
|
#if BOXMODEL_VUPLUS_ARM
|
||||||
ioctl(clipfd, SNDCTL_DSP_RESET);
|
ioctl(clipfd, SNDCTL_DSP_RESET);
|
||||||
#endif
|
#endif
|
||||||
close(clipfd);
|
close(clipfd);
|
||||||
|
Reference in New Issue
Block a user