Re: [Call for testing] New utility: audio(8)
- Reply: Christos Margiolis : "Re: [Call for testing] New utility: audio(8)"
- In reply to: Christos Margiolis : "[Call for testing] New utility: audio(8)"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 05 May 2025 17:03:59 UTC
HI I have a SHuttle 570R6 Mini-PC with I7-11700K CPU and *Realtek ALC662*audio chip as /dev/pcm4 that was running a few months old copy of Current-15. I did a quick git pull and buildworld+buildkernel. I can say that audio(8) binary is now available. But realtime setting does not work. I did set mac_priority_load="YES" in /boot/loader.conf but i did not help got: " Security policy loaded: MAC/priority (mac_priority) " in /var/run/dmesg.boot log. What are the tricks to be allowed to utilize this realtime ? //Lars root@sh570r6:~ # audio -f /dev/dsp4 pcm4: <Realtek ALC662 rev3 (Rear Analog)> on hdaa1 (play/rec) name = pcm4 desc = Realtek ALC662 rev3 (Rear Analog) status = on hdaa1 devnode = dsp4 from_user = 0 unit = 4 caps = INPUT,MMAP,OUTPUT,REALTIME,TRIGGER bitperfect = 0 autoconv = 1 realtime = 0 play.format = s16le:2.0 play.rate = 48000 play.vchans = 1 play.min_rate = 1 play.max_rate = 2016000 play.min_chans = 2 play.max_chans = 2 play.formats = s16le,s32le rec.rate = 48000 rec.format = s16le:2.0 rec.vchans = 1 rec.min_rate = 1 rec.max_rate = 2016000 rec.min_chans = 2 rec.max_chans = 2 rec.formats = s16le,s32le root@sh570r6:~ # audio -f /dev/dsp4 autoconv=0 realtime=1 dev.pcm.4.play.vchans: 1 -> 0 dev.pcm.4.rec.vchans: 1 -> 0 dev.pcm.4.bitperfect: 0 -> 1 hw.snd.latency: 2 -> 0 hw.snd.latency_profile: 1 -> 0 kern.timecounter.alloweddeviation: 5 -> 0 pcm4: <Realtek ALC662 rev3 (Rear Analog)> on hdaa1 (play/rec) name = pcm4 desc = Realtek ALC662 rev3 (Rear Analog) status = on hdaa1 devnode = dsp4 from_user = 0 unit = 4 caps = INPUT,MMAP,OUTPUT,REALTIME,TRIGGER bitperfect = 1 autoconv = 0 realtime = 0 play.format = s16le:2.0 play.rate = 48000 play.vchans = 0 play.min_rate = 44100 play.max_rate = 192000 play.min_chans = 2 play.max_chans = 2 play.formats = s16le,s32le rec.rate = 48000 rec.format = s16le:2.0 rec.vchans = 0 rec.min_rate = 44100 rec.max_rate = 192000 rec.min_chans = 2 rec.max_chans = 2 rec.formats = s16le,s32le On 5/5/25 13:40, Christos Margiolis wrote: > I just committed a new audio(8) utility for viewing and modifying (some) > sound card settings, in similar fashion and format to mixer(8). The goal > of this utility is to concertrate audio settings under one user-friendly > utility, instead of having to (always) deal with sysctls and > /dev/sndstat. The driver-specific controls remain as sysctl-only though, > at least for now. > > It prints a lot of information, some of it possibly unnecessary. Some of > the control names or their functionality might be non-obvious. But I > want to start improving those things once I feedback starts coming in. > There are already things in my TODO regarding improvements, but they > will happen gradually. > > Please try it out and let me know what can be improved, added, removed. > The man page explains what each control does and whether it is > read-only/read-write. > > Christos > > [1]https://cgit.freebsd.org/src/commit/?id=44e5a01508353cfa52e185a531cfb5a6b39b28f6 >