Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
No sound: Missing snd with systemd, alsa, pulseaudio, pdif
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
betlor5
n00b
n00b


Joined: 12 Jul 2013
Posts: 24

PostPosted: Wed Mar 12, 2014 3:43 am    Post subject: No sound: Missing snd with systemd, alsa, pulseaudio, pdif Reply with quote

Hi,

I have been trying for some days to get my sound working, but so far I haven't been succesful. I guess my main problem is that snd_hda_intel does not show up in my lsmod:
Code:

# lsmod
Module                  Size  Used by
nvidia              10629682  30
x86_pkg_temp_thermal     3141  0
dm_snapshot            27162  0


but I clearly set the alsa option in my kernel:

Code:

# cat /usr/src/linux/useconf | grep SND | grep -v '#'
CONFIG_SND=y
CONFIG_SND_TIMER=y
CONFIG_SND_PCM=y
CONFIG_SND_HWDEP=y
CONFIG_SND_RAWMIDI=y
CONFIG_SND_COMPRESS_OFFLOAD=y
CONFIG_SND_JACK=y
CONFIG_SND_SEQUENCER=y
CONFIG_SND_SEQ_DUMMY=y
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=y
CONFIG_SND_PCM_OSS=y
CONFIG_SND_PCM_OSS_PLUGINS=y
CONFIG_SND_SEQUENCER_OSS=y
CONFIG_SND_DYNAMIC_MINORS=y
CONFIG_SND_MAX_CARDS=32
CONFIG_SND_SUPPORT_OLD_API=y
CONFIG_SND_VERBOSE_PROCFS=y
CONFIG_SND_VMASTER=y
CONFIG_SND_KCTL_JACK=y
CONFIG_SND_DMA_SGBUF=y
CONFIG_SND_RAWMIDI_SEQ=y
CONFIG_SND_AC97_CODEC=y
CONFIG_SND_DRIVERS=y
CONFIG_SND_DUMMY=y
CONFIG_SND_ALOOP=y
CONFIG_SND_VIRMIDI=y
CONFIG_SND_MTPAV=y
CONFIG_SND_PCI=y
CONFIG_SND_HDA_INTEL=y
CONFIG_SND_HDA_PREALLOC_SIZE=64
CONFIG_SND_HDA_HWDEP=y
CONFIG_SND_HDA_RECONFIG=y
CONFIG_SND_HDA_INPUT_BEEP=y
CONFIG_SND_HDA_INPUT_BEEP_MODE=1
CONFIG_SND_HDA_INPUT_JACK=y
CONFIG_SND_HDA_PATCH_LOADER=y
CONFIG_SND_HDA_CODEC_REALTEK=y
CONFIG_SND_HDA_CODEC_ANALOG=y
CONFIG_SND_HDA_CODEC_SIGMATEL=y
CONFIG_SND_HDA_CODEC_VIA=y
CONFIG_SND_HDA_CODEC_HDMI=y
CONFIG_SND_HDA_CODEC_CIRRUS=y
CONFIG_SND_HDA_CODEC_CONEXANT=y
CONFIG_SND_HDA_CODEC_CA0110=y
CONFIG_SND_HDA_CODEC_CA0132=y
CONFIG_SND_HDA_CODEC_CMEDIA=y
CONFIG_SND_HDA_CODEC_SI3054=y
CONFIG_SND_HDA_GENERIC=y
CONFIG_SND_INTEL8X0=y
CONFIG_SND_INTEL8X0M=y
CONFIG_SND_USB=y
CONFIG_SND_USB_AUDIO=y
CONFIG_SND_SOC=y
CONFIG_SND_ATMEL_SOC=y
CONFIG_SND_SOC_I2C_AND_SPI=y
CONFIG_SND_SIMPLE_CARD=y


I am trying to use my intel optical output in order to get the sound to the speekers.
Code:

# lspci -v | grep Audio
00:03.0 Audio device: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller (rev 06)
00:1b.0 Audio device: Intel Corporation 8 Series/C220 Series Chipset High Definition Audio Controller (rev 04)
01:00.1 Audio device: NVIDIA Corporation GK104 HDMI Audio Controller (rev a1)


Code:

# aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
pulse
    PulseAudio Sound Server
default:CARD=Dummy
    Dummy, Dummy PCM
    Default Audio Device
sysdefault:CARD=Dummy
    Dummy, Dummy PCM
    Default Audio Device
default:CARD=Loopback
    Loopback, Loopback PCM
    Default Audio Device
sysdefault:CARD=Loopback
    Loopback, Loopback PCM
    Default Audio Device
hdmi:CARD=MID,DEV=0
    HDA Intel MID, HDMI 0
    HDMI Audio Output
hdmi:CARD=MID,DEV=1
    HDA Intel MID, HDMI 1
    HDMI Audio Output
hdmi:CARD=MID,DEV=2
    HDA Intel MID, HDMI 2
    HDMI Audio Output
default:CARD=PCH
    HDA Intel PCH, ALC898 Analog
    Default Audio Device
sysdefault:CARD=PCH
    HDA Intel PCH, ALC898 Analog
    Default Audio Device
front:CARD=PCH,DEV=0
    HDA Intel PCH, ALC898 Analog
    Front speakers
surround40:CARD=PCH,DEV=0
    HDA Intel PCH, ALC898 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
    HDA Intel PCH, ALC898 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
    HDA Intel PCH, ALC898 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
    HDA Intel PCH, ALC898 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
    HDA Intel PCH, ALC898 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=PCH,DEV=0
    HDA Intel PCH, ALC898 Digital
    IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=NVidia,DEV=0
    HDA NVidia, HDMI 0
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=1
    HDA NVidia, HDMI 1
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=2
    HDA NVidia, HDMI 2
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 3
    HDMI Audio Output


As it statys in the wiki:[url] http://wiki.gentoo.org/wiki/ALSA#S.2FPDIF_or_HDMI_.asoundrc[/url]
I created a .asoundrc
Code:

pcm.!default {
        type hw
        card 5
}

ctl.!default {
        type hw
        card 5
}


and as statet in http://wiki.gentoo.org/wiki/PulseAudio I also removed everybody from the audio group. I also tried diffrent configurations but without any success. In journalctl -b I see:

Code:

pulseaudio[4156]: [pulseaudio] ltdl-bind-now.c: Failed to open module module-oss.so: module-oss.so: cannot open shared object file: No such file or directory
pulseaudio[4156]: [pulseaudio] module.c: Failed to open module "module-oss".
pulseaudio[4156]: [pulseaudio] main.c: Module load failed.
starcruser pulseaudio[4156]: [pulseaudio] main.c: Failed to initialize daemon.
starcruser pulseaudio[4153]: [pulseaudio] main.c: Daemon startup failed.


Therefore I suspect that I also have a problem with pulseaudio. If necessary or recomended I would remove pulseaudio, but as I have read so far you get better sound quallity if you have multiple soundoutputs to one device. As far as the packages for alsa goes:

Code:

# eix alsa
[I] dev-haskell/alsa-core
     Available versions:  (~)0.5.0.1-r2(0/0.5.0.1) {doc hscolour profile}
     Installed versions:  0.5.0.1-r2(04:41:37 03/10/14)(-doc -hscolour -profile)

[I] dev-haskell/alsa-mixer
     Available versions:  (~)0.1.2 (~)0.1.2-r2(0/0.1.2) {doc hscolour profile}
     Installed versions:  0.1.2-r2(04:42:54 03/10/14)(-doc -hscolour -profile)

[I] dev-python/pyalsa
     Available versions:  1.0.26 1.0.26-r1 {PYTHON_TARGETS="pypy2_0 python2_6 python2_7"}
     Installed versions:  1.0.26-r1(05:27:50 03/10/14)(PYTHON_TARGETS="python2_7 -pypy2_0 -python2_6")

[I] media-libs/alsa-lib
     Available versions:  1.0.26-r1 1.0.27.1 ~1.0.27.1-r1 1.0.27.2 {alisp debug doc python ABI_MIPS="n32 n64 o32" ABI_X86="32 64 x32" PYTHON_SINGLE_TARGET="python2_6 python2_7" PYTHON_TARGETS="python2_6 python2_7"}
     Installed versions:  1.0.27.2(23:29:19 03/09/14)(python -alisp -debug -doc ABI_MIPS="-n32 -n64 -o32" ABI_X86="64 -32 -x32" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7")

[I] media-libs/alsa-oss
     Available versions:  1.0.25 {static-libs}
     Installed versions:  1.0.25(17:58:54 03/11/14)(-static-libs)

[I] media-plugins/alsa-plugins
     Available versions:  1.0.26 1.0.27 1.0.27-r1 {debug ffmpeg jack libsamplerate pulseaudio speex}
     Installed versions:  1.0.27-r1(03:51:11 03/10/14)(ffmpeg jack libsamplerate pulseaudio speex -debug)

[I] media-plugins/gst-plugins-alsa
     Available versions:  (0.10) 0.10.36^t
     Installed versions:  0.10.36(0.10)^t(00:01:01 03/02/14)

[I] media-sound/alsa-tools
     Available versions:  (0.9) 1.0.26 1.0.27-r1
       {fltk gtk ALSA_CARDS="darla20 darla24 echo3g emu10k1 emu10k1x gina20 gina24 hdsp hdspm ice1712 indigo indigoio layla20 layla24 mia mixart mona pcxhr rme32 rme96 sb16 sbawe sscape usb-usx2y vx222"}
     Installed versions:  1.0.27-r1(0.9)(05:28:05 03/10/14)(gtk -fltk ALSA_CARDS="emu10k1x -darla20 -darla24 -echo3g -emu10k1 -gina20 -gina24 -hdsp -hdspm -ice1712 -indigo -indigoio -layla20 -layla24 -mia -mixart -mona -pcxhr -rme32 -rme96 -sb16 -sbawe -sscape -usb-usx2y -vx222")

[I] media-sound/alsa-utils
     Available versions:  (0.9) 1.0.26-r2 1.0.27.1-r1 1.0.27.2
       {doc +libsamplerate minimal +ncurses nls selinux}
     Installed versions:  1.0.27.2(0.9)(05:53:08 03/10/14)(libsamplerate ncurses nls -doc -selinux)

[I] media-sound/alsamixergui
     Available versions:  0.9.0.1.2-r4
     Installed versions:  0.9.0.1.2-r4(06:00:49 03/10/14)

[I] sys-firmware/alsa-firmware
     Available versions:  1.0.24.1 1.0.27 {ALSA_CARDS="aica asihpi ca0132 darla20 darla24 echo3g emi26 emu10k1 emu1212 emu1616 emu1820 gina20 gina24 hdsp hdspm indigo indigoio korg1212 layla20 layla24 maestro3 mia mixart mona msnd-pinnacle pcxhr sb16 usb-usx2y vx222 wavefront ymfpci"}
     Installed versions:  1.0.27(17:56:00 03/11/14)(ALSA_CARDS="maestro3 ymfpci -aica -asihpi -ca0132 -darla20 -darla24 -echo3g -emu10k1 -emu1212 -emu1616 -emu1820 -gina20 -gina24 -hdsp -hdspm -indigo -indigoio -korg1212 -layla20 -layla24 -mia -mixart -mona -msnd-pinnacle -pcxhr -sb16 -usb-usx2y -vx222 -wavefront")


as for systemd
Code:

 sys-apps/systemd-208-r2:0/1  USE="acl filecaps firmware-loader gudev introspection kmod pam policykit python tcpd -audit -cryptsetup -doc -gcrypt -http -lzma -qrcode (-selinux) {-test} -vanilla -xattr" ABI_X86="(64) (-32) (-x32)" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" 0 kB


I hope you can help me.
Back to top
View user's profile Send private message
VoidMage
Watchman
Watchman


Joined: 14 Oct 2006
Posts: 5434

PostPosted: Wed Mar 12, 2014 11:32 am    Post subject: Reply with quote

If that's just the problem with the module, coment its load in the configure file.

Also, in .asoundrc, try setting 'defaults.pcm.!card <slot number>' instead of what you did.
Back to top
View user's profile Send private message
ulenrich
Veteran
Veteran


Joined: 10 Oct 2010
Posts: 1136

PostPosted: Wed Mar 12, 2014 11:54 am    Post subject: Reply with quote

I would rather disable all of "alsa" USE flags and delete all of asound config files: It is pulseaudios job to do the config. It is its purpose of existence.
_________________
fun2gen2
Back to top
View user's profile Send private message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2082
Location: Near Toronto

PostPosted: Wed Mar 12, 2014 12:29 pm    Post subject: Reply with quote

Quote:
CONFIG_SND_HDA_INTEL=y


It seems you have sound hard coded into the kernel

(compare

Quote:
CONFIG_SND_HDA_INTEL=m
)

so it won't show up as a module; it might be easier to troubleshoot
if sound stuff is built as modules
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
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