LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories
User Name
Password
LinuxQuestions.org Member Success Stories Just spent four hours configuring your favorite program? Just figured out a Linux problem that has been stumping you for months?
Post your Linux Success Stories here.

Notices


Reply
  Search this Thread
Old 06-13-2021, 01:55 PM   #1
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
nVidia HDMI Audio


Using openSUSE Tumbleweed, although this may apply to other distros as well. Relevant hardware information is an nVidia video card with an HDMI connection to a monitor with integrated speakers. This addresses HDMI audio, so the device it's plugged in to shouldn't matter (providing it supports HDMI audio), and it doesn't NECESSARILY have to involved an nVidia card, either.

Using the nVidia repositories for Tumblweed, drivers and all up to date. Audio worked when booting to Windows, and I could easily select between the motherboard analog audio and HDMI audio. Linux, though, only saw the analog audio. First step was making sure the device was seen as an audio device by running through the steps in this other (old) thread:
https://www.linuxquestions.org/quest...nd-4175463313/

Running through the "aplay -l" list, I found this device:
Code:
card 1: PCH [HDA NVidia], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
..and verified it worked by using the aplay command
Code:
aplay -D plughw:PCH,7 /usr/share/sounds/alsa/test.wav
I ran down the list as I did in my other thread to identify the correct device. Since the sound worked, it was a matter of device enumeration.

**NOTE**
This solution is not very flexible! While it works and lives through reboots, I don't yet know if future updates will render it useless. Your mileage may vary.


Edit the /etc/pulse/default.pa file. Find this section:
Code:
### Load audio drivers statically
### (it's probably better to not load these drivers manually, but instead
### use module-udev-detect -- see below -- for doing this automatically)
(comment out the next two lines)
# load-module module-alsa-sink
# load-module module-alsa-source device=hw:0,7
(add this line)
load-module module-alsa-sink device=hw:1,7
In what I posted from the aplay -l output, I bolded the numbers for the card and device. This is where the 1,7 comes from. Also, you need to comment out this section of the default.pa:
Code:
### Automatically load driver modules depending on the hardware available
# .ifexists module-udev-detect.so
# load-module module-udev-detect
# .else
### Use the static hardware detection module (for systems that lack udev support)
# load-module module-detect
# .endif
...and that's it. You can try things manually by running "pulseaudio -k" and "pulseaudio --start", to see if things work without rebooting.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Connect computer hdmi outport to TV hdmi inport. ostene Linux - Software 2 07-04-2014 06:33 AM
LXer: $50 Roku stick goes HDMI y HDMI with Chromecast LXer Syndicated Linux News 0 03-06-2014 01:00 PM
Is it possible to play Blu Ray through a video card HDMI output to HDMI TV? SharpyWarpy Linux - Hardware 5 10-28-2012 01:01 AM
[ProLiant MicroServer, ATI R6xx HDMI, Digital Out, HDMI] No HDMI sound at all vnatius Linux - Hardware 15 08-16-2012 01:09 PM
HDMI Audio doesn't work - Debian Squeeze (Intel HDMI) felipefv Linux - Hardware 8 02-06-2012 09:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories

All times are GMT -5. The time now is 06:11 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