Gentoo Archives: gentoo-user

From: Michael <confabulate@××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] USB sound
Date: Tue, 28 Apr 2020 11:54:22
Message-Id: 2032910.Icojqenx9y@lenovo.localdomain
In Reply to: Re: [gentoo-user] USB sound by tuxic@posteo.de
1 On Tuesday, 28 April 2020 12:32:04 BST tuxic@××××××.de wrote:
2 > On 04/28 10:43, Peter Humphrey wrote:
3 > > Morning all,
4 > >
5 > > The motherboard sound chip failed, so I bought a USB sound adapter [1].
6 > > Problem: no sound: firefox says it isn't working and KDE sounds don't
7 > > 'appear'. I have all the likely-looking options set in the kernel
8 > > (5.4.28), modules where possible. I've read the Gentoo wiki articles on
9 > > USB and audio, but they didn't offer any help.
10 > >
11 > > The device uses USB-2 and I have it in a USB-2 socket. I get this on
12 > > plugging it in:
13 > >
14 > > $ dmesg -Hw
15 > > [Apr28 09:49] usb 3-13: new full-speed USB device number 17 using xhci_hcd
16 > > [ +0.127080] usb 3-13: New USB device found, idVendor=0d8c,
17 > > idProduct=0014, bcdDevice= 1.00 [ +0.000002] usb 3-13: New USB device
18 > > strings: Mfr=1, Product=2, SerialNumber=0 [ +0.000002] usb 3-13:
19 > > Product: USB Audio Device
20 > > [ +0.000001] usb 3-13: Manufacturer: C-Media Electronics Inc.
21 > > [ +0.007851] input: C-Media Electronics Inc. USB Audio Device as
22 > > /devices/pci0000:00/0000:00:14.0/usb3/3-13/3-13:1.3/0003:0D8C:0014.000D/i
23 > > nput/input20 [ +0.051184] hid-generic 0003:0D8C:0014.000D: input,hidraw4:
24 > > USB HID v1.00 Device [C-Media Electronics Inc. USB Audio Device] on
25 > > usb-0000:00:14.0-13/input3
26 > >
27 > > Some more diagnostics:
28 > >
29 > > # aplay -l
30 > > **** List of PLAYBACK Hardware Devices ****
31 > > card 0: HDMI [HDA ATI HDMI], device 3: Generic Digital [Generic Digital]
32 > >
33 > > Subdevices: 1/1
34 > > Subdevice #0: subdevice #0
35 > >
36 > > card 2: Device [USB Audio Device], device 0: USB Audio [USB Audio]
37 > >
38 > > Subdevices: 1/1
39 > > Subdevice #0: subdevice #0
40 > >
41 > > # arecord -l
42 > > **** List of CAPTURE Hardware Devices ****
43 > > card 1: USB [HD Webcam USB], device 0: USB Audio [USB Audio]
44 > >
45 > > Subdevices: 1/1
46 > > Subdevice #0: subdevice #0
47 > >
48 > > card 2: Device [USB Audio Device], device 0: USB Audio [USB Audio]
49 > >
50 > > Subdevices: 1/1
51 > > Subdevice #0: subdevice #0
52 > >
53 > > # lsusb -t | grep -i audio
54 > >
55 > > |__ Port 6: Dev 3, If 2, Class=Audio, Driver=snd-usb-audio, 480M
56 > > |__ Port 6: Dev 3, If 3, Class=Audio, Driver=snd-usb-audio, 480M
57 > > |__ Port 13: Dev 17, If 0, Class=Audio, Driver=snd-usb-audio, 12M
58 > > |__ Port 13: Dev 17, If 1, Class=Audio, Driver=snd-usb-audio, 12M
59 > > |__ Port 13: Dev 17, If 2, Class=Audio, Driver=snd-usb-audio, 12M
60 > >
61 > > # lsmod | grep snd
62 > > snd_usb_audio 233472 0
63 > > snd_hwdep 16384 1 snd_usb_audio
64 > > snd_usbmidi_lib 28672 1 snd_usb_audio
65 > > snd_rawmidi 32768 1 snd_usbmidi_lib
66 > > snd_seq_device 16384 1 snd_rawmidi
67 > > mc 40960 4
68 > > videodev,snd_usb_audio,videobuf2_v4l2,videobuf2_common
69 > > snd_hda_codec_generic 77824 1
70 > > snd_hda_intel 28672 0
71 > > snd_intel_nhlt 16384 1 snd_hda_intel
72 > > snd_hda_codec 122880 2 snd_hda_codec_generic,snd_hda_intel
73 > > snd_hda_core 73728 3
74 > > snd_hda_codec_generic,snd_hda_intel,snd_hda_codec snd_pcm
75 > > 98304 4 snd_hda_intel,snd_usb_audio,snd_hda_codec,snd_hda_core snd_timer
76 > > 32768 1 snd_pcm
77 > > snd 81920 10
78 > > snd_hda_codec_generic,snd_seq_device,snd_hwdep,snd_hda_i> soundcore
79 > > 16384 1 snd
80 > >
81 > > Why those Intel modules? The built-in Intel device is switched off in the
82 > > BIOS.
83 > >
84 > > Can anyone point me in the right direction?
85 > >
86 > > 1. The device is a 'Sabrent USB External Stereo Sound Adapter'; The blurb
87 > > at amazon.co.uk includes Linux in its list of OSes. I bought it via
88 > > https://smile.amazon.co.uk/Sabrent-External-Adapter-Windows-AU-MMSA/dp/B0
89 > > 0IRVQ0F8/ref=sr_1_3?dchild=1&keywords=usb+sound&qid=1588065420&sr=8-3
90 > Hi Peter,
91 >
92 > not long ago I had fallen over a very similiar effect.
93 > What cured the problem here was to reboot into the BIOS and to
94 > disable the AUDIO device.
95 >
96 > Cheers!
97 > Meino
98
99 Or, if you need to use all 3, or in this case 2 working devices use /etc/
100 asound.conf to set the preferred default card without altering BIOS settings:
101
102 defaults.pcm.card 2;
103 defaults.ctl.card 2;
104
105 As per wiki page, FF may also need specifying 'rate 48000' for alsa to
106 resample FF's output when feeding it to the card.

Attachments

File name MIME type
signature.asc application/pgp-signature