Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove unused HasLock call on tuner that is not yet tuned
In DVBSignalMonitor::DVBSignalMonitor function HasLock is called. At the time the function is called the tuner has not been tuned yet so checking for the lock status is not useful. There is nothing done with the results of this call except giving an error message if the call fails. The reason to remove this call is that the frontend "Silicon Labs Si2168", used in the MyGica T230, returns the EREMOTEIO error on FE_READ_STATUS if the tuner is not tuned. Refs #13447
- Loading branch information
e0844ea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it make more sense to handle the EREMOTEIO on the read status?
e0844ea
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Handling EREMOTEIO in HasLock would also block the error messages when they are useful. Handling EREMOTEIO here in DVBSignalMonitor would defeat the only visible purpose of this code, which is to give an error message if it fails. If the purpose of the HasLock call is an undocumented side effect for specific tuners then it is possible to do an ioctl FE_READ_STATUS here, without error messages, instead of calling HasLock.