Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem with audio - ALSA woes
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
ate88
n00b
n00b


Joined: 14 Apr 2017
Posts: 3

PostPosted: Fri Apr 14, 2017 3:56 pm    Post subject: Problem with audio - ALSA woes Reply with quote

First I'll say that I'm a sound noob. Yesterday I managed to get sound working on my Thinkpad X60, but I want to set up mpd to listen to an http stream through an ssh tunnel. I added the "lame" useflag (for use as an en/decoder in the stream; not sure if this is necessay) and reemerged mpd (which pulled in lame). Now mpd and firefox make no sound, though my terminal bell works fine.

That's the whole story as far as I know. Maybe lame didn't break anything, but it worked when I went to sleep, and after waking and emerging lame, sound doesn't work.

I've checked all channels in alsamixer and have restarted the machine.

Edit: I forgot to say: I removed the lame useflag from mpd, reemerged mpd, depcleaned, and restarted. No effect.

Devices:
Code:
 $ lsmod
Module                  Size  Used by
xts                     2439  4
dm_crypt               17533  2
dm_mod                 80595  5 dm_crypt
snd_hda_codec_generic    49695  1
iwl3945                50557  0
iwlegacy               42604  1 iwl3945
mac80211              492153  2 iwlegacy,iwl3945
snd_pcsp                6549  0
snd_hda_intel          18328  5
snd_hda_codec          72633  2 snd_hda_intel,snd_hda_codec_generic
snd_hda_core           44356  3 snd_hda_intel,snd_hda_codec,snd_hda_codec_generic
snd_pcm                69850  5 snd_hda_intel,snd_pcsp,snd_hda_codec,snd_hda_core
cfg80211              427850  3 mac80211,iwlegacy,iwl3945
snd_timer              15997  2 snd_pcm
e1000e                158492  0
thinkpad_acpi          58090  0


What alsa sees:
Code:
$ aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
default:CARD=Intel
    HDA Intel, Generic Analog
    Default Audio Device
sysdefault:CARD=Intel
    HDA Intel, Generic Analog
    Default Audio Device
front:CARD=Intel,DEV=0
    HDA Intel, Generic Analog
    Front speakers
surround21:CARD=Intel,DEV=0
    HDA Intel, Generic Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Intel,DEV=0
    HDA Intel, Generic Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Intel,DEV=0
    HDA Intel, Generic Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Intel,DEV=0
    HDA Intel, Generic Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Intel,DEV=0
    HDA Intel, Generic Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Intel,DEV=0
    HDA Intel, Generic Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
default:CARD=pcsp
    pcsp, pcsp
    Default Audio Device
sysdefault:CARD=pcsp
    pcsp, pcsp
    Default Audio Device
front:CARD=pcsp,DEV=0
    pcsp, pcsp
    Front speakers


Any ideas? Thanks in advance.
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3777
Location: sleeping in the bathtub

PostPosted: Fri Apr 14, 2017 8:12 pm    Post subject: Reply with quote

I think you need to determine if sound works with something much simpler than mpd or firefox first, aplay will work for wav files, or mplayer/mpv for most audio formats, or whatever else you may already have installed.

Are you using pulseaudio or not?

lame should only be needed if mpd on your thinkpad will be the source of the streeam, ie only needed for encoding.
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
ate88
n00b
n00b


Joined: 14 Apr 2017
Posts: 3

PostPosted: Fri Apr 14, 2017 9:30 pm    Post subject: Reply with quote

Sadako wrote:
I think you need to determine if sound works with something much simpler than mpd or firefox first, aplay will work for wav files, or mplayer/mpv for most audio formats, or whatever else you may already have installed.


Well, speaker-test doesn't work. I think that's as simple as it gets?

Sadako wrote:
Are you using pulseaudio or not?


Nope, just alsa.

Sadako wrote:
lame should only be needed if mpd on your thinkpad will be the source of the streeam, ie only needed for encoding.


Good to know.

Edit: just tried mpv, no output.
Back to top
View user's profile Send private message
roki942
Apprentice
Apprentice


Joined: 18 Apr 2005
Posts: 247
Location: Seattle

PostPosted: Fri Apr 14, 2017 10:13 pm    Post subject: Reply with quote

This is a very common trap when first using alsa.
Quote:
Mixer

If you can't hear anything, the output channels may be muted. Unmute the channels with the desktop environment's mixer or with alsamixer by selecting the appropriate channels and pressing the M key to mute or unmute:
user $alsamixer

https://wiki.gentoo.org/wiki/ALSA#Mixer
Back to top
View user's profile Send private message
ate88
n00b
n00b


Joined: 14 Apr 2017
Posts: 3

PostPosted: Sat Apr 15, 2017 12:16 am    Post subject: Reply with quote

roki942 wrote:
This is a very common trap when first using alsa.


Like I said, I've checked all of the channels. I've even made sure that they are unmuted using amixer.

What would really help me is a good resource on how to troubleshoot sound issues. All of the documentation I have found has been unusually bad. And most guides are simply a list of fixes for one-off issues.

Edit: I've managed to get audio working on another Thinkpad. I'm not sure how I broke things here, but I don't think it's worth anyone's time. Thanks for the help so far.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum