LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 12-07-2019, 10:10 AM   #1
BigAlambic
LQ Newbie
 
Registered: Dec 2019
Distribution: Slackware
Posts: 3

Rep: Reputation: Disabled
ALSA sound always goes through one of Nvidia hdmi output


Hello.
I have Nvidia card with monitor and TV. Both have speackers. And I can't manually play sound on TV.
Code:
bash-4.3$ aplay -L | grep CARD
sysdefault:CARD=PCH
front:CARD=PCH,DEV=0
surround21:CARD=PCH,DEV=0
surround40:CARD=PCH,DEV=0
surround41:CARD=PCH,DEV=0
surround50:CARD=PCH,DEV=0
surround51:CARD=PCH,DEV=0
surround71:CARD=PCH,DEV=0
iec958:CARD=PCH,DEV=0
hdmi:CARD=NVidia,DEV=0
hdmi:CARD=NVidia,DEV=1
hdmi:CARD=NVidia,DEV=2

bash-4.3$ aplay -l | grep card
card 0: PCH [HDA Intel PCH], device 0: ALC892 Analog [ALC892 Analog]
card 0: PCH [HDA Intel PCH], device 1: ALC892 Digital [ALC892 Digital]
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
card 1: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
card 1: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]


aplay -D hw:1,3 piano2.wav  - plays monitor device
aplay -D hw:1,7 piano2.wav  - plays monitor device
aplay -D hw:1,8 piano2.wav  - plays monitor device
Maybe you can tell me what I'm doing wrong?
 
Old 12-07-2019, 07:05 PM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
no but can you describe what kind of cables connect your PC to the TV please?

BTW your aplay hw 1 output already tells you that card1 is playing to the monitor which I can safely assume means you have a hdmi cable from PC to monitor.

Leaping ahead....either you have a hdmi cable going from PC to TV
or 3.5 mm cable from analog "holes" direct from PC to TV
or cable to some surround sound system....but it connects to TV input but that is not clear to me.
 
Old 12-08-2019, 12:28 AM   #3
BigAlambic
LQ Newbie
 
Registered: Dec 2019
Distribution: Slackware
Posts: 3

Original Poster
Rep: Reputation: Disabled
They are both hdmi and connected to the same NVIDIA.
There is no problem with TV or cable or card as by hardware.

I deleted ~/.asound.conf and /etc/asound.conf, rebooted and created new /etc/asound.conf with simple

Code:
defaults.pcm.card 1
defaults.pcm.device 3
defaults.ctl.card 1
and once it helped me until reboot and sound start to play on TV, not on a monitor. But there is no sense in this file and manually pointing device in "aplay -D"
Looks like some conflict somewhere.
 
Old 12-09-2019, 01:53 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Which card does ALSA default to if you don't tell it anything?
Apparently you need to change that.
Keep in mind that they start counting at 0 (zero), so card 1 is actually the 2nd card.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] HDMI - do all video cards support sound through the HDMI port? taylorkh Linux - Hardware 4 01-24-2016 01:35 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

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

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