discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Increasing ALSA Sampling Rate


From: George S. Williams
Subject: Re: [Discuss-gnuradio] Increasing ALSA Sampling Rate
Date: Mon, 31 Jan 2011 19:29:40 -0500
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20101207 Lightning/1.0b2 Thunderbird/3.1.7

On 1/31/2011 4:22 PM, Marcus D. Leech wrote:

audio_alsa_source[hw:2,1]: get_period_size failed: Invalid argument

I think the clue is in the above.

It looks like the device-specific driver for this hardware doesn't contain the 
"PERIOD_SIZE" parameter
   in the configuration description for the hardware, and Gnu Radio uses that 
information for buffer
   planning purposes (using it for set_output_multiple() ).  Not clear whether 
there's a fix or not, and
   whether the fix belongs in Alsa or Gnu Radio.


Would this keep Gnu Radio from using the card at 1792000 but still allow 896000?

Using this in config.conf
[audio_alsa]
verbose = true

And setting samp_rate to 896000

GRC returns this-
PCM name: hw:1,1
Access types:
    MMAP_INTERLEAVED     YES
    MMAP_NONINTERLEAVED  NO
    MMAP_COMPLEX         NO
    RW_INTERLEAVED       YES
    RW_NONINTERLEAVED    NO
Formats:
    S8                   YES
    S16_LE               YES
Number of channels
    min channels: 1
    max channels: 1
    1 channels  YES
Sample Rates:
    min rate:  119466 (dir = 1)
    max rate: 1792000 (dir = 0)
      8000  NO
     16000  NO
     22050  NO
     32000  NO
     44100  NO
     48000  NO
     96000  NO
    192000  NO

So I would think that Gnu Radio should know about the higher rate?? The flowgraph does execute at 896000.

But, if I set samp_rate to 1792000, I get the get_period_size failed: Invalid argument error.

Just trying to understand this stuff- still in the steep part of the learning curve.

George



reply via email to

[Prev in Thread] Current Thread [Next in Thread]