From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D6868138350 for ; Fri, 24 Apr 2020 10:39:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1BF07E0B63; Fri, 24 Apr 2020 10:39:00 +0000 (UTC) Received: from mail-gw.thundermail.uk (mail-gw.thundermail.uk [149.255.60.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id ACF24E0AA5 for ; Fri, 24 Apr 2020 10:38:59 +0000 (UTC) Received: from mailgw01.thundermail.uk (mail-gw.thundermail.uk [149.255.60.66]) by mail-gw.thundermail.uk (Postfix) with ESMTPS id E4D6560185C5 for ; Fri, 24 Apr 2020 11:38:57 +0100 (BST) X-ASG-Debug-ID: 1587724737-055413682c3b8c2c0001-LfjuLa Received: from cloud307.thundercloud.uk (cloud307.thundercloud.uk [149.255.58.40]) by mailgw01.thundermail.uk with ESMTP id peAym7fRlZ6a1Oun (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Fri, 24 Apr 2020 11:38:57 +0100 (BST) X-Barracuda-Envelope-From: confabulate@kintzios.com X-Barracuda-Effective-Source-IP: cloud307.thundercloud.uk[149.255.58.40] X-Barracuda-Apparent-Source-IP: 149.255.58.40 Received: from lenovo.localdomain (230.3.169.217.in-addr.arpa [217.169.3.230]) by cloud307.thundercloud.uk (Postfix) with ESMTPSA id A7EE3C75CAF for ; Fri, 24 Apr 2020 11:38:56 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kintzios.com; s=default; t=1587724737; bh=x5clMSqwNF95qYs/fWnzh0xbvIzwQbnd7c5NPfEzNlM=; h=From:To:Subject; b=GglbI8GjNSabvpBHazhVF7E8I6PmEI7Eyq1A0ZopJvSLbRYGJ5BcKX9Zc2bRIjz95 Oc7/BpbV6njoYtZiG23BciBDGrk7nMrxFo5riOOtS70HbjKsubC7e4L83fc5lcbr4t AJ05K3qz/HmD4olcSbmDfY0zqR54G/rPYoovCv9E= Authentication-Results: cloud307.thundercloud.uk; spf=pass (sender IP is 217.169.3.230) smtp.mailfrom=confabulate@kintzios.com smtp.helo=lenovo.localdomain Received-SPF: pass (cloud307.thundercloud.uk: connection is authenticated) From: Michael To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] ALSA wizard... Date: Fri, 24 Apr 2020 11:38:48 +0100 X-ASG-Orig-Subj: Re: [gentoo-user] ALSA wizard... Message-ID: <3298791.iIbC2pHGDl@lenovo.localdomain> In-Reply-To: References: <36087914.10thIPus4b@lenovo.localdomain> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart8587052.CDJkKcVGEf"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-PPP-Message-ID: <20200424103857.2255792.28114@cloud307.thundercloud.uk> X-PPP-Vhost: kintzios.com X-Barracuda-Connect: cloud307.thundercloud.uk[149.255.58.40] X-Barracuda-Start-Time: 1587724737 X-Barracuda-Encrypted: ECDHE-RSA-AES128-GCM-SHA256 X-Barracuda-URL: https://149.255.60.66:443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at thundermail.uk X-Barracuda-Scan-Msg-Size: 1692 X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=1.9 tests= X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.81397 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Archives-Salt: e1919e06-2305-49d7-8203-09e4cf5f9026 X-Archives-Hash: 866f4fa0ec5edbb22c6f92283fac365b --nextPart8587052.CDJkKcVGEf Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" On Thursday, 23 April 2020 20:01:51 BST Jorge Almeida wrote: > I need the "virtual" card to be the default, so I did this: > > pcm.mbcard{ > type hw > card PCH > device 1 > } > ctl.mbcard{ > type hw > card 0 > } > pcm.usbcard{ > type hw > card CODEC > device 0 > } > pcm.output{ > type plug > slave.pcm "mbcard" > } > pcm.input{ > type plug > slave { > pcm "usbcard" > channels 1 > } > } > pcm.!default{ > type asym > playback.pcm "output" > capture.pcm "input" > } > > (The microphone is mono, hence the channels entry. I'm not sure it is > needed.) > > I think this sets the defaults, because: > --I can record with "arecord -fdat test.wav" > --I can playback with "aplay test.wav" I'd think this is a good enough proof your audio setup works at a basic level. :-) > What I cannot do is to coax discord into working. Maybe discord > doesn't expect ALSA's defaults after all? > Anyone familiar with discord? (No gamers?) > > Thanks > > Jorge Applications can be rather particular regarding bitrate, bit sample formats, channel configuration and other options. I understand Firefox wants to have 48000Hz or it won't play. So, even if your DAC can do 96000Hz, you may need to specify a lower bit rate in the above config. The mic may also need specifying a particular endianess format and this may need to be different if you are using some websocket in FF, Vs the discord app directly. You could try S32_LE or S16_LE and various bit rates. The idea being to force alsa to use whatever format and rates the application may need/want, rather than passing through whatever the hardware is capable of. --nextPart8587052.CDJkKcVGEf Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAl6iwbgACgkQseqq9sKV ZxnXQw//fJteliSgdfbGn9MeGnw90OYVMwHG8EqqZ0fo83KTuFYBp+qOZePaFSLs NtFWlPqJor/wlB5pKAQoup9RUoeDlhzvgSO/c+pCLYnh4lIJSaOQFOYaEAjkON3w rcRYxjLzBKJ8yih1SFqnfCsDzk4R1PS8sLr43c68Bx5Giz1wCS5el/U7eXKRKAM1 l+E7sNBaJTn2tX9fB4upIuSuNJj5BdqCYV1W7SX8zpIsAetTc7A+CJDsBOdfDpYa Y2JHvGsfwFaF3/IARE6dhmcx+E2zp213Gm06erWlfHTzFUjx4qjzM+wuZFpWZlti b18Fv1/0S2d5WDkg5u+0zNaXvI4Y/b0e+vE9bCOr+Xf1w7UhEE83gA3xBWuyfgOe sFOo65YdR85qJ2ujcB25yTHBZGLTfMm85AjcaIl89zm/GWgSzbVVL1ddM7TKria8 ZAmYqGtYUUMNp3Ud5c+gGN8PaAptRrFRaB9V2VZRD5YeULCt58PdRw6opPgMOQvg l0YlCGeW5AlMtLpRweOubb/AM22QfHCa897Gm7xA/5zAgnayyoGOVEyUSu6naE6z /b0qHi0j40ZXx1PR44/h5CFdMwNfIAorHU16u+8K4F9UIst7b8liiWLXNJlFTzM+ yjjusNTJp2Jr6gbMCk4ZLGPk+0gPErT1B8Qyx4SwXMa+PbGoMSA= =n/Wh -----END PGP SIGNATURE----- --nextPart8587052.CDJkKcVGEf--