qv4l2: fix setting frequency for radio modulators
authorHans Verkuil <hans.verkuil@cisco.com>
Tue, 8 Jan 2013 07:28:39 +0000 (08:28 +0100)
committerHans Verkuil <hans.verkuil@cisco.com>
Tue, 8 Jan 2013 07:28:39 +0000 (08:28 +0100)
Setting the frequency worked fine for TV and radio receivers, but not
for modulators.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
utils/qv4l2/general-tab.cpp

index 8273c53..892bd35 100644 (file)
@@ -476,7 +476,7 @@ void GeneralTab::freqChanged()
 {
        double f = m_freq->text().toDouble();
 
-       s_frequency(f * 16, m_tuner.capability & V4L2_TUNER_CAP_LOW);
+       s_frequency(f * 16, m_isRadio);
 }
 
 void GeneralTab::audioModeChanged(int)