1

I have raspi 3 with a Cirrus Logic audio card, with this kernel: https://github.com/HiassofT/rpi-linux complied from source

It is working, and I have audio for the root and pi user, however an arbitary newly added user does not have correct audio capabilities.

The new user in the audio group, it is in the same groups as the default pi user.

The new user can see the sound card via aplay -l, even can play waw files via aplay, but nor VLC neither mplayer are working. They play audio files without showing any error, but there is no sound.

13
  • Just to clarify: aplay does make a sound but mplayer does not? – goldilocks May 13 '16 at 12:45
  • @goldilocks Yes aplay can play .waw files, while mplayer and vlc fail, regardless of the format. For root and pi everything is ok – atevm May 13 '16 at 12:50
  • Try grep pulse /etc/group. If there's a pulseaudio group (that will be distinct from the audio group), add the user to that, login again and try. Many A/V apps use have various audio backends and will use a default, but aplay is an alsa specific tool. If Mplayer is using a pulseaudio backend and either 1) there's a group for that you need to belong to or 2) pulseaudio isn't running, that may be a cause. I'd think #1 would lead to an error but I've run into #2 before... – goldilocks May 13 '16 at 13:04
  • ...Have a look at "AUDIO OUTPUT OPTIONS" in man mplayer and try using it from the command line with -ao alsa. – goldilocks May 13 '16 at 13:04
  • mplayer -ao alsa works, thanks. Why pi user does not use puse and the new user does? Can I disable it as an alternative? – atevm May 13 '16 at 13:11
0

I had to do this. Then I logged out and logged back in. My user was able to play mp3 now.

usermod -a -G audio USERNAME
3
  • I no longer have the device so cannot test this out, however the user was in the audio group and I relogged. Did you used a Cirrus Audio card? – atevm Dec 2 '20 at 10:30
  • not sure about the audio card. It's whatever came with Pi 4 – Svetoslav Marinov Dec 2 '20 at 13:27
  • It was a special case with this audio card element14.com/community/community/raspberry-pi/… The integrated on worked well – atevm Dec 3 '20 at 8:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.