예제 #1
0
static DWORD DRV_PIDOnOff(
	void	*handle, 
	BYTE	ucSlaveDemod,
	DWORD	dwOnOff)
{
	DWORD dwError = Error_NO_ERROR;
	PDEVICE_CONTEXT pdc = (PDEVICE_CONTEXT)handle;

	if(dwOnOff)
	{
        dwError = Demodulator_controlPidFilter ((Demodulator*) &pdc->Demodulator, ucSlaveDemod, 1);
	}
	else
	{
        dwError = Demodulator_controlPidFilter ((Demodulator*) &pdc->Demodulator, ucSlaveDemod, 0);
	}

	return dwError;
}
예제 #2
0
/**
 * Enables or disabled the internal PID filter of a demod. If it is disabled,
 * the complete MPEG2 Transport is put out otherwise only selected PIDs are
 * passed through (see demod_pid_filter).
 *
 * \param onoff 0 = disable PID filter (default), 1 = enable
 */
int  ITE9133_pid_filter_ctrl(uint8_t onoff)
{
    Demodulator_controlPidFilter (&Global_demod, onoff);

    return 1;	
}