示例#1
0
文件: v4lhelper.cpp 项目: Kr0nZ/boxee
DvbTunerTechnicalInfo V4LHelper::GetTechnicalInfo()
{
  DvbTunerTechnicalInfo result;
  memset(&result, 0, sizeof(result));

  if (m_frontendHandle == -1)
    return result;

  fe_status_t status;

  if (ioctl(m_frontendHandle, FE_READ_STATUS, &status) >= 0)
  {
    result.fe_status = (unsigned int) status;
  }

  result.signal = GetSignal();
  result.snr = GetSNR();
  result.ber = GetBER();
  result.ucb = GetUCB();

  return result;

}
示例#2
0
static int dvbfe_read_ber(struct dvb_frontend* fe, u32* ber)
{
	DECLARE_DEV;
	DBG_fCDVBFE("calling GetBER()\n");
	return GetBER(p->context, ber);
}