Permission issue?
Moderator: flatmax
Permission issue?
I made a fresh install with Raspbian Jessie and followed the setup-guide. Kernel is now 4.9.24-v7+. (rpi3)
Test without .asoundrc:
Logged in via ssh as user, command "speaker-test -c8" work, get sound.
But i get an error, when .asoundrc is added:
ALSA lib pcm_hw.c:1741:(_snd_pcm_hw_open) Unknown field slave
It works with command "sudo speaker-test -c8"
Same behavior with /etc/asound.conf instead of .asoundrc.
User is member of the audio-group.
Suggestions?
Regards Nik
Test without .asoundrc:
Logged in via ssh as user, command "speaker-test -c8" work, get sound.
But i get an error, when .asoundrc is added:
ALSA lib pcm_hw.c:1741:(_snd_pcm_hw_open) Unknown field slave
It works with command "sudo speaker-test -c8"
Same behavior with /etc/asound.conf instead of .asoundrc.
User is member of the audio-group.
Suggestions?
Regards Nik
Re: Permission issue?
oh ok, sounds like a .asoundrc bug, but can't be sure.
Can I please ask how you generated the .asoundrc file ? Do I need to fix a bug my end ? Can you please post your .asoundrc file here so I can check it ?
I have checked the .asoundrc file from the automated setup system with command line applications (aplay and arecord) for 8 channels and less of audio. I have also checked the .asoundrc file with the application audacity running only stereo. Some may not know that audacity is a GUI based audio recording and editing software. Audacity isn't as full fledged as some DAW softwares, but good for some use cases.
thanks
Matt
Can I please ask how you generated the .asoundrc file ? Do I need to fix a bug my end ? Can you please post your .asoundrc file here so I can check it ?
I have checked the .asoundrc file from the automated setup system with command line applications (aplay and arecord) for 8 channels and less of audio. I have also checked the .asoundrc file with the application audacity running only stereo. Some may not know that audacity is a GUI based audio recording and editing software. Audacity isn't as full fledged as some DAW softwares, but good for some use cases.
thanks
Matt
Check out our audiophile quality crossovers : https://bit.ly/2kb1nzZ
Please review the Zero sound card on Amazon USA : https://www.amazon.com/dp/B075V1VNDD
---
Check out our new forum on github : https://github.com/Audio-Injector
Please review the Zero sound card on Amazon USA : https://www.amazon.com/dp/B075V1VNDD
---
Check out our new forum on github : https://github.com/Audio-Injector
Re: Permission issue?
Hi Matt,
here the .asoundrc
Taking from your setup-guide, generated with copy and paste in leafpad on my linux-notebook and moved via ssh (mc).
ls -l -a on the rpi:
-rw-r--r-- 1 falter falter 437 Apr 27 20:52 .asoundrc
Tested with aplay, speaker-test and trying moc
e.g.:
Without .asoundrc is all that no problem and works flawlessly.
Nik
here the .asoundrc
Code: Select all
pcm.!default {
# type hw
# card 0
type hw
slave.pcm "anyChannelCount"
}
ctl.!default {
type hw
card 0
}
pcm.anyChannelCount {
type route
slave.pcm "hw:0"
slave.channels 8;
ttable {
0.0 1
1.1 1
2.2 1
3.3 1
4.4 1
5.5 1
6.6 1
7.7 1
}
}
ctl.anyChannelCount {
type hw;
card 0;
}
ls -l -a on the rpi:
-rw-r--r-- 1 falter falter 437 Apr 27 20:52 .asoundrc
Tested with aplay, speaker-test and trying moc
e.g.:
brutefir also doesn't work with .asoundrc.falter@raspberrypi:~ $ mocp
Running the server...
Trying JACK...
Trying ALSA...
ALSA lib pcm_hw.c:1741:(_snd_pcm_hw_open) Unknown field slave
Trying OSS...
FATAL_ERROR: No valid sound driver!
FATAL_ERROR: Server exited!
Without .asoundrc is all that no problem and works flawlessly.
Nik
Re: Permission issue?
Yep ok, my bug.
In your .asoundrc file, please change
type hw
to
type plug
That should fix the problem
In your .asoundrc file, please change
type hw
to
type plug
That should fix the problem
Check out our audiophile quality crossovers : https://bit.ly/2kb1nzZ
Please review the Zero sound card on Amazon USA : https://www.amazon.com/dp/B075V1VNDD
---
Check out our new forum on github : https://github.com/Audio-Injector
Please review the Zero sound card on Amazon USA : https://www.amazon.com/dp/B075V1VNDD
---
Check out our new forum on github : https://github.com/Audio-Injector
Re: Permission issue?
Yes, it works!flatmax wrote:That should fix the problem
thanks
Nik
Re: Permission issue?
Can you tell me, does the problem return when you reboot ?
Thanks
Matt
Thanks
Matt
Check out our audiophile quality crossovers : https://bit.ly/2kb1nzZ
Please review the Zero sound card on Amazon USA : https://www.amazon.com/dp/B075V1VNDD
---
Check out our new forum on github : https://github.com/Audio-Injector
Please review the Zero sound card on Amazon USA : https://www.amazon.com/dp/B075V1VNDD
---
Check out our new forum on github : https://github.com/Audio-Injector
Re: Permission issue?
Hi Matt,
the problem is never returned. (I did serveral reboots in the meantime, use new .asoundrc)
Nik
the problem is never returned. (I did serveral reboots in the meantime, use new .asoundrc)
Nik
Re: Permission issue?
With my installation (rpi3, 4.9.27-v7+) the changes to .asoundrc do not survive reboot. Furthermore, pressing "Make Default" in "Audio Device Settings" revokes the changes made in .asoundrc.
Peter
Peter
Re: Permission issue?
Is there a system wide configuration ?
/etc/asound.conf
Can you copy the .asoundrc file to /etc/asound.conf ?
Does that change anything ?
thanks
Matt
/etc/asound.conf
Can you copy the .asoundrc file to /etc/asound.conf ?
Does that change anything ?
thanks
Matt
Check out our audiophile quality crossovers : https://bit.ly/2kb1nzZ
Please review the Zero sound card on Amazon USA : https://www.amazon.com/dp/B075V1VNDD
---
Check out our new forum on github : https://github.com/Audio-Injector
Please review the Zero sound card on Amazon USA : https://www.amazon.com/dp/B075V1VNDD
---
Check out our new forum on github : https://github.com/Audio-Injector
Who is online
Users browsing this forum: No registered users and 2 guests