<div dir="ltr">Hi All,<br><br>A question regarding the error code returned from the driver when using DTV_TUNE property.<br>Following the code I came to dvb_frontend_ioctl_legacy function and reached the FE_SET_FRONTEND case.<br>
Looking on the logic I couldn't see any handling of error tuning, an event is added to the frontend and zero is returned:<br><br> fepriv->state = FESTATE_RETUNE;<br> dvb_frontend_wakeup(fe);<br> dvb_frontend_add_event(fe, 0);<br>
fepriv->status = 0;<br> err = 0;<br> break;<br><br>How should an application know that DTV_TUNE command succeed?<br>Monitoring the LOCK bit is not good, here's an example why I ask the question:<br>
<br>Assuming the cx24116 driver is locked on a channel. Application sends tune command to another channel while specifying<br>AUTO settings for modulation and FEC. The driver for that chip cant handle AUTO settings and return error, while its still connected<br>
to previous channel. So in that case LOCK bit will be ON, while the tune command was ignored.<br><br>I thought of an workaround to query the driver for locked frequency and check whenever its in bounds of frequency that was ordered <br>
to be tuned + - some delta, but that's a very dirty solution.<br><br>Any thoughts? Or I'm missing something?<br><br>Thanks.<br><br><h1 class="YfMhcb"><span id=":186" class="VrHWId"><br></span></h1></div>