Fixed cDvbDevice::SetAudioBypass() in case setTransferModeForDolbyDigital is false

This commit is contained in:
Klaus Schmidinger 2006-03-19 12:37:03 +01:00
parent 2eab16a310
commit bcacfad057
3 changed files with 7 additions and 1 deletions

View File

@ -307,6 +307,8 @@ Werner Fink <werner@suse.de>
for enabling a device to detach all receivers for a given PID for enabling a device to detach all receivers for a given PID
for modifying switching to Dolby Digital audio in live mode, if the driver for modifying switching to Dolby Digital audio in live mode, if the driver
and firmware can handle live DD without the need of a Transfer Mode and firmware can handle live DD without the need of a Transfer Mode
for fixing cDvbDevice::SetAudioBypass() in case setTransferModeForDolbyDigital is
false
Rolf Hakenes <hakenes@hippomi.de> Rolf Hakenes <hakenes@hippomi.de>
for providing 'libdtv' and adapting the EIT mechanisms to it for providing 'libdtv' and adapting the EIT mechanisms to it

View File

@ -4426,3 +4426,5 @@ Video Disk Recorder Revision History
Christoph Haubrich for reporting that this is irritating when calling "vdr --help"). Christoph Haubrich for reporting that this is irritating when calling "vdr --help").
- Fixed cReadLine::Read() for lines that end with the infamous "\r\n" (thanks to - Fixed cReadLine::Read() for lines that end with the infamous "\r\n" (thanks to
Rolf Ahrenberg). Rolf Ahrenberg).
- Fixed cDvbDevice::SetAudioBypass() in case setTransferModeForDolbyDigital is false
(thanks to Werner Fink).

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and * See the main source file 'vdr.c' for copyright information and
* how to reach the author. * how to reach the author.
* *
* $Id: dvbdevice.c 1.153 2006/02/19 13:52:04 kls Exp $ * $Id: dvbdevice.c 1.154 2006/03/19 12:34:24 kls Exp $
*/ */
#include "dvbdevice.h" #include "dvbdevice.h"
@ -653,6 +653,8 @@ eVideoSystem cDvbDevice::GetVideoSystem(void)
bool cDvbDevice::SetAudioBypass(bool On) bool cDvbDevice::SetAudioBypass(bool On)
{ {
if (!setTransferModeForDolbyDigital)
return false;
return ioctl(fd_audio, AUDIO_SET_BYPASS_MODE, On) == 0; return ioctl(fd_audio, AUDIO_SET_BYPASS_MODE, On) == 0;
} }