[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss-gnuradio] mono_tone_delta44.py,
From: |
Robert W. McGwier |
Subject: |
[Discuss-gnuradio] mono_tone_delta44.py, |
Date: |
Sat, 19 Feb 2005 16:00:59 -0500 |
User-agent: |
Mozilla Thunderbird 0.8 (X11/20040913) |
I have the ever popular amongst SDR sound card types: M-Audio Delta 44
The alsa driver for it hated:
gr-radio/gnuradio-examples/python/audio/mono_tone.py
as well as
gr-radio/gnuradio-examples/python/audio/dial_tone.py
a cheap trick fixed it and I call these mono_tone_delta44.py
and dial_tone_delta44.py respectively and these demonstrate what needs
to be done.
n4hy:/opt/GnuRadio/gr-build/gnuradio-examples/python/audio # diff
mono_tone.py mono_tone_delta44.py
33c33,34
< src0 = gr.sig_source_f (sampling_freq, gr.GR_SIN_WAVE, 350, ampl)
---
> src0 = gr.sig_source_f (sampling_freq, gr.GR_SIN_WAVE, 600, ampl)
> srcnull = gr.sig_source_f (sampling_freq, gr.GR_SIN_WAVE, 0, 0)
34a36,37
> max_chan = dst.input_signature().max_streams()
> limit_channels = max_chan - 1
35a39,41
> if (limit_channels > 0):
> for i in range (limit_channels):
> fg.connect (srcnull, (dst, i+1))
as well as
n4hy:/opt/GnuRadio/gr-build/gnuradio-examples/python/audio # diff
dial_tone.py dial_tone_delta44.py
32a33
> srcnull = gr.sig_source_f (sampling_freq, gr.GR_SIN_WAVE, 0, 0)
33a35
> max_chan = dst.input_signature().max_streams()
36c38,42
<
---
> limit_channels = max_chan - 2
> if (limit_channels > 0):
> for i in range(max_chan-2):
> fg.connect(srcnull, (dst, i+2))
>
Just tinkering around and making sure everything works. These ICE based
boards from M-Audio
have lots of gazintas and gazoutas supported by the ICE ASIC even when
they are not physically
present. There might be some control I could tickle in the ALSA ice
control panel, but the trick
worked so well, I went with it.
Bob