Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failure to start: Could not set number of channels, invalid argument #192

Closed
cjritola opened this issue Jan 30, 2019 · 2 comments
Closed

Comments

@cjritola
Copy link

cjritola commented Jan 30, 2019

Latest git. Install from raspbian repos works but from git gives error for all sound devices.

$ direwolf -p
Dire Wolf version 1.5
Includes optional support for: cm108-ptt
Reading config file direwolf.conf
Audio device for both receive and transmit: hw:2,0 (channel 0)
Could not set number of audio channels.
Invalid argument
for hw:2,0 output.
Pointless to continue without audio device.

$ arecord -l
**** List of CAPTURE Hardware Devices ****
card 1: Camera [USB 2.0 Camera], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: Creation [Cable Creation], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0

$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]
Subdevices: 8/8
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Subdevice #4: subdevice #4
Subdevice #5: subdevice #5
Subdevice #6: subdevice #6
Subdevice #7: subdevice #7
card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: Creation [Cable Creation], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0

$ cat direwolf.conf
CHANNEL 0
MYCALL AD8BS-5
MODEM 1200
TXDELAY 40
TXTAIL 8
FIX_BITS 1 AX25
AGWPORT 8001
KISSPORT 0
#FULLDUP ON
ADEVICE hw:2,0
#ARATE 44100
#ACHANNELS 2

$ uname -a
Linux banana 4.9.70-v7+ #1068 SMP Mon Dec 18 22:12:55 GMT 2017 armv7l GNU/Linux

@wb2osz
Copy link
Owner

wb2osz commented Jan 30, 2019

The documentation says that you should use plughw:2,0 rather than hw:2,0. Does that help?

@cjritola
Copy link
Author

That did the trick, thanks. Guess I missed that part.

Close/Invalid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants