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 755CB138350 for ; Thu, 23 Apr 2020 00:42:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 10604E0BF8; Thu, 23 Apr 2020 00:42:24 +0000 (UTC) Received: from mail-qv1-xf36.google.com (mail-qv1-xf36.google.com [IPv6:2607:f8b0:4864:20::f36]) (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 BAC1FE0AB8 for ; Thu, 23 Apr 2020 00:42:23 +0000 (UTC) Received: by mail-qv1-xf36.google.com with SMTP id p13so1991960qvt.12 for ; Wed, 22 Apr 2020 17:42:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=1ojESn6+jjP1OMkZK3pRZX4aA6cMiRKzEoxI6VX4tZo=; b=i2jI4+qJ0HZ4uHi6rqkVrMGhMngVb8sdph7FanTmeKjb9Wni9uBKsy22ZahiCxOKT1 C7Eo+PLNnP59a6w/R1FUxZ+Ub19K+EJp/egvggqy17q24gpx1DVZo2gPAknZYjiyQ4be NMbYMGo8vM2E8BfVG5hAZYBtaaFRhZZzps59TELehMGyE2DBr6rGctKI+FBKZvFr70Zv zULFEFhLQfiCtTYjLp8GRVYpH75v7CVkfIIFuUnDgaYDCCcQ09XfmmENOMe54XcW0n2N FqxJvjW59i9FBIimaFW56R/fsYbGfiQKidHh/mbqb5agmHzkANQWnPtnoCnfqqjRw3Hf qBaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=1ojESn6+jjP1OMkZK3pRZX4aA6cMiRKzEoxI6VX4tZo=; b=fclhgHftkFtKNrZ+MbH6YRmZn+wBxy9xeQcc8mGuDdvK2YjDCXdpy9Y2e/RgksJoJg ojkDMPZxVOn85M51WIJRnoP95QKWXeA5m7w6SNF9yhHTBV2NSOE9QFZ1KptK0eh/TF/L 3MQDnL4F0W4vZE2CXiiJ/VlZi7q4+ziUFu+Kd1cYOoahZSXsn7Rs03bEDK819ofriN8G f57bxeyfjomlDtRg3wskX6Quo0kJq5pvksThaYCyR4/fJxmBW5t0I/RGuIzjSL1OjCNU OF8NUjwZpMJax4n1o6F7IhqPllihMoEsx+L6BPbP+LgEG9j4sVBHX1lTzARJGCy7kjJo wTeA== X-Gm-Message-State: AGi0PuY8kAtfKVT75LGdcaRq+6V27FicjIqgBQqI0wdGqHSnoUJ3kv3B x0k3t2knbU3gulGXbctRcLRs5Xgr4Tb5GddsZHtKDXE6 X-Google-Smtp-Source: APiQypLzjUT8mrgql0ilZ92KuWicmV4Vr1ElaR47c6uGDW32DPbEZO9T74oDpATgPcJuEkIICHBa4cTYhrzzr0nGdv4= X-Received: by 2002:a0c:f8c4:: with SMTP id h4mr1811502qvo.15.1587602542509; Wed, 22 Apr 2020 17:42:22 -0700 (PDT) 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 References: In-Reply-To: From: Mark Knecht Date: Wed, 22 Apr 2020 17:42:11 -0700 Message-ID: Subject: Re: [gentoo-user] ALSA wizard... To: Gentoo User Content-Type: multipart/alternative; boundary="00000000000097436905a3ea8598" X-Archives-Salt: 18ee6de6-f898-4d82-ad74-efb7e536c891 X-Archives-Hash: 45f16489ceec356489c6fc0b5bf260a1 --00000000000097436905a3ea8598 Content-Type: text/plain; charset="UTF-8" Jorge, Sorry for top posting. I'm at a site with limited capabilities at the moment. Please forgive. I'm slightly confused by the question but before I get into that please provide the output of cat /proc/asound/cards cat /proc/asound/modules What desktop environment are you using? What kernel are you running? Thanks, Mark 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. > I don't have a .asoundrc file. Contents of /etc/alsa/conf.d/ are not > customized. > 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 > 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 > 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. > > --00000000000097436905a3ea8598 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Jorge,
=C2=A0 =C2=A0Sorry for top posting. I'm at = a site with limited capabilities at the moment. Please forgive.
<= br>
=C2=A0 =C2=A0I'm slightly confused by the question but be= fore I get into that please provide the output of

= cat /proc/asound/cards
cat /proc/asound/modules

What desktop environment are you using?

Wh= at kernel are you running?

Thanks,
Mark<= /div>

On Wed, Apr 22, 2020 at 2:57 PM Jorge Almeida <jjalmeida@gmail.com> 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.
I don't have a .asoundrc file. Contents of /etc/alsa/conf.d/ are not customized.
Maybe some ALSA wiz that happens to be familiar with discord can
suggest something?

Thanks

Jorge Almeida

$ cat /proc/asound/devices
=C2=A0 1:=C2=A0 =C2=A0 =C2=A0 =C2=A0 : sequencer
=C2=A0 2: [ 0- 0]: digital audio playback
=C2=A0 3: [ 0- 0]: digital audio capture
=C2=A0 4: [ 0- 1]: digital audio playback
=C2=A0 5: [ 0- 2]: digital audio capture
=C2=A0 6: [ 0- 3]: digital audio playback
=C2=A0 7: [ 0]=C2=A0 =C2=A0: control
=C2=A0 8: [ 1- 0]: digital audio playback
=C2=A0 9: [ 1- 0]: digital audio capture
=C2=A010: [ 1]=C2=A0 =C2=A0: control
=C2=A033:=C2=A0 =C2=A0 =C2=A0 =C2=A0 : timer

$ arecord -L
null
=C2=A0 =C2=A0 Discard all samples (playback) or generate zero samples (capt= ure)
sysdefault:CARD=3DPCH
=C2=A0 =C2=A0 HDA Intel PCH, Generic Analog
=C2=A0 =C2=A0 Default Audio Device
front:CARD=3DPCH,DEV=3D0
=C2=A0 =C2=A0 HDA Intel PCH, Generic Analog
=C2=A0 =C2=A0 Front speakers
usbstream:CARD=3DPCH
=C2=A0 =C2=A0 HDA Intel PCH
=C2=A0 =C2=A0 USB Stream Output
sysdefault:CARD=3DCODEC
=C2=A0 =C2=A0 USB Audio CODEC, USB Audio
=C2=A0 =C2=A0 Default Audio Device
front:CARD=3DCODEC,DEV=3D0
=C2=A0 =C2=A0 USB Audio CODEC, USB Audio
=C2=A0 =C2=A0 Front speakers
surround21:CARD=3DCODEC,DEV=3D0
=C2=A0 =C2=A0 USB Audio CODEC, USB Audio
=C2=A0 =C2=A0 2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=3DCODEC,DEV=3D0
=C2=A0 =C2=A0 USB Audio CODEC, USB Audio
=C2=A0 =C2=A0 4.0 Surround output to Front and Rear speakers
surround41:CARD=3DCODEC,DEV=3D0
=C2=A0 =C2=A0 USB Audio CODEC, USB Audio
=C2=A0 =C2=A0 4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=3DCODEC,DEV=3D0
=C2=A0 =C2=A0 USB Audio CODEC, USB Audio
=C2=A0 =C2=A0 5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=3DCODEC,DEV=3D0
=C2=A0 =C2=A0 USB Audio CODEC, USB Audio
=C2=A0 =C2=A0 5.1 Surround output to Front, Center, Rear and Subwoofer spea= kers
surround71:CARD=3DCODEC,DEV=3D0
=C2=A0 =C2=A0 USB Audio CODEC, USB Audio
=C2=A0 =C2=A0 7.1 Surround output to Front, Center, Side, Rear and Woofer s= peakers
iec958:CARD=3DCODEC,DEV=3D0
=C2=A0 =C2=A0 USB Audio CODEC, USB Audio
=C2=A0 =C2=A0 IEC958 (S/PDIF) Digital Audio Output
usbstream:CARD=3DCODEC
=C2=A0 =C2=A0 USB Audio CODEC
=C2=A0 =C2=A0 USB Stream Output

$ aplay -L
null
=C2=A0 =C2=A0 Discard all samples (playback) or generate zero samples (capt= ure)
sysdefault:CARD=3DPCH
=C2=A0 =C2=A0 HDA Intel PCH, Generic Analog
=C2=A0 =C2=A0 Default Audio Device
front:CARD=3DPCH,DEV=3D0
=C2=A0 =C2=A0 HDA Intel PCH, Generic Analog
=C2=A0 =C2=A0 Front speakers
surround21:CARD=3DPCH,DEV=3D0
=C2=A0 =C2=A0 HDA Intel PCH, Generic Analog
=C2=A0 =C2=A0 2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=3DPCH,DEV=3D0
=C2=A0 =C2=A0 HDA Intel PCH, Generic Analog
=C2=A0 =C2=A0 4.0 Surround output to Front and Rear speakers
surround41:CARD=3DPCH,DEV=3D0
=C2=A0 =C2=A0 HDA Intel PCH, Generic Analog
=C2=A0 =C2=A0 4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=3DPCH,DEV=3D0
=C2=A0 =C2=A0 HDA Intel PCH, Generic Analog
=C2=A0 =C2=A0 5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=3DPCH,DEV=3D0
=C2=A0 =C2=A0 HDA Intel PCH, Generic Analog
=C2=A0 =C2=A0 5.1 Surround output to Front, Center, Rear and Subwoofer spea= kers
surround71:CARD=3DPCH,DEV=3D0
=C2=A0 =C2=A0 HDA Intel PCH, Generic Analog
=C2=A0 =C2=A0 7.1 Surround output to Front, Center, Side, Rear and Woofer s= peakers
iec958:CARD=3DPCH,DEV=3D0
=C2=A0 =C2=A0 HDA Intel PCH, Generic Digital
=C2=A0 =C2=A0 IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=3DPCH,DEV=3D0
=C2=A0 =C2=A0 HDA Intel PCH, Generic Digital
=C2=A0 =C2=A0 HDMI Audio Output
usbstream:CARD=3DPCH
=C2=A0 =C2=A0 HDA Intel PCH
=C2=A0 =C2=A0 USB Stream Output
sysdefault:CARD=3DCODEC
=C2=A0 =C2=A0 USB Audio CODEC, USB Audio

I know iec958:CARD=3DCODEC,DEV=3D0 is the appropriate device for capture and that iec958:CARD=3DPCH,DEV=3D0 is the appropriate device for playback,<= br> because it's what works with -D.

--00000000000097436905a3ea8598--