Aplay without Sudo

Dec 26, 2021 Last reply: 4 years ago 31 Replies

"Fnarr, fnarr"

The hifiberry overlay is very general and used for different boards. I think iqaudio is the only audio board manufacturer with its own, different overlay? That's the one I have, anyway. So it could be that the PiHut was right.

not sure it doesn't need root and pulse.

so did i but i decided that of anyone knew it would be hifiberry!

anyway it all eventually worked

I had tow hifiberry overlays one of which worked and the other did not

bugger. missed the comma.

"I tested it and I can play, with myself as the user."

In message <sqck2e$s22$ snipped-for-privacy@dont-email.me, The Natural Philosopher snipped-for-privacy@invalid.invalid writes

I've tried adding root and pulse. Root adds OK, but as I don't have a user called pulse, I can't add that.

Still get the same error.

Adrian

you haven't installed pulseaudio? check this and lets see what gives

$ aplay -L

null Discard all samples (playback) or generate zero samples (capture) default Playback/recording through the PulseAudio sound server sysdefault:CARD=sndrpihifiberry snd_rpi_hifiberry_dac, Default Audio Device dmix:CARD=sndrpihifiberry,DEV=0 snd_rpi_hifiberry_dac, Direct sample mixing device dsnoop:CARD=sndrpihifiberry,DEV=0 snd_rpi_hifiberry_dac, Direct sample snooping device hw:CARD=sndrpihifiberry,DEV=0 snd_rpi_hifiberry_dac, Direct hardware device without any conversions plughw:CARD=sndrpihifiberry,DEV=0 snd_rpi_hifiberry_dac, Hardware device with all software conversions

You can foirce use of te card with e.g.

aplay -D sysdefault <file>

I think

He's still on Stretch. I think getting into too much detail is not really useful until he at least upgrades to Buster.

In message <sqco17$p35$ snipped-for-privacy@dont-email.me, The Natural Philosopher snipped-for-privacy@invalid.invalid writes

I have now, and things have changed (see below)

null Discard all samples (playback) or generate zero samples (capture) speakerbonnet dmixer softvol default Playback/recording through the PulseAudio sound server sysdefault:CARD=sndrpihifiberry snd_rpi_hifiberry_dac, Default Audio Device dmix:CARD=sndrpihifiberry,DEV=0 snd_rpi_hifiberry_dac, Direct sample mixing device dsnoop:CARD=sndrpihifiberry,DEV=0 snd_rpi_hifiberry_dac, Direct sample snooping device hw:CARD=sndrpihifiberry,DEV=0 snd_rpi_hifiberry_dac, Direct hardware device without any conversions plughw:CARD=sndrpihifiberry,DEV=0 snd_rpi_hifiberry_dac, Hardware device with all software conversions

So I get some extra stuff at the top.

Now, when I try aplay, I don't get any errors, but neither do I get any noise (but I still do with sudo). Progress of sorts I suppose.

It doesn't like that, I get :

ALSA lib confmisc.c:767:(parse_card) cannot find card '1' ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1246:(snd_func_refer) error evaluating name ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM sysdefault aplay: main:788: audio open error: No such file or directory

Thanks

Adrian

Hmm. I would try simply installing pulseaudio and see what happens

Go with the flow, man , we are all slaves to the Poettering.

In message <sqcsnk$r3u$ snipped-for-privacy@dont-email.me, The Natural Philosopher snipped-for-privacy@invalid.invalid writes

I did before that posting, hence the change in behaviour.

B****r, I thought I'd escaped from slavery a while back.

Adrian

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required