You are not logged in.

#1 2022-10-04 19:13:38

nicehand90210
Member
Registered: 2022-03-24
Posts: 31

[Solved] ALSA not working suddenly. No audio. Help Please

I have no audio all the sudden. When opening moc with for instance

mocp music/Scorn/Scorn\ -\ Greetings\ From\ Birmingham\ -\ 2000\ \[V0\]/*.mp3

I get:

Can't load plugin libwavpack_decoder: file not found
Running the server...
Trying JACK...
Trying ALSA...
ALSA lib pcm_dmix.c:999:(snd_pcm_dmix_open) unable to open slave
Trying OSS...

FATAL_ERROR: No valid sound driver!


FATAL_ERROR: Server exited!

and guvcview gets me no audio output from my webcam.

I had /etc/asound.conf configured as such and it was working fine:

defaults.pcm.card 1
defaults.ctl.card 1

…then it stopped working, and I tried deleting /etc/asound.conf, no help.

Not sure what else to do. Tell me if I need to run any ALSA tests or provide more output. Thank you!

Last edited by nicehand90210 (2022-10-05 19:21:33)

Offline

#2 2022-10-04 19:18:01

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [Solved] ALSA not working suddenly. No audio. Help Please


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2022-10-04 19:31:41

nicehand90210
Member
Registered: 2022-03-24
Posts: 31

Re: [Solved] ALSA not working suddenly. No audio. Help Please

Done. Sorry.

Offline

#4 2022-10-04 19:55:11

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 22,138

Re: [Solved] ALSA not working suddenly. No audio. Help Please

Check/post

aplay -lL
sudo dmesg | grep -iE 'snd|sof'

in the least worrysome case then simply your indices shifted around, and 1 no longer being correct/changing.

Last edited by V1del (2022-10-04 19:55:41)

Offline

#5 2022-10-04 21:25:52

nicehand90210
Member
Registered: 2022-03-24
Posts: 31

Re: [Solved] ALSA not working suddenly. No audio. Help Please

`aplay -lL':

null
    Discard all samples (playback) or generate zero samples (capture)
hdmi:CARD=HDMI,DEV=0
    HDA Intel HDMI, HDMI 0
    HDMI Audio Output
hdmi:CARD=HDMI,DEV=1
    HDA Intel HDMI, HDMI 1
    HDMI Audio Output
hdmi:CARD=HDMI,DEV=2
    HDA Intel HDMI, HDMI 2
    HDMI Audio Output
hdmi:CARD=HDMI,DEV=3
    HDA Intel HDMI, HDMI 3
    HDMI Audio Output
hdmi:CARD=HDMI,DEV=4
    HDA Intel HDMI, HDMI 4
    HDMI Audio Output
default:CARD=PCH
    HDA Intel PCH, ALC3232 Analog
    Default Audio Device
sysdefault:CARD=PCH
    HDA Intel PCH, ALC3232 Analog
    Default Audio Device
front:CARD=PCH,DEV=0
    HDA Intel PCH, ALC3232 Analog
    Front output / input
surround21:CARD=PCH,DEV=0
    HDA Intel PCH, ALC3232 Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
    HDA Intel PCH, ALC3232 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
    HDA Intel PCH, ALC3232 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
    HDA Intel PCH, ALC3232 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
    HDA Intel PCH, ALC3232 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
    HDA Intel PCH, ALC3232 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
**** List of PLAYBACK Hardware Devices ****
card 0: HDMI [HDA Intel HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 10: HDMI 4 [HDMI 4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 0: ALC3232 Analog [ALC3232 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

`sudo dmesg | grep -iE 'snd|sof'':

[    0.275458] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.289016] PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
[    0.289018] software IO TLB: mapped [mem 0x00000000bb0d1000-0x00000000bf0d1000] (64MB)
[   30.056427] snd_hda_codec_realtek hdaudioC1D0: autoconfig for ALC3232: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:speaker
[   30.056432] snd_hda_codec_realtek hdaudioC1D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[   30.056434] snd_hda_codec_realtek hdaudioC1D0:    hp_outs=2 (0x16/0x15/0x0/0x0/0x0)
[   30.056436] snd_hda_codec_realtek hdaudioC1D0:    mono: mono_out=0x0
[   30.056437] snd_hda_codec_realtek hdaudioC1D0:    inputs:
[   30.056438] snd_hda_codec_realtek hdaudioC1D0:      Dock Mic=0x19
[   30.056439] snd_hda_codec_realtek hdaudioC1D0:      Mic=0x1a
[   30.056440] snd_hda_codec_realtek hdaudioC1D0:      Internal Mic=0x12
[   30.057234] snd_hda_intel 0000:00:03.0: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])

Offline

#6 2022-10-05 16:56:58

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 22,138

Re: [Solved] ALSA not working suddenly. No audio. Help Please

Your device is there. Is anythig else occupying it? Does

speaker-test -Dhw:1 -c2

not give you noise? What's your output of

sudo fuser -v /dev/snd/*

Offline

#7 2022-10-05 19:20:56

nicehand90210
Member
Registered: 2022-03-24
Posts: 31

Re: [Solved] ALSA not working suddenly. No audio. Help Please

V1del wrote:

Your device is there. Is anythig else occupying it? Does

speaker-test -Dhw:1 -c2

not give you noise? What's your output of

sudo fuser -v /dev/snd/*

The speaker test gave me noise, but I was still getting no audio from applications. From there I tried writing /etc/asound.conf back as it was as such:

defaults.pcm.card 1
defaults.ctl.card 1

…and it worked. I have audio again. So I *guess* I know how to solve this problem from now on, but it would help if I knew what causes the problem to begin with. I'm not sure what you mean by "is anything else occupying it". Could it be that having my webcam already plugged in when I booted up caused the problem? And could it be avoided by waiting until I'm already booted up to plug in my webcam? You know a lot more about this than me so sorry if I'm not really understanding what the root of the problem could be.

Offline

#8 2022-10-05 21:33:11

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 22,138

Re: [Solved] ALSA not working suddenly. No audio. Help Please

That could be, card indices aren't inherently stable, so if you have a webcam plugged in there's a chance it will snatch the 1 position and thus your defaults definition not working anymore. You can fix indices by defining them in modprobe.d module configs. So if you wanted to ensure that the USB headset can never take position 1 away you could e.g. do a /etc/modprobe.d/alsa-base.conf

#-3 will make sure that the USB card will be anything but 0 or 1. 
options snd-usb-audio index=-3 

alternatively use names for the alsa conf definition like

defaults.pcm.!card "PCH"
defaults.ctl.!card "PCH"

Offline

Board footer

Powered by FluxBB