Removed checking of rx vga gain (compare requested value with actual value) when changing it in radio interface: the value set in the board is rounded to a multiple of 3.

git-svn-id: http://yate.null.ro/svn/yate/trunk@6126 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
marian 2016-07-08 07:58:23 +00:00
parent 96d4c7af10
commit 549739060e
1 changed files with 1 additions and 12 deletions

View File

@ -9534,18 +9534,7 @@ unsigned int BrfInterface::setRxGain(int val, unsigned port, bool preMixer)
unsigned int status = m_dev->enableRxVga(true,preMixer);
if (status)
return status;
status = m_dev->setRxVga(val,preMixer);
if (status)
return status;
int tmp = 0;
status = m_dev->getRxVga(tmp,preMixer);
if (status)
return status;
if (tmp == val)
return NoError;
Debug(this,DebugNote,"Failed to set RX VGA%c requested=%d read=%d [%p]",
mixer(preMixer),val,tmp,this);
return NotExact;
return m_dev->setRxVga(val,preMixer);
}
unsigned int BrfInterface::setTxGain(int val, unsigned port, bool preMixer)