Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Alsa / Nvidia / HDMI = no sound
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
fuzzybee
Apprentice
Apprentice


Joined: 09 May 2005
Posts: 159

PostPosted: Wed Oct 29, 2014 12:59 am    Post subject: Alsa / Nvidia / HDMI = no sound Reply with quote

I've tried for a few days to get this up and going, to no avail.

Code:
 # aplay --list-devices|grep -i HDMI
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
card 1: NVidia [HDA NVidia], device 7: HDMI 0 [HDMI 0]


Code:
# lsmod
Module                  Size  Used by
nvidia              11012499  25
snd_hda_codec_hdmi     36262  4
snd_hda_codec_realtek    50928  1
snd_hda_codec_generic    50667  1 snd_hda_codec_realtek
x86_pkg_temp_thermal     4535  0
snd_hda_intel          16614  0
snd_hda_controller     18329  1 snd_hda_intel
snd_hda_codec          91907  5 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel,snd_hda_controller
snd_hwdep               6084  1 snd_hda_codec
snd_pcm                77810  4 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_controller
snd_timer              17798  1 snd_pcm
snd                    53618  8 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel


Code:
# cat /proc/asound/cards
 0 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0xf7810000 irq 44
 1 [NVidia         ]: HDA-Intel - HDA NVidia
                      HDA NVidia at 0xf7080000 irq 17


Code:
~/.asoundrc:
defaults.pcm.!card NVidia
defaults.pcm.!device 0


Code:
speaker-test -t wav -c 2

speaker-test 1.0.28

Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
WAV file(s)
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 64 to 16384
Period size range from 32 to 8192
Using max buffer size 16384
Periods = 4
was set period_size = 4096
was set buffer_size = 16384
 0 - Front Left
 1 - Front Right
give me no sound.

Using the audio tool in Mythfrontend tells me there's nothing connected to either of my HDMI outputs on my NVidia card.

Any suggestions?
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Wed Oct 29, 2014 7:35 am    Post subject: Reply with quote

it belongs to kernel and hardware.

uname -a

wgetpaste your kernel config

emerge --info

=> for sure a kernel issue
do you use pulseaudio? pulse use flag set?

lspci / lsusb
Back to top
View user's profile Send private message
fuzzybee
Apprentice
Apprentice


Joined: 09 May 2005
Posts: 159

PostPosted: Wed Oct 29, 2014 10:04 am    Post subject: Reply with quote

Thanks for the response.

Code:
 uname -a
Linux strongsad 3.16.5-gentoo #5 SMP Tue Oct 28 20:09:37 EDT 2014 x86_64 Intel(R) Core(TM) i5-2500K CPU @ 3.30GHz GenuineIntel GNU/Linux


/usr/src/.config:
http://pastebin.com/x1XbMh5p

Code:
 # emerge --info
Portage 2.2.8-r2 (default/linux/amd64/13.0, gcc-4.8.3, glibc-2.19-r1, 3.16.5-gentoo x86_64)
=================================================================
System uname: Linux-3.16.5-gentoo-x86_64-Intel-R-_Core-TM-_i5-2500K_CPU_@_3.30GHz-with-gentoo-2.2
KiB Mem:    16310992 total,    104060 free
KiB Swap:     499708 total,    499708 free
Timestamp of tree: Sun, 26 Oct 2014 17:30:01 +0000
ld GNU ld (Gentoo 2.23.2 p1.0) 2.23.2
app-shells/bash:          4.2_p53
dev-lang/perl:            5.18.2-r2
dev-lang/python:          2.7.7, 3.3.5-r1, 3.4.1
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.8.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo squeezebox portage-rich
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="POSIX"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/squeezebox /var/lib/layman/rich0"
USE="X a52 aac acl acpi alsa amd64 amr apache2 apm berkdb bzip2 cairo cdda cdr cli cracklib crypt cxx dri dts encode expat faac ffmpeg fftw firefox flac fontconfig fortran g3dvl gallium gd gdbm gif glut gtk gzip hal iconv imagemagick jpeg lame libvisual libxml lm_sensors mad matroska mmx modules mp3 mpeg multilib mysql mythbrowser mythmusic mythnetvision mythweather ncurses nfs nls nptl nvidia ogg opengl openmp oss pam pcre png python qt3support qt4 quicktime readline sdl server session smp sse sse2 ssl stroke svg tcpd theora threads truetype unicode vdpau vnc vorbis win32codecs x264 xcomposite xine xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON



no pulseaudio in use:
Code:
# cat /etc/portage/make.conf
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-march=native -O2 -pipe"
CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.
MAKEOPTS="-j5"

VIDEO_CARDS="nvidia"

INPUT_DEVICES="evdev keyboard mouse"

USE_AUDIO="a52 aac alsa faac flac lame mad mp3 ogg oss theora vorbis"

USE_GRAPHICS="cairo fftw dri gd gif glut imagemagick jpeg libvisual nvidia opengl png sdl vdpau xv qt3support"

USE_SYSTEM="acpi apm hal lm_sensors mmx smp sse sse2 threads libxml python"

USE_VIDEO="encode ffmpeg matroska mpeg quicktime win32codecs x264 xine xvid"

USE_X="fontconfig stroke truetype X xcomposite"

USE_DISABLE="-cups -doc -dvb -dvd -emacs -ftp -foomaticdb gtk -gnome -imap -ipv6 -kde -seamonkey -gallium -llvm"

USE1="${USE_AUDIO} ${USE_GRAPHICS} ${USE_SYSTEM} ${USE_VIDEO} ${USE_X}"

USE2="amr bzip2 dts expat firefox gzip mysql ncurses nfs nls nptl qt4 server ssl svg vnc xml mythweather mythmusic fftw cdda cdr mythnetvision g3dvl gallium mythbrowser apache2"

USE="${USE_DISABLE} ${USE1} ${USE2}"

PORTDIR="/usr/portage"
source /var/lib/layman/make.conf
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"


Code:
# lspci
00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port (rev 09)
00:02.0 Display controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
00:16.0 Communication controller: Intel Corporation 7 Series/C210 Series Chipset Family MEI Controller #1 (rev 04)
00:1a.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 1 (rev c4)
00:1c.4 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 5 (rev c4)
00:1c.5 PCI bridge: Intel Corporation 82801 PCI Bridge (rev c4)
00:1d.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation Z77 Express Chipset LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation 7 Series/C210 Series Chipset Family 6-port SATA Controller [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation 7 Series/C210 Series Chipset Family SMBus Controller (rev 04)
01:00.0 VGA compatible controller: NVIDIA Corporation GF108 [GeForce GT 430] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GF108 High Definition Audio Controller (rev a1)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 06)
04:00.0 PCI bridge: ASMedia Technology Inc. ASM1083/1085 PCIe to PCI Bridge (rev 03)


Code:
# lsusb
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

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

I do not sit at your box.
May I ask why do you think you ahve a nvidia sound card?

Quote:
00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04)


AFAIK that looks like an integraded chipset INTEL MOBO Chipset sound => therefore assumption sound_hda_intel or what they are called like that.

there was a webpage in the past where you pasted lspci -n output and got a list with needed modules for the linux kernel.

maybe you just need to set every sound setting in the linux kernel as module and try again. make new kernel everything sound related as module, boot that kernel and just hit alsa-mixer to try again.
Back to top
View user's profile Send private message
fuzzybee
Apprentice
Apprentice


Joined: 09 May 2005
Posts: 159

PostPosted: Wed Oct 29, 2014 1:42 pm    Post subject: Reply with quote

I have a sound card built in to the motherboard, but I also have an NVidia video card that I want to use for the HDMI output:

Code:
01:00.1 Audio device: NVIDIA Corporation GF108 High Definition Audio Controller (rev a1)


Hmm - I discovered this in my dmesg:

Code:
[    1.359097] snd_hda_intel 0000:01:00.1: Too many HDMI devices
[    1.359098] snd_hda_intel 0000:01:00.1: Consider building the kernel with CONFIG_SND_DYNAMIC_MINORS=y


so I rebuilt my kernel with CONFIG_SND_DYNAMIC_MINORS=y and with the sound built-in to the kernel. Rebooted, and didn't get the above messge. Now, though, I get this:

Code:
00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04)
        Subsystem: ASRock Incorporation Device 8892
        Flags: bus master, fast devsel, latency 0, IRQ 44
        Memory at f7810000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: [50] Power Management version 2
        Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
        Capabilities: [100] Virtual Channel
        Capabilities: [130] Root Complex Link
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel
and
Code:
01:00.1 Audio device: NVIDIA Corporation GF108 High Definition Audio Controller (rev a1)
        Subsystem: Micro-Star International Co., Ltd. [MSI] Device 2309
        Flags: bus master, fast devsel, latency 0, IRQ 17
        Memory at f7080000 (32-bit, non-prefetchable) [size=16K]
        Capabilities: [60] Power Management version 3
        Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [78] Express Endpoint, MSI 00
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel
I've also noticed that I have the same thing happening on my NVidia video card:
Code:
01:00.0 VGA compatible controller: NVIDIA Corporation GF108 [GeForce GT 430] (rev a1) (prog-if 00 [VGA controller])
        Subsystem: Micro-Star International Co., Ltd. [MSI] Device 2309
        Flags: bus master, fast devsel, latency 0, IRQ 16
        Memory at f6000000 (32-bit, non-prefetchable) [size=16M]
        Memory at e0000000 (64-bit, prefetchable) [size=128M]
        Memory at e8000000 (64-bit, prefetchable) [size=32M]
        I/O ports at e000 [size=128]
        [virtual] Expansion ROM at f7000000 [disabled] [size=512K]
        Capabilities: [60] Power Management version 3
        Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [78] Express Endpoint, MSI 00
        Capabilities: [b4] Vendor Specific Information: Len=14 <?>
        Capabilities: [100] Virtual Channel
        Capabilities: [128] Power Budgeting <?>
        Capabilities: [600] Vendor Specific Information: ID=0001 Rev=1 Len=024 <?>
        Kernel driver in use: nvidia
        Kernel modules: nvidia


Am I wrong in assuming I shouldn't have in-kernel and module at the same time?

Code:
cat /proc/modules
nvidia 11012499 0 - Live 0xffffffffa009f000 (PO)
snd_hda_codec_hdmi 36262 5 - Live 0xffffffffa0090000
snd_hda_codec_generic 50667 1 - Live 0xffffffffa007d000
x86_pkg_temp_thermal 4535 0 - Live 0xffffffffa0065000
snd_hda_intel 17766 0 - Live 0xffffffffa004f000
snd_hda_controller 18329 1 snd_hda_intel, Live 0xffffffffa0045000
snd_hda_codec 91843 4 snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel,snd_hda_controller, Live 0xffffffffa0021000
snd_hwdep 5732 1 snd_hda_codec, Live 0xffffffffa001c000
snd_pcm 75838 4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_controller,snd_hda_codec, Live 0xffffffffa0000000

I can't unload the modules:
Code:
 # modprobe -r snd_hda_codec_hdmi
modprobe: FATAL: Module snd_hda_codec_hdmi is in use.


Code:
 # cat /etc/conf.d/modules
# You can define a list modules for a specific kernel version,
# a released kernel version, a main kernel version or just a list.
# The most specific versioned variable will take precedence.
#modules_2_6_23_gentoo_r5="ieee1394 ohci1394"
#modules_2_6_23="tun ieee1394"
#modules_2_6="tun"
#modules_2="ipv6"
#modules="ohci1394"

# You can give modules a different name when they load - the new name
# will also be used to pick arguments below.
#modules="dummy:dummy1"

# Give the modules some arguments if needed, per version if necessary.
# Again, the most specific versioned variable will take precedence.
#module_ieee1394_args="debug"
#module_ieee1394_args_2_6_23_gentoo_r5="debug2"
#module_ieee1394_args_2_6_23="debug3"
#module_ieee1394_args_2_6="debug4"
#module_ieee1394_args_2="debug5"

# You should consult your kernel documentation and configuration
# for a list of modules and their options.
#modules="nvidia snd-hwdep snd-hda-intel snd-hda-codec-generic snd-hda-codec-hdmi snd-hda-controllersnd-hda-codec"


Have I totally borked this?
Back to top
View user's profile Send private message
hfk22
n00b
n00b


Joined: 02 Dec 2013
Posts: 42

PostPosted: Fri Oct 31, 2014 5:27 am    Post subject: Reply with quote

I had a similar issue a few messages down (https://forums.gentoo.org/viewtopic-t-1002826.html). Basically, I have two sound cards with the HDMI coming out of the NVIDIA card. I describe my final resolution in that post, but here's some things to try:


  • Boot from a Gentoo live CD and run speaker test. If sound comes out, run lsmod. This is how I tracked down what kernel modules were required.
  • Check your settings in alsamixer. I found a combination of settings that prevented sound from coming out. I don't know the magic here, but just try a bunch of different settings and keep running speaker test directly on your device
  • Once speaker test works, you'll likely need to change what sound card is active. An .asoundrc file does that well and I describe how in the above post.
  • I like to run speaker test directly on the device (speaker-test -D) in order to eliminate any issues with the sound cards being ordered in a funny way.


I'm sorry if this is shot in the dark stuff, but perhaps it'll help.
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