Tuner LNA cannot be turned off
this is my first post on this forum
So I'm using Tvheadend 4.2.7-44 installed from KODI LibreELEC addons. And I'm trying to turn on/off the lna on my dvb-t tuner through web interface.
Turning on works, but the behaviour is not very intuitive because to actually apply the new settings of the LNA I need to re-tune by changing currently viewed channel. And this I figured out by looking at the source code of the tvheadend so at least some sort of information how to apply those settings should be visible.
The big problem is with turning off because there is no way to do that. I need to restart the tuner driver which disables LNA at initialisation. Looking at the tvheadend code there is:
if (lfe->lfe_lna) S2CMD(DTV_LNA, 1);
and there is no else branch. So there is nothing in the code that handles lfe->lfe_lna == 0 case.