Re: git: fcbb060fe7 - main - Upgrade multimedia chapter

Sergio Carlavilla <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <CAFwocyMOOGxe=94CM0cQQDeyUgBOrT=8m0Cp5K0BvxsFMrnMag@mail.gmail.com>
On Mon, 10 Apr 2023 at 12:02, Ceri Davies <[email protected]> wrote:
>
> Hi, I've committed some improvements to this but I have some questions that new readers may also have.
>
>
> On Sun, 9 Apr 2023 at 16:12, Sergio Carlavilla Delgado <[email protected]> wrote:
>
>> +[.programlisting]
>>  ....
>> -# echo 'cuse_load=yes' >> /boot/loader.conf
>> +pcm0: <Realtek ALC892 Analog> at nid 23 and 26 on hdaa0
>> +pcm1: <Realtek ALC892 Right Analog Headphones> at nid 22 on hdaa0
>>  ....
>>
> ...
>>
>>  ....
>> -# virtual_oss -C 2 -c 2 -r 48000 -b 16 -s 768 -R /dev/null -P /dev/bluetooth/headphones -d dsp
>> +hint.hdac.0.cad0.nid22.config="as=1 seq=15 device=Headphones"
>> +hint.hdac.0.cad0.nid26.config="as=2 seq=0 device=speakers"
>
>
> +Keep in mind that these values are for the example indicated above.
> +They may vary depending on the system.
>
> How do these numbers relate to the dmesg output?  What do "as" and "seq" mean?
> This is important as if this text doesn't work, we just tell the reader to use different values here.
>
>>
>> +|Type `fstat \| grep dsp` to check if another application is holding the device open. Noteworthy troublemakers are esound and KDE's sound support.
>
>
> What is "esound"?  We haven't mentioned it and it doesn't seem to be in ports.

Hi,

> Hi, I've committed some improvements to this but I have some questions that new readers may also have.

Thanks :)

> How do these numbers relate to the dmesg output?  What do "as" and "seq" mean?
> This is important as if this text doesn't work, we just tell the reader to use different values here.

I'm gonna try to explain, after your email, I think it will be a good
idea to add some explanation in the chapter.

The output from dmesg:

pcm0: <Realtek ALC892 Analog> at nid 23 and 26 on hdaa0
pcm1: <Realtek ALC892 Right Analog Headphones> at nid 22 on hdaa0

The lines in /boot/device.hints:
hint.hdac.0.cad0.nid22.config="as=1 seq=15 device=Headphones"
hint.hdac.0.cad0.nid26.config="as=2 seq=0 device=speakers"

nid22 makes reference to "at nid 22"
as makes reference to the association number, more info [1]
seq makes reference to the sequence number, more info [1]

> What is "esound"?  We haven't mentioned it and it doesn't seem to be in ports.

This one [2], maybe we need to remove the reference in the chapter, too

[1] https://man.freebsd.org/cgi/man.cgi?query=snd_hda&sektion=4&manpath=freebsd-release-ports
[2] https://www.freshports.org/audio/esound
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.