From nobody Mon Apr 10 11:04:31 2023 X-Original-To: dev-commits-doc-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Pw5hr2KFjz456cS for ; Mon, 10 Apr 2023 11:04:44 +0000 (UTC) (envelope-from carlavilla@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Pw5hr1j2Tz4MPy for ; Mon, 10 Apr 2023 11:04:44 +0000 (UTC) (envelope-from carlavilla@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681124684; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ABz8g9oixszM/u7y48pwkVs1gx8xLQyi107D+KxXXCI=; b=BSUPuic6kjWCsINKzJC/PfKzQ67a+gASK/R7OkBhEE2/rimsWeTs+Re3XmVlb4cZYLculJ d9Ven87G+uCa4RN3tQvOlV/dJcb6kFPEGOL4LjfOZMCWlOAZfpdkx/UmhRy6UEF2IfAqc/ aPBcQCF+J+QlCV63K1l22qMx+tEioK8kYVt9RJe21m5qgVu774M+lqOpOKWUi5y2LjHaRS i7X06h3PP8t+z0ViE090M6OW16Gu2h3H0NE3wqZ2kTQzwTSWMIUR42lB7zdsJjcPjP+BwT J9ep5nTj1DeVzi8IuisqPIlLTwde0/Aj9H2AIZmSyTwDMWAd1uSPCWC7MnO7bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1681124684; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ABz8g9oixszM/u7y48pwkVs1gx8xLQyi107D+KxXXCI=; b=qL9HN2lN8rX3WnNR3AJN5x21pBmfyAB0wY0LmEf7ptc2tjs7NPg5fiE31U6bXPOffTBlRB zsnPtOD3UxJnPhsa/aKtKoEwfxRnyy2KVGKck3VNnJz+Ah1QYWjYBJeM3al+n7uIrmF1Kw DqvZvdXgNDupsvx8YFYCe8exVvt6RMxH6QKOKy1tdUtRfE6RvoR5XtoMkVcCCInSHW48Jm TA1PyepcRiwd9zGHHKhQlOpP45ai+EfamH/tqGKoADroGP7nQu+BE7mbC38UtFgPq+lc6C Mv/of+ULs+WuQV2ZzVEBztMGetd1uvV87p3KCnhV+OLbYFb0hnrIkhn9IP2dMQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1681124684; a=rsa-sha256; cv=none; b=d5o6u5QjM3aL1aIZSDXrGwnLYi/ttUK/TDsQ8Ytdzdw/4g6VVjGXMzRlJOVLxg2woT2bay GW0e1K0kl5Sh2/41qhJLv45VKtNJGNbVmF9O2U2F8MAF9Yxu4VBGbPvM78tNErOGAQwKxZ AgXMudtgvW0+Q9Ts3d/CKvi78oMHBLFNrhAB6Ld/Qcn88DQqEW7DmKt2aNgR2IIWw7BkBw 17vsYxEf1BtFK4eoxogjzYJ74Qk5tbYnyIocAVc1uJaC7CS2QLSSDRfHSL1Z3+wJSyyyD/ bWZKbQYYbEEqU9AEu7MFMZRWxuKLe0t/VwoMeVpxUk+s+TBz3RKEzxnJm7cevg== Received: from mail-oa1-f50.google.com (mail-oa1-f50.google.com [209.85.160.50]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) (Authenticated sender: carlavilla) by smtp.freebsd.org (Postfix) with ESMTPSA id 4Pw5hr0npTzTZs for ; Mon, 10 Apr 2023 11:04:44 +0000 (UTC) (envelope-from carlavilla@freebsd.org) Received: by mail-oa1-f50.google.com with SMTP id 586e51a60fabf-1842f69fe1fso5373496fac.11 for ; Mon, 10 Apr 2023 04:04:44 -0700 (PDT) X-Gm-Message-State: AAQBX9ccUpEf0mieom4jVNNUb+b4v6PWE/kniwWc2iD56Wbpg+eF4JM3 u/aoc/qTnMRDHrTI2W53cjKYgzxaPPtGYWDr+cs= X-Google-Smtp-Source: AKy350avMmgN9oDwxhOk+2BR3iMaIycZVGXV007h1pHRfnxBVbGJsUe2fnUr17PIz9rUk0juUAy5oVi0AQyY98oUbmg= X-Received: by 2002:a05:6870:1217:b0:17e:a9eb:196b with SMTP id 23-20020a056870121700b0017ea9eb196bmr3592898oan.4.1681124683237; Mon, 10 Apr 2023 04:04:43 -0700 (PDT) List-Id: Commit messages for all branches of the doc repository List-Archive: https://lists.freebsd.org/archives/dev-commits-doc-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-doc-all@freebsd.org X-BeenThere: dev-commits-doc-all@freebsd.org MIME-Version: 1.0 References: <202304091512.339FCUdl051503@gitrepo.freebsd.org> In-Reply-To: From: Sergio Carlavilla Date: Mon, 10 Apr 2023 13:04:31 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: git: fcbb060fe7 - main - Upgrade multimedia chapter To: Ceri Davies Cc: dev-commits-doc-all@freebsd.org Content-Type: text/plain; charset="UTF-8" X-ThisMailContainsUnwantedMimeParts: N On Mon, 10 Apr 2023 at 12:02, Ceri Davies 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 wrote: > >> +[.programlisting] >> .... >> -# echo 'cuse_load=yes' >> /boot/loader.conf >> +pcm0: at nid 23 and 26 on hdaa0 >> +pcm1: 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: at nid 23 and 26 on hdaa0 pcm1: 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