Open rxseger opened 8 years ago
Also seen at:
When trying to use audio sink in GRC I get following error:
audio: using audio_alsa audio_alsa_sink[hw:0,0]: set_channels failed: Invalid argument
It's the same with device "plughw:0,0". No error with hw:0,1 (HDMI output but i'm not connected to a TV)
Something related to speakers channels ? On the RPi, there is only one jack output.
Thanks in advance for any help.
Plugged in an audio jack, same results.
Hint from http://gnuradio.4.n7.nabble.com/Error-with-audio-alsa-sink-td24565.html - "Try it with the -O plughw:0,0 option"
Double-click on audio sink, can specify Device Name, documentation says:
Creates a sink from an audio device at a specified sample_rate. The specific audio device to use can be specified as the device_name parameter. Typical choices are:
- pulse, hw:0,0, plughw:0,0, surround51, /dev/dsp
Args:
sampling_rate :
device_name :
ok_to_block :
Same results with Device Name of "hw:0,0", but "hw:0,1" gives a different error with 48k sampling rate: snd_pcm_sw_params: Invalid argument
. 32k returns "unable to support sampling rate 32000, Card requested 44100 instead".
The following parameters produce no errors:
Device Name: hw:0,1 Sampling Rate: 44100
and produce audio on the 3.5mm audio jack (although it is choppy and GNU Radio reports OaUUOaUOOaU...)
update: fm radio reception works with 48000 audio sink sample rate, hw:0,1, and osmocom source samp_rate 1e6
Try changing the Variable Sample Rate value to 2e6 on the left side to stops the OaUUOaUOOaU
Raspberry Pi 3 with Raspbian OS 2016-05-27-raspbian-jessie.img, headless setup and VNC sudo apt install gnuradio sudo apt install gr-osmosdr gnuradio-companion
Create a trivial flowgraph with an Audio Sink:
attempt to run it. Fails with an ALSA error: