LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-15-2011, 09:10 PM   #1
gjwalsh
Member
 
Registered: Oct 2010
Location: Victoria, B.C., Canada
Distribution: OpenSuSE Tumbleweed
Posts: 30

Rep: Reputation: 0
Thumbs up unable to set up kernel drivers and modules for HDA Nvidia (audio via hdmi)


I have, for days, been trying to get a Fedora 15 server to send
audio output to the system monitor, an ASUS VH242H, via HDMI.

The video portion works perfectly, allowing me to appreciate GNOME 3
for the first time. Sound, on the other hand, is non-existent.

From many, many threads on this problem, I have at least been able to
provide some info which might help resolve this. Unfortunately, I
have now read too much and followed too many suggestions to be able
to find my way through the morass. So, once again, I built a
completely new system to ensure a clean start.

Note also that to simplify things, I disabled the on-board audio in
BIOS so only Nvidia has any sound output capability.

Initially, 'alsamixer -V all' identifies the card and the chip as
being PulseAudio. That would change if I used the <F6> option but I
have not done so to keep things 'clean' at this point. The 'Master'
is full on (100<>100), so muting is not a problem.

Next, I searched for the device from the output of /proc/asound/card0
which would match the monitor.

The one device associated with the monitor_name is eld#3.0:
-----------------------------------------------------------

monitor_present 1
eld_valid 1
monitor_name ASUS VH242H

connection_type HDMI
eld_version [0x2] CEA-861D or below
edid_version [0x3] CEA-861-B, C or D
manufacture_id 0x6904
product_id 0x24f3
port_id 0x20000
support_hdcp 0
support_ai 0
audio_sync_delay 0
speakers [0x1] FL/FR
sad_count 1
sad0_coding_type [0x1] LPCM
sad0_channels 2
sad0_rates [0xe0] 44100 48000 88200
sad0_bits [0x20000] 16

The applicable nvidia paragraph from lshl output reads:
-------------------------------------------------------

udi = '/org/freedesktop/Hal/devices/pci_10de_de0'
info.linux.driver = 'nvidia' (string)
info.parent = '/org/freedesktop/Hal/devices/pci_10de_458' (string)
info.product = 'Unknown (0x0de0)' (string)
info.subsystem = 'pci' (string)
info.udi = '/org/freedesktop/Hal/devices/pci_10de_de0' (string)
info.vendor = 'nVidia Corporation' (string)
linux.hotplug_type = 2 (0x2) (int)
linux.subsystem = 'pci' (string)
linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:0d.0/0000:04:00.0' (string)
pci.device_class = 3 (0x3) (int)
pci.device_protocol = 0 (0x0) (int)
pci.device_subclass = 0 (0x0) (int)
pci.linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:0d.0/0000:04:00.0' (string)
pci.product_id = 3552 (0xde0) (int)
pci.subsys_product_id = 8968 (0x2308) (int)
pci.subsys_vendor = 'Micro-Star International Co., Ltd.' (string)
pci.subsys_vendor_id = 5218 (0x1462) (int)
pci.vendor = 'nVidia Corporation' (string)
pci.vendor_id = 4318 (0x10de) (int)

Output of 'aplay -l' shows Device 3 this way:
---------------------------------------------

card0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0

If I make use of the System Settings tool for Sound in GNOME 3 I get:
Under the Hardware Tab: Device to configure: HDA NVidia, 1 output,
Digital Stereo (HDMI) Output
Under the Output Tab: Device for sound output:
HDA NVidia Digital Stereo (HDMI) Stereo

All as I would have expected, but there is of course no sound.

Now we get into conflict:

This is the Audio device portion from the output of lspci -k:
-------------------------------------------------------------

04:00.1 Audio device: nVidia Corporation Device 0bea (rev a1)
Subsystem: Micro-Star International Co., Ltd. Device 2308
Kernel driver in use: HDA Intel
Kernel modules: snd-hda-intel

Both the kernel driver and the kernel modules are not what I think I
should have. The kernel driver should be HDA NVidia for starters, no?

Running modprobe -l and looking for nvidia returns: 'kernel/drivers
/video/nvidia/nvidiafb.ko' and 'extra/nvidia/nvidia.ko'

But I have not attempted anything beyond this point because I am just
too confused as to what needs to be done and who or what manages
these values effectively.

I am in real need of guidance here.

Thanks for a helping hand ...

GJW
 
Old 06-15-2011, 09:44 PM   #2
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Quote:
Originally Posted by gjwalsh View Post
This is the Audio device portion from the output of lspci -k:
-------------------------------------------------------------

04:00.1 Audio device: nVidia Corporation Device 0bea (rev a1)
Subsystem: Micro-Star International Co., Ltd. Device 2308
Kernel driver in use: HDA Intel
Kernel modules: snd-hda-intel

Both the kernel driver and the kernel modules are not what I think I
should have. The kernel driver should be HDA NVidia for starters, no?
No, snd-hda-intel is correct, yet you should also probably have snd-hda-codec-hdmi which is a sub-module of snd-hda-intel.

Your kernel config should have CONFIG_SND_HDA_INTEL=m and CONFIG_SND_HDA_CODEC_HDMI=y
 
1 members found this post helpful.
Old 06-16-2011, 03:01 PM   #3
gjwalsh
Member
 
Registered: Oct 2010
Location: Victoria, B.C., Canada
Distribution: OpenSuSE Tumbleweed
Posts: 30

Original Poster
Rep: Reputation: 0
Thanks for responding, Andrew:

Both snd_hda_codec_hdmi and snd_hda_intel are included in the kernel
according to the listing provided by lsmod:

Module Size Used by
usblp 10814 0
tcp_lp 2183 0
fuse 62289 3
sunrpc 195388 1
nvidia 10695339 38
snd_hda_codec_hdmi 22998 4
snd_hda_intel 23678 0
snd_hda_codec 80822 2 snd_hda_codec_hdmi,snd_hda_intel
snd_hwdep 6368 1 snd_hda_codec
snd_seq 52438 0
snd_seq_device 6001 1 snd_seq
snd_pcm 78484 3 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec
snd_timer 19593 2 snd_seq,snd_pcm
r8169 35525 0
snd 62670 8 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_seq,snd_seq_device,snd_pcm,snd_timer
microcode 18117 0
soundcore 6299 1 snd
snd_page_alloc 7431 2 snd_hda_intel,snd_pcm
edac_core 40712 0
mii 4318 1 r8169
edac_mce_amd 13274 0
serio_raw 4426 0
k8temp 3775 0
joydev 9635 0
i2c_nforce2 5958 0
ipv6 282108 32
ata_generic 3675 0
pata_acpi 3443 0
pata_amd 11224 0
nouveau 527278 0
ttm 55120 1 nouveau
drm_kms_helper 27515 1 nouveau
drm 187984 3 nouveau,ttm,drm_kms_helper
i2c_algo_bit 5014 1 nouveau
i2c_core 25468 6 nvidia,i2c_nforce2,nouveau,drm_kms_helper,drm,i2c_algo_bit
video 12432 1 nouveau

I simply do not know where to go next with this.
 
Old 06-16-2011, 03:07 PM   #4
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
post the output of

Code:
aplay -l
(that is an l not a 1)

as a user, not as root.
 
Old 06-16-2011, 10:36 PM   #5
gjwalsh
Member
 
Registered: Oct 2010
Location: Victoria, B.C., Canada
Distribution: OpenSuSE Tumbleweed
Posts: 30

Original Poster
Rep: Reputation: 0
aplay -l output (as user):

**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 7: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 8: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 9: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
 
Old 06-18-2011, 06:57 PM   #6
gjwalsh
Member
 
Registered: Oct 2010
Location: Victoria, B.C., Canada
Distribution: OpenSuSE Tumbleweed
Posts: 30

Original Poster
Rep: Reputation: 0
OK: I have sound working finally. I'm an old hand at Unix - back to its beginning over 40 years ago, but always in a work-to-do-applications-to build server environment. Never paid much attention to the 'pretty stuff' and know nothing of whatever MicroSoft has dished out for dollars over all these years.

That being said, here is what I did differently.

First, I accepted whatever running 'alsamixer -V all' displayed, no matter how confusing it seemed to be. This meant leaving <F6> untouched and therefore set to 'default', with PulseAudio (heaven help it!) in charge of both card and chip. I had previously disabled the on-board sound at BIOS to keep things clean and simple.

Ran 'aplay -l' again, which showed no changes from the original posting above.

Once again, looked among the 4 eld drivers listed in /proc/asound/card0 to see which was being used by the system, ie the only one in which the monitor_name is correctly identified together with connection type 'HDMI'. In my case that continues to be eld#3.0 which, being the 4th driver, corresponds to a probe_mask=0x108.

This is where I had 'dropped the ball'. I needed to edit /etc/modprobe.d/dist-alsa.conf by adding a line reading: options send-hda-intel enable_msi=0 probe_mask=0x108

That done, selecting 'Sound' from the System Settings Tool, under the Hardware Tab, shows
'HDA NVidia 1 output Digital Stereo (HDMI) Output'. That was good news. Then selecting 'Test Speakers' provided immediate aural gratification.

A reboot to 'lock in' the changes and we are happy campers here.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
nVidia HDMI Audio Doesn't Work scott12087 Linux - Hardware 19 03-09-2011 04:43 PM
Sound over hdmi ati HDA Steviepower Linux - Hardware 1 05-11-2010 01:13 PM
integrated hda audio modem bluetooth , (intel hda audio does not work) reggae linux Linux - Laptop and Netbook 1 07-05-2006 10:13 PM
integrated hda audio modem bluetooth , (intel hda audio does not work) reggae linux Linux - Laptop and Netbook 2 07-05-2006 03:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration