LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Need help with alsa (no sound) (https://www.linuxquestions.org/questions/linux-from-scratch-13/need-help-with-alsa-no-sound-4175452218/)

Lennie 03-01-2013 05:11 AM

Need help with alsa (no sound)
 
I've been struggling for several days now to get sound working, but still no luck. I have installed alsa-lib, alsa-plugins and alsa-utils. I have also installed flashplugin (I can see youtube videos, but no sound), and all the gst-plugins and most of the optional dependencies (and of course all required.)
lspci -k (the relevant part):
Code:

00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 06)
        Subsystem: ASRock Incorporation Device 2718
        Kernel driver in use: snd_hda_intel


Code:

$ lsmod
Module                  Size  Used by
snd_hda_codec_hdmi    22850  1
snd_hda_codec_via      36503  1
snd_hda_intel          22468  0
snd_hda_codec          75385  3 snd_hda_codec_hdmi,snd_hda_codec_via,snd_hda_intel
snd_hwdep              6053  1 snd_hda_codec
snd_pcm                72206  3 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
snd_page_alloc          6874  2 snd_pcm,snd_hda_intel
snd_timer              17759  1 snd_pcm
snd                    54307  7 snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_via,snd_pcm,snd_hda_codec,snd_hda_intel

Code:

# alsactl init
Found hardware: "HDA-Intel" "Intel IbexPeak HDMI" "HDA:11064428,18492718,00100100 HDA:80862804,80860101,00100000" "0x1849" "0x2718"
Hardware is initialized using a generic method

Code:

$ speaker-test

speaker-test 1.0.26

Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 2048 to 8192
Period size range from 1024 to 1024
Using max buffer size 8192
Periods = 4
was set period_size = 1024
was set buffer_size = 8192
 0 - Front Left
Time per period = 2.836130
 0 - Front Left
Time per period = 2.986532
 0 - Front Left
Time per period = 2.986553
 0 - Front Left
Time per period = 2.986557
 0 - Front Left
^C

Nothing heard in the speaker.

I have run alsamixer, and no channel is muted.

Code:

$ mpg123 Data/Musik/Motörhead/Ace\ Of\ Spades/Ace_of_Spades.mp3
[module.c:142] error: Failed to open module alsa: file not found
[module.c:142] error: Failed to open module oss: file not found
[audio.c:180] error: Unable to find a working output module in this list: alsa,oss
[audio.c:532] error: Failed to open audio output module
[mpg123.c:897] error: Failed to initialize output, goodbye.

I got the same error when I tried as root. I'm a member of group audio.

Edit: Sound works in Arch and Slackware on the same machine.

elucches 03-01-2013 07:30 AM

Did you try aplay -L to then run speaker-test on other devices than the default one?

Lennie 03-01-2013 08:15 AM

Code:

$ speaker-test  -Dfront:Intel -c 6

speaker-test 1.0.26

Playback device is front:Intel
Stream parameters are 48000Hz, S16_LE, 6 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 22 to 5461
Period size range from 11 to 2730
Using max buffer size 5460
Periods = 4
was set period_size = 1365
was set buffer_size = 5460
 0 - Front Left
 4 - Center
 1 - Front Right
 3 - Rear Right
 2 - Rear Left
 5 - LFE
Time per period = 17.800754

I hear noice when it says Front Left and Front Right.

How do I continue from here?

Lennie 03-01-2013 08:38 AM

Strange, now suddenly it works, also with the default channel. (I haven't done any changes, not even rebooted...) Youtube works, but I still get the same error from mpg123. I want to be able to listen to mp3 also. I tried googling the error, but I only found it was about permission. I get the same error as root.

Edit: After a second thought, I haven't planned to use mpg123 now. I only installed it to try the sound, in case the problem was with flash. I mark this thread as solved now, and if I can't get Spotify working, I'll start a new thread about it then.

Edit2: Spotify works! :D


All times are GMT -5. The time now is 10:10 AM.