NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Audio permission weirdness



Good morning, everyone!

When trying to access the default audio device (/dev/audio1) I get an
"operation not permitted" error.

It does not happen with the HDMI device (/dev/audio0) or when the device
is accessed by root.

File permission masks are the same for the devices, and no process seems
to be locking the file.

I'm pasting some logs that might be of help.

Have a great weekend!
Luis

tolstoy$ audiocfg test 0
0: [ ] audio0 @ hdafg0: ATI R6xx HDMI
       playback: 16, 2ch, 48000Hz
       record:   unavailable
       (P-) slinear_le 16/16, 2ch, { 32000, 44100, 48000 }
       (  ) ac3 16/16, 2ch, { 32000, 44100, 48000 }
       (PR) slinear_le 16/16, 2ch, 48000-48000Hz
  testing channel 0... done
  testing channel 1... done


tolstoy$ audiocfg test 1
1: [*] audio1 @ hdafg1: Sigmatel 92HD81B1X5
       playback: 16, 2ch, 48000Hz
       record:   16, 2ch, 48000Hz
       (PR) slinear_le 16/16, 2ch, { 44100, 48000, 88200, 96000, 192000 }
       (PR) slinear_le 20/32, 2ch, { 44100, 48000, 88200, 96000, 192000 }
       (PR) slinear_le 24/32, 2ch, { 44100, 48000, 88200, 96000, 192000 }
       (  ) ac3 16/16, 2ch, { 44100, 48000, 88200, 96000, 192000 }

audiocfg: open /dev/audio1: Operation not permitted

------

tolstoy$ fstat /dev/audio1
USER     CMD          PID   FD  MOUNT         INUM MODE         SZ|DV R/W NAME
tolstoy$ ls -l /dev/audio1
crw-rw-rw-  1 root  wheel  42, 129 Sep  5 16:54 /dev/audio1

------

tolstoy$ id lfm
uid=1000(lfm) gid=100(users) groups=100(users),0(wheel)
tolstoy$

------

From ncmpcp

2026-11-12T19:55:22 exception: Failed to open "sunaudio" (solaris); Failed to open /dev/audio: Operation not permitted




Home | Main Index | Thread Index | Old Index