Lars Tunkrans wrote:
> 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.

Can you elaborate on what "does not work" means?

>  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 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

The only error I see here is that "realtime" isn't set to 1. Actually,
it is, but because of an internal error during device reading, it gets
reset to 0, although the settings _are_ applied correctly, so the
behavior is correct, but "realtime" defaults to 0 in the output. I will
fix this shortly.

Christos

Reply via email to