Gentoo Archives: gentoo-user

From: Mark Knecht <markknecht@×××××.com>
To: Gentoo User <gentoo-user@l.g.o>
Subject: Re: [gentoo-user] USB sound
Date: Tue, 28 Apr 2020 14:21:29
Message-Id: CAK2H+ee7Et+vbkVQz8hbkoj4gJJ1F+4MKieXjmsBsUybzmqe2w@mail.gmail.com
In Reply to: Re: [gentoo-user] USB sound by Peter Humphrey
1 On Tue, Apr 28, 2020 at 6:51 AM Peter Humphrey <peter@××××××××××××.uk>
2 wrote:
3 >
4 > On Tuesday, 28 April 2020 14:18:52 BST Mark Knecht wrote:
5 >
6 > Has KMail started misbehaving again? I'm certain I read a reply from
7 Michael,
8 > but now there's no trace of it after a reboot (see below). Anyway, I
9 created
10 > an /etc/asound.conf with the content he recommended. That gave me sound
11 back.
12 > Thanks Michael.
13 >
14
15 I don't use asound.conf on any of my machines. Be careful about mixing
16 instructions from multiple folks trying to help you. It will confuse us (or
17 me anyway) to no end.
18
19 > > 1) First, if you really don't want the intel stuff loaded then either
20 don't
21 > > build it in your kernel or (easier - it's what I do) just blacklist the
22 > > intel sound driver. The following link has some instructions which
23 explain
24 > > the process.
25 >
26 > > https://www.techtimejourney.net/how-to-blacklist-a-sound-card-in-linux/
27 >
28 > Thanks for the pointer, Mark.
29 >
30 > > Please provide the output of
31 > >
32 > > ls /proc/asound
33 > > cat /proc/asound/cards
34 > > cat /proc/asound/modules
35 >
36 > # ls /proc/asound
37 > card0 card2 Device HDMI modules pcm timers version
38 > card1 cards devices hwdep oss seq USB
39 >
40 > # cat /proc/asound/cards
41 > 0 [HDMI ]: HDA-Intel - HDA ATI HDMI
42 > HDA ATI HDMI at 0xfbe60000 irq 59
43 > 1 [USB ]: USB-Audio - HD Webcam USB
44 > HD Webcam USB HD Webcam USB at usb-0000:00:14.0-6,
45 high
46 > speed
47 > 2 [Device ]: USB-Audio - USB Audio Device
48 > C-Media Electronics Inc. USB Audio Device at
49 > usb-0000:00:14.0-13, full speed
50 >
51 > # cat /proc/asound/modules
52 > 0 snd_hda_intel
53 > 1 snd_usb_audio
54 > 2 snd_usb_audio
55 >
56
57 OK, so card 0 is using snd_hda_intel. Card 0 is most likely the default
58 location that sound is going. Blacklisting it will help. That said you have
59 2 USB devices so we need to be careful about extra confusion there. For
60 simplicity you might just unplug the webcam (if you can - if this is a
61 built-in in a laptop then I understand you have limitations.)
62
63 > > 1) First, if you really don't want the intel stuff loaded then either
64 don't
65 > > build it in your kernel or (easier - it's what I do) just blacklist the
66 > > intel sound driver. The following link has some instructions which
67 explain
68 > > the process.
69 > >
70 > > https://www.techtimejourney.net/how-to-blacklist-a-sound-card-in-linux/
71 > >
72 > > Restart Alsa and double check the cards and modules shown in
73 /proc/asound.
74 > >
75 > > 2) As you are on KDE you likely have pulseaudio running. Run
76 pavucontrol,
77 > > run Firefox with some audio and see where you are sending Firefox audio.
78 >
79 > Nope. No pulseaudio.
80 >
81
82 What is the output of pulseaudio at the command line?
83
84 Or maybe just no pluseaudio tools, or whatever it's called on Gentoo
85 assuming it's a separate package. I'm no longer running Gentoo (I just find
86 this list the best place to get real info) A quick google for pavucontrol
87 suggests you can emerge media-sound/pavucontrol to get it.
88
89 Use KDE systemsettings, search for sound, choose 'Multimedia', Under 'Audio
90 Volume' what do you see? What device is set as default? (This part of
91 systemsettings is very similar to pavucontrol but it doesn't give you the
92 VU meters which are nicely visible to see what apps are generating audio.
93
94
95 > > 3) You probably don't have to mess with Alsa configuration itself to fix
96 > > this so keep it simple for now. We can go there later if need be.
97 >
98 > Meanwhile there are a few complications. First, I also have a webcam with
99 a
100 > microphone. I should have unplugged this before asking my question.
101 >
102
103 Agreed. Leave it disconnected for now for simplicity.
104
105 > Second, there's a sound driver in my Radeon Pro WX 5100, which I may want
106 to
107 > experiment with later if I can find a way to extract the sound from my
108 > DisplayPort link (not HDMI after all; I was mistaken about that in an
109 earlier
110 > thread). I can't disable it anyway, as far as I know. It may account for
111 the
112 > Intel modules.
113 >
114
115 No problem. Either blacklist the driver (easy) or rebuild the kernel
116 WITHOUT the driver (easy). Either should get rid of snd_hda_intel
117
118 > Third, I haven't any alsa packages installed, except for alsamixer which I
119 > installed to help with this problem (it didn't). There's no starting or
120 > stopping alsa; KDE seems to have what it needs without alsa specifically.
121 > That's why I had no asound.conf; it's also why I rebooted instead of doing
122 > something less heavy handed. Then again, why do I need an asound.conf?
123 >
124
125 No. The fact that you can cat "/proc/asound" asound being "Alsa Sound" says
126 Alsa is running. Alsa talks to your sound card hardware and provides a
127 "single application" interface to the sound cards. Pulseaudio provides a
128 mixer so that multiple apps can all send sound to your hardware.
129
130 I personally don't think you need asound.conf until you prove that you have
131 a need to do some sort of non-standard configuration. That _might_ be
132 defining a different default card but KDE can do that for you in system
133 settings so my recommendation is no asound.conf for now. Use KDE as it's
134 intended and (over the long run) I think it's more maintainable. However,
135 you are completely free to use your system any way you want.
136
137
138
139 > --
140 > Regards,
141 > Peter.
142 >
143 >
144 >

Replies

Subject Author
Re: [gentoo-user] USB sound Michael <confabulate@××××××××.com>
Re: [gentoo-user] USB sound Peter Humphrey <peter@××××××××××××.uk>