1 |
On Sun, Apr 26, 2020 at 5:31 AM Jorge Almeida <jjalmeida@×××××.com> wrote: |
2 |
|
3 |
> |
4 |
> Well, this is the current state of affairs: |
5 |
> |
6 |
> --recording with "arecord -r 48 -fdat test.wav works |
7 |
> --playback "aplay test.wav" works |
8 |
> --playing a music file foo.wav with aplay works |
9 |
> --playing youtube doesn't work |
10 |
> --playing the same foo.wav file with audacious doesn't work: it |
11 |
> displays the message "ALSA error: snd_pcm_open failed: No such device" |
12 |
> (searching for that string in menuconfig returns nothing) |
13 |
> |
14 |
> Thanks |
15 |
> Jorge |
16 |
> |
17 |
|
18 |
If youtube and audacious don't find the sound card (your ALSA error |
19 |
message) then there's something fundamentally wrong. I installed audacious |
20 |
and it works for me. Let's try and solve a simple playback issue first |
21 |
using youtube: |
22 |
|
23 |
First, I have only 1 card, the Focusrite Scarlett. Keep in mind I'm using |
24 |
Kubuntu (KDE) and there is pulseaudio installed. I do not know what role |
25 |
pulseaudio is playing in my sound stack but I assume it's involved. |
26 |
|
27 |
mark@laptop:~$ pulseaudio |
28 |
E: [pulseaudio] pid.c: Daemon already running. |
29 |
E: [pulseaudio] main.c: pa_pid_file_create() failed. |
30 |
mark@laptop:~$ |
31 |
|
32 |
mark@laptop:~$ cat /proc/asound/cards |
33 |
1 [USB ]: USB-Audio - Scarlett 2i2 USB |
34 |
Focusrite Scarlett 2i2 USB at usb-0000:00:1d.0-1.3, |
35 |
high speed |
36 |
|
37 |
With nothing using sound I see this: (watch subdevices_avail) |
38 |
|
39 |
mark@laptop:~$ cat /proc/asound/USB/pcm0p/sub0/info |
40 |
card: 1 |
41 |
device: 0 |
42 |
subdevice: 0 |
43 |
stream: PLAYBACK |
44 |
id: USB Audio |
45 |
name: USB Audio |
46 |
subname: subdevice #0 |
47 |
class: 0 |
48 |
subclass: 0 |
49 |
subdevices_count: 1 |
50 |
subdevices_avail: 1 |
51 |
|
52 |
I start a youtube video and I se this: |
53 |
|
54 |
mark@laptop:~$ cat /proc/asound/USB/pcm0p/sub0/info |
55 |
card: 1 |
56 |
device: 0 |
57 |
subdevice: 0 |
58 |
stream: PLAYBACK |
59 |
id: USB Audio |
60 |
name: USB Audio |
61 |
subname: subdevice #0 |
62 |
class: 0 |
63 |
subclass: 0 |
64 |
subdevices_count: 1 |
65 |
subdevices_avail: 0 |
66 |
mark@laptop:~$ |
67 |
|
68 |
I stop the video and I see this: |
69 |
|
70 |
mark@laptop:~$ cat /proc/asound/USB/pcm0p/sub0/info |
71 |
card: 1 |
72 |
device: 0 |
73 |
subdevice: 0 |
74 |
stream: PLAYBACK |
75 |
id: USB Audio |
76 |
name: USB Audio |
77 |
subname: subdevice #0 |
78 |
class: 0 |
79 |
subclass: 0 |
80 |
subdevices_count: 1 |
81 |
subdevices_avail: 1 |
82 |
|
83 |
WHERE IS YOUR PLAYBACK AUDIO GOING? |
84 |
|
85 |
1) Completely remove (or rename) the .asoundrc file and restart Alsa. |
86 |
There's no need to define an Alsa virtual card when we just want to use a |
87 |
single piece of USB sound hardware. I don't use one on any of my machines. |
88 |
1a) I do blacklist some sound modules on this machine but that's because |
89 |
Kubuntu wants to load modules I don't want to use. In your Gentoo case you |
90 |
would just not build them, at least when we are testing like this. (ONE |
91 |
STEP AT A TIME!) |
92 |
|
93 |
2) Do you have any pulseaudio stuff installed and running? It might have |
94 |
been installed by some sound application. It is installed and running on my |
95 |
USB machine which I'm comparing to yours but I'm unsure how it's used in |
96 |
general. However from Matt's earlier post it might be required for discord. |
97 |
|
98 |
|
99 |
> $ lsmod|grep snd |
100 |
> snd_usb_audio 221184 0 |
101 |
> snd_usbmidi_lib 28672 1 snd_usb_audio |
102 |
> snd_hwdep 12288 1 snd_usb_audio |
103 |
> snd_pcm 98304 1 snd_usb_audio |
104 |
> snd_rawmidi 28672 1 snd_usbmidi_lib |
105 |
> snd_timer 28672 1 snd_pcm |
106 |
> snd_seq_device 12288 1 snd_rawmidi |
107 |
|
108 |
3) The above looks somewhat similar to mine although it appears you still |
109 |
have the top level snd and soundcore stuff built in. Here's what I'm seeing: |
110 |
|
111 |
mark@laptop:~$ lsmod | grep snd |
112 |
snd_usb_audio 241664 2 |
113 |
snd_usbmidi_lib 36864 1 snd_usb_audio |
114 |
snd_hwdep 20480 1 snd_usb_audio |
115 |
snd_pcm 102400 1 snd_usb_audio |
116 |
snd_seq_midi 20480 0 |
117 |
snd_seq_midi_event 16384 1 snd_seq_midi |
118 |
snd_rawmidi 36864 2 snd_seq_midi,snd_usbmidi_lib |
119 |
snd_seq 69632 2 snd_seq_midi,snd_seq_midi_event |
120 |
snd_seq_device 16384 3 snd_seq,snd_seq_midi,snd_rawmidi |
121 |
snd_timer 36864 2 snd_seq,snd_pcm |
122 |
snd 86016 12 snd_seq,snd_seq_device,snd_hwdep,snd |
123 |
_usb_audio,snd_usbmidi_lib,snd_timer,snd_pcm,snd_rawmidi |
124 |
mc 53248 5 |
125 |
videodev,snd_usb_audio,videobuf2_v4l2,uvcvideo,videobuf2_common |
126 |
|
127 |
soundcore 16384 1 snd |
128 |
|
129 |
|
130 |
|
131 |
|
132 |
mark@laptop:~$ cat /proc/asound/cards |
133 |
1 [USB ]: USB-Audio - Scarlett 2i2 USB |
134 |
Focusrite Scarlett 2i2 USB at usb-0000:00:1d.0-1.3, |
135 |
high speed |
136 |
mark@laptop:~$ cat /proc/asound/modules |
137 |
1 snd_usb_audio |
138 |
mark@laptop:~$ cat /proc/asound/ |
139 |
card1/ cards devices hwdep modules oss/ pcm seq/ |
140 |
timers USB/ version |
141 |
mark@laptop:~$ cat /proc/asound/pcm |
142 |
01-00: USB Audio : USB Audio : playback 1 : capture 1 |
143 |
mark@laptop:~$ cat /proc/asound/version |
144 |
Advanced Linux Sound Architecture Driver Version k5.3.0-46-generic. |
145 |
mark@laptop:~$ cat /proc/asound/USB/ |
146 |
id pcm0c/ pcm0p/ stream0 usbbus usbid usbmixer |
147 |
|
148 |
mark@laptop:~$ cat /proc/asound/USB/pcm0p/ |
149 |
info sub0/ |
150 |
mark@laptop:~$ cat /proc/asound/USB/pcm0p/sub0/ |
151 |
hw_params info status sw_params |
152 |
mark@laptop:~$ cat /proc/asound/USB/pcm0p/sub0/ |
153 |
hw_params info status sw_params |
154 |
mark@laptop:~$ cat /proc/asound/USB/pcm0p/sub0/hw_params |
155 |
closed |