Gentoo Archives: gentoo-user

From: Jorge Almeida <jjalmeida@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] ALSA wizard...
Date: Thu, 23 Apr 2020 09:46:45
Message-Id: CAKpSnpLdGjze4-jXCZeSR4nOGTAjVU7uhrhBCGKw_r1X_iC0Jw@mail.gmail.com
In Reply to: Re: [gentoo-user] ALSA wizard... by Michael
1 On Thu, Apr 23, 2020 at 9:19 AM Michael <confabulate@××××××××.com> wrote:
2 >
3 > I recall you having problems recording with this device before, but since
4 > you're now a step ahead let's have another go at this, in case I may be able
5 > to help.
6
7 Yes, this is not the same issue (the former problem was: I wasn't
8 getting anything from the RCA output; maybe it isn't supposed to--no
9 documentation provided with the device--or that part is broken;
10 anyway, I gave up on the RCA; the device works fine as a USB sound
11 card)
12
13 >
14
15 > > > The setup:
16 > > > -- a microphone connected to an audio interface, which connects to an
17 > > > USB port in the computer. The interface works like a USB sound card,
18 > > > at least regarding sound capture. It works: I can record my voice with
19 > > > arecord into a wav file, and then play the file with aplay.
20 > > > -- a (motherboard) sound card with a toslink output connected to an
21 > > > external DAC/amplifier. It works: playing wav, youtube, etc.
22 > > >
23 > > > The problem:
24 > > > I need to use it for voice chat. I tried slack and discord (the latter
25 > > > both via browser and app--there's a package in portage--, the former
26 > > > only via browser). No sound, neither outbound nor inbound.
27 > > > None of these programs provides a way to tell them which devices to
28 > > > use, so I assume they just go for some default.
29 >
30 > Yes, this is the case or you're missing some audio module/driver/firmware,
31 > which is probably unlikely for a device which presents itself over a USB
32 > interface.
33 Yes, and the device works for recording; the playing together with the
34 other card (for output) is the problem, which I believe is a matter of
35 having an appropriate .asoundrc (the syntax of which beats me)
36
37 > If an application like vlc allows you to get audio output by
38 > switching devices, then you know you will have to change the order of your
39 > cards as they are detected by the kernel.
40
41 the kernel consistently detects the MO card and the USB card in the
42 same order (MO: card 0, USB: card 1).
43
44 >
45 > QUESTION: I am not familiar with your hardware, but is dmesg *only*
46 > identifying it as a USB device? I'm asking this because you may need to
47 > additionally configure e.g. a serial/parallel interface to the device for
48 > controlling it, or at least adding yourself to some user group, if USB alone
49 > won't suffice.
50 >
51 [ 726.441114] input: Burr-Brown from TI USB Audio CODEC
52 as /devices/pci0000:00/0000:00:14.0/usb1/1-10/1-10:1.3/0003:08BB:2902.0005/input/input21
53 [ 726.492970] hid-generic 0003:08BB:2902.0005: input,hidraw3: USB HID
54 v1.00 Device [Burr-Brown from TI USB Audio CODEC ] on
55 usb-0000:00:14.0-10/input3
56 [ 726.493002] usb 1-10: authorized to connect
57
58
59 I'm in the group "audio" and the permissions of /dev/snd/* are right (0660)
60 >
61 > > > I don't have a .asoundrc file. Contents of /etc/alsa/conf.d/ are not
62 > > > customized.
63 >
64 > OK, this is noteworthy, you may need to do some tweaking in such a file,
65 > depending which audio card is detected first and what controls are made
66 > available.
67
68
69
70 > > > sysdefault:CARD=PCH
71 >
72 > OK, this shows your audio card on the MoBo is picked up by default as the
73 > first card.
74 >
75 >
76 > > > HDA Intel PCH, Generic Analog
77 > > > Default Audio Device
78 > > >
79 > > > front:CARD=PCH,DEV=0
80 > > >
81 > > > HDA Intel PCH, Generic Analog
82 > > > Front speakers
83 > > >
84 > > > usbstream:CARD=PCH
85 > > >
86 > > > HDA Intel PCH
87 > > > USB Stream Output
88 > > >
89 > > > sysdefault:CARD=CODEC
90 >
91 > This is what you want to configure as the default audio device.
92
93 Only for capturing, not for playing!
94
95
96
97
98 >
99 > In the first instance create a new file (for system-wide settings):
100 >
101 > /etc/asound.conf.
102 >
103 > Add in it:
104 >
105 > defaults.pcm.card 1
106 > defaults.pcm.device 0
107 > defaults.ctl.card 1
108 >
109 > which hopefully will make your second card configured to be the default.
110
111 But that will make the USB card the default for both input and output.
112 The USB card should take care of the input (microphone) and the MB
113 card should deal with the output (digital signal sent to external
114 DAC/amplifier via toslink cable).
115 >
116 > More detailed settings and tweaking can be found here:
117 >
118 > https://www.alsa-project.org/main/index.php/Asoundrc
119
120 I know that page. It doesn't give a hint about how set defaults with
121 input and output through different cards.
122 >
123 Thanks
124
125 Jorge

Replies

Subject Author
Re: [gentoo-user] ALSA wizard... Michael <confabulate@××××××××.com>