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 DDEF1138350 for ; Thu, 23 Apr 2020 08:19:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 746A1E0B51; Thu, 23 Apr 2020 08:19:39 +0000 (UTC) Received: from mail-gw.thundermail.uk (mail-gw.thundermail.uk [149.255.60.73]) (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 E7274E0AFA for ; Thu, 23 Apr 2020 08:19:38 +0000 (UTC) Received: from mailgw01.thundermail.uk (mail-gw.thundermail.uk [149.255.60.66]) by mail-gw.thundermail.uk (Postfix) with ESMTPS id 0739B600316A for ; Thu, 23 Apr 2020 09:19:37 +0100 (BST) X-ASG-Debug-ID: 1587629976-055413682b3980040001-LfjuLa Received: from cloud307.thundercloud.uk (cloud307.thundercloud.uk [149.255.58.40]) by mailgw01.thundermail.uk with ESMTP id NZrYpfbq2YE8mmCY (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO) for ; Thu, 23 Apr 2020 09:19:36 +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 A0846C447BD for ; Thu, 23 Apr 2020 09:19:35 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kintzios.com; s=default; t=1587629976; bh=Xbcg9V14B7oLL9B+pixIRCS6UOFDwTuOJ+NSG2dbSe8=; h=From:To:Subject; b=FatpBNbifjyNceaxXPQDeJq+F4MY5C/RI61lBM3gz2FzuE+AZTsO2i0mSzsAbST08 zXmzxQ6KCey4MXSPKLfOMqwJEtTBftDpsbukY9X7Z+h0dVHAPgJnkP1eWQrE2w9XUc Y1/WJ+w+31wr2CfNiBTQmVmpNSMceLiF0h5M/6ZE= 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: Thu, 23 Apr 2020 09:19:19 +0100 X-ASG-Orig-Subj: Re: [gentoo-user] ALSA wizard... Message-ID: <7749250.T7Z3S40VBb@lenovo.localdomain> In-Reply-To: References: 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="nextPart9685384.nUPlyArG6x"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-PPP-Message-ID: <20200423081936.1014476.46835@cloud307.thundercloud.uk> X-PPP-Vhost: kintzios.com X-Barracuda-Connect: cloud307.thundercloud.uk[149.255.58.40] X-Barracuda-Start-Time: 1587629976 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: 6648 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.81371 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Archives-Salt: c141cf77-5f10-4180-91b1-d6f95cd946a6 X-Archives-Hash: 7d0605b30af0f0b9a4981e2ef88d73c1 --nextPart9685384.nUPlyArG6x Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" I recall you having problems recording with this device before, but since you're now a step ahead let's have another go at this, in case I may be able to help. > On Wed, Apr 22, 2020 at 2:57 PM Jorge Almeida wrote: > > ... desperately needed. > > > > The setup: > > -- a microphone connected to an audio interface, which connects to an > > USB port in the computer. The interface works like a USB sound card, > > at least regarding sound capture. It works: I can record my voice with > > arecord into a wav file, and then play the file with aplay. > > -- a (motherboard) sound card with a toslink output connected to an > > external DAC/amplifier. It works: playing wav, youtube, etc. > > > > The problem: > > I need to use it for voice chat. I tried slack and discord (the latter > > both via browser and app--there's a package in portage--, the former > > only via browser). No sound, neither outbound nor inbound. > > None of these programs provides a way to tell them which devices to > > use, so I assume they just go for some default. Yes, this is the case or you're missing some audio module/driver/firmware, which is probably unlikely for a device which presents itself over a USB interface. If an application like vlc allows you to get audio output by switching devices, then you know you will have to change the order of your cards as they are detected by the kernel. QUESTION: I am not familiar with your hardware, but is dmesg *only* identifying it as a USB device? I'm asking this because you may need to additionally configure e.g. a serial/parallel interface to the device for controlling it, or at least adding yourself to some user group, if USB alone won't suffice. > > I don't have a .asoundrc file. Contents of /etc/alsa/conf.d/ are not > > customized. OK, this is noteworthy, you may need to do some tweaking in such a file, depending which audio card is detected first and what controls are made available. > > Maybe some ALSA wiz that happens to be familiar with discord can > > suggest something? > > > > Thanks > > > > Jorge Almeida > > > > $ cat /proc/asound/devices > > > > 1: : sequencer > > 2: [ 0- 0]: digital audio playback > > 3: [ 0- 0]: digital audio capture > > 4: [ 0- 1]: digital audio playback > > 5: [ 0- 2]: digital audio capture > > 6: [ 0- 3]: digital audio playback > > 7: [ 0] : control > > 8: [ 1- 0]: digital audio playback > > 9: [ 1- 0]: digital audio capture > > > > 10: [ 1] : control > > 33: : timer > > > > $ arecord -L > > null > > > > Discard all samples (playback) or generate zero samples (capture) > > > > sysdefault:CARD=PCH OK, this shows your audio card on the MoBo is picked up by default as the first card. > > HDA Intel PCH, Generic Analog > > Default Audio Device > > > > front:CARD=PCH,DEV=0 > > > > HDA Intel PCH, Generic Analog > > Front speakers > > > > usbstream:CARD=PCH > > > > HDA Intel PCH > > USB Stream Output > > > > sysdefault:CARD=CODEC This is what you want to configure as the default audio device. > > USB Audio CODEC, USB Audio > > Default Audio Device > > > > front:CARD=CODEC,DEV=0 > > > > USB Audio CODEC, USB Audio > > Front speakers > > > > surround21:CARD=CODEC,DEV=0 > > > > USB Audio CODEC, USB Audio > > 2.1 Surround output to Front and Subwoofer speakers > > > > surround40:CARD=CODEC,DEV=0 > > > > USB Audio CODEC, USB Audio > > 4.0 Surround output to Front and Rear speakers > > > > surround41:CARD=CODEC,DEV=0 > > > > USB Audio CODEC, USB Audio > > 4.1 Surround output to Front, Rear and Subwoofer speakers > > > > surround50:CARD=CODEC,DEV=0 > > > > USB Audio CODEC, USB Audio > > 5.0 Surround output to Front, Center and Rear speakers > > > > surround51:CARD=CODEC,DEV=0 > > > > USB Audio CODEC, USB Audio > > 5.1 Surround output to Front, Center, Rear and Subwoofer speakers > > > > surround71:CARD=CODEC,DEV=0 > > > > USB Audio CODEC, USB Audio > > 7.1 Surround output to Front, Center, Side, Rear and Woofer speakers > > > > iec958:CARD=CODEC,DEV=0 > > > > USB Audio CODEC, USB Audio > > IEC958 (S/PDIF) Digital Audio Output > > > > usbstream:CARD=CODEC > > > > USB Audio CODEC > > USB Stream Output > > > > $ aplay -L > > null > > > > Discard all samples (playback) or generate zero samples (capture) > > > > sysdefault:CARD=PCH > > > > HDA Intel PCH, Generic Analog > > Default Audio Device > > > > front:CARD=PCH,DEV=0 > > > > HDA Intel PCH, Generic Analog > > Front speakers > > > > surround21:CARD=PCH,DEV=0 > > > > HDA Intel PCH, Generic Analog > > 2.1 Surround output to Front and Subwoofer speakers > > > > surround40:CARD=PCH,DEV=0 > > > > HDA Intel PCH, Generic Analog > > 4.0 Surround output to Front and Rear speakers > > > > surround41:CARD=PCH,DEV=0 > > > > HDA Intel PCH, Generic Analog > > 4.1 Surround output to Front, Rear and Subwoofer speakers > > > > surround50:CARD=PCH,DEV=0 > > > > HDA Intel PCH, Generic Analog > > 5.0 Surround output to Front, Center and Rear speakers > > > > surround51:CARD=PCH,DEV=0 > > > > HDA Intel PCH, Generic Analog > > 5.1 Surround output to Front, Center, Rear and Subwoofer speakers > > > > surround71:CARD=PCH,DEV=0 > > > > HDA Intel PCH, Generic Analog > > 7.1 Surround output to Front, Center, Side, Rear and Woofer speakers > > > > iec958:CARD=PCH,DEV=0 > > > > HDA Intel PCH, Generic Digital > > IEC958 (S/PDIF) Digital Audio Output > > > > hdmi:CARD=PCH,DEV=0 > > > > HDA Intel PCH, Generic Digital > > HDMI Audio Output > > > > usbstream:CARD=PCH > > > > HDA Intel PCH > > USB Stream Output > > > > sysdefault:CARD=CODEC > > > > USB Audio CODEC, USB Audio > > > > I know iec958:CARD=CODEC,DEV=0 is the appropriate device for capture > > and that iec958:CARD=PCH,DEV=0 is the appropriate device for playback, > > because it's what works with -D. In the first instance create a new file (for system-wide settings): /etc/asound.conf. Add in it: defaults.pcm.card 1 defaults.pcm.device 0 defaults.ctl.card 1 which hopefully will make your second card configured to be the default. More detailed settings and tweaking can be found here: https://www.alsa-project.org/main/index.php/Asoundrc HTH. --nextPart9685384.nUPlyArG6x Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAl6hT4cACgkQseqq9sKV Zxl/uw/+PSxqOv8TqDgc+lLA/dbsVfTp56H/t5e+9vF3CpTjmK+OmOzy0NSLYw9N 2k8zj+tuXl5/AtMIi7Atwgiil6DNad0Xg+XqzPqFKHXeN0qs4AavqTfGbwvJlTZI drypeUZe7aUBTa9wLBTkJjVX+XB2N35bTk6txvjMqORGnz8a+uEVh83JhKHekTxZ Rx4IPYxaRTzMN/tsObLtNQuSuITv2/cDgcw94f/Xvz9CdJ8YxtYF6AHyJI14S8FQ ie5Bxy1XuXgf9DnbxzMF15b8U6hqJ7n/LrH7mlX8DVrEXxkyUk6ym+Vf4Z/6Xfui Hyix9nDamzsDnQQ4eHb+dX/qC7cmFXz/DJH6AlDFmgOdojccDZUzbdTbjCyubzGk ikz/ktxXwtAekRj8oTSnOWJyEk3r9v37KSIfL5h3td9q0dpzqkqg41/C+WY+D2QN lnEevOiqD+B8GtW96B8d8jAVXiGS15Y8ShVyShujY1QHRpkOtyhMnnUaJhrMcLJI 7nv1XEIuUDj0Cbpj9cLdUxqtqAWcWaKaoInoDhV1di5RgGtJ87ULMIsaeoWDiSd4 8+2nd2OJyywR1rHXtFhBvHBauGuv5tRv7r5hkOxaehRGcc6v3yMepRA15OvlmHgE 8bj8pZpyru9QD1SjBjMvcAsM1jKmVXeAdM3Ff69SypsWI65sMY0= =cmIh -----END PGP SIGNATURE----- --nextPart9685384.nUPlyArG6x--