From 1ec148d3a84314d807103bd7b8ab70d4d977e528 Mon Sep 17 00:00:00 2001
From: Mike Jameson <mikejamo@gmail.com>
Date: Mon, 11 Feb 2013 19:24:54 +0000
Subject: uhd: fixes audio_alsa_sink busy

---
 gr-uhd/examples/python/usrp_am_mw_rcv.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'gr-uhd/examples/python/usrp_am_mw_rcv.py')

diff --git a/gr-uhd/examples/python/usrp_am_mw_rcv.py b/gr-uhd/examples/python/usrp_am_mw_rcv.py
index 28262f2bd5..9d359a4cf8 100755
--- a/gr-uhd/examples/python/usrp_am_mw_rcv.py
+++ b/gr-uhd/examples/python/usrp_am_mw_rcv.py
@@ -20,6 +20,8 @@
 # Boston, MA 02110-1301, USA.
 #
 
+#FIX gain
+
 from gnuradio import gr, eng_notation, optfir
 from gnuradio import audio
 from gnuradio import uhd
@@ -53,7 +55,7 @@ class wfm_rx_block (stdgui2.std_top_block):
                           help="set gain in dB (default is maximum)")
         parser.add_option("-V", "--volume", type="eng_float", default=None,
                           help="set volume (default is midpoint)")
-        parser.add_option("-O", "--audio-output", type="string", default="",
+        parser.add_option("-O", "--audio-output", type="string", default="default",
                           help="pcm device name.  E.g., hw:0,0 or surround51 or /dev/dsp")
 
         (options, args) = parser.parse_args()
-- 
cgit v1.2.3


From 48f0d2c9ec3207e839bb91d1f6be1fd091cb1913 Mon Sep 17 00:00:00 2001
From: Mike Jameson <mikejamo@gmail.com>
Date: Mon, 11 Feb 2013 20:18:06 +0000
Subject: uhd: fixed default midpoint gain

---
 gr-uhd/examples/python/usrp_am_mw_rcv.py | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

(limited to 'gr-uhd/examples/python/usrp_am_mw_rcv.py')

diff --git a/gr-uhd/examples/python/usrp_am_mw_rcv.py b/gr-uhd/examples/python/usrp_am_mw_rcv.py
index 9d359a4cf8..02863b32fd 100755
--- a/gr-uhd/examples/python/usrp_am_mw_rcv.py
+++ b/gr-uhd/examples/python/usrp_am_mw_rcv.py
@@ -20,8 +20,6 @@
 # Boston, MA 02110-1301, USA.
 #
 
-#FIX gain
-
 from gnuradio import gr, eng_notation, optfir
 from gnuradio import audio
 from gnuradio import uhd
@@ -140,10 +138,8 @@ class wfm_rx_block (stdgui2.std_top_block):
 
         if options.gain is None:
             g = self.u.get_gain_range()
-            if True:
-                # if no gain was specified, use the mid gain
-                options.gain = (g.start() + g.stop())/2.0
-                options.gain = g.stop()
+            # if no gain was specified, use the mid gain
+            options.gain = (g.start() + g.stop())/2.0
 
         if options.volume is None:
             v = self.volume_range()
-- 
cgit v1.2.3