Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Apr 2023 13:04:31 +0200
From:      Sergio Carlavilla <carlavilla@freebsd.org>
To:        Ceri Davies <ceri@submonkey.net>
Cc:        dev-commits-doc-all@freebsd.org
Subject:   Re: git: fcbb060fe7 - main - Upgrade multimedia chapter
Message-ID:  <CAFwocyMOOGxe=94CM0cQQDeyUgBOrT=8m0Cp5K0BvxsFMrnMag@mail.gmail.com>
In-Reply-To: <CAOa83AcUiRnHGA_WStcbCtftDCVCePTSKYfxSWa327FOnCVfZw@mail.gmail.com>
References:  <202304091512.339FCUdl051503@gitrepo.freebsd.org> <CAOa83AcUiRnHGA_WStcbCtftDCVCePTSKYfxSWa327FOnCVfZw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 10 Apr 2023 at 12:02, Ceri Davies <ceri@submonkey.net> 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 <carlavilla@freebsd.org> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFwocyMOOGxe=94CM0cQQDeyUgBOrT=8m0Cp5K0BvxsFMrnMag>