5aa3d61ce0
Add read_named_gain to IqSource (default: None) and implement it in RealIqSource via Device::gain_element. Read the "LNA" element before boxing the source so the initial sdr_lna_gain_db reflects the actual hardware state, making the UI control visible and correct on first connect. Devices without an LNA element (e.g. RTL-SDR with "TUNER") return None and the control stays hidden. Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: Stanislaw Grams <stanislawgrams@gmail.com>