Em Wed, 20 Sep 2017 14:58:12 -0600 Shuah Khan <shuah@xxxxxxxxxx> escreveu: > > + c->state = DTV_UNDEFINED;> + err = dvb_frontend_handle_ioctl(file, cmd, parg); > > With this change, c->state value gets changed unconditionally before > calling the ioctl. > > dvb_frontend_ioctl_properties() has logic for c->state == DTV_TUNE. > Is it safe to set change c->state here? I think it should be set > only when cmd is != FE_SET_PROPERTY or FE_GET_PROPERTY?? It doesn't mind. c->state is used just for debugging purposes. One of the patches I made got rid of it. Thanks, Mauro