LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   HDMI Sound (http://www.linuxquestions.org/questions/slackware-14/hdmi-sound-858192/)

SavoTU 01-23-2011 04:58 PM

HDMI Sound
 
I am having trouble getting sound to work through hdmi, I changed the device in the kde settings for multimedia and it now works in Amarok but Mplayer and VLC are refusing.

This is the error i am getting with mplayer

[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
[AO_ALSA] alsa-lib: pcm_hw.c:1293:(snd_pcm_hw_open) open '/dev/snd/pcmC0D0p' failed (-2): No such file or directory


I have disabled my sound card in the bios to save confusion (on my part)
Upgraded my kernel to 2.6.37

My gfx card is a NV gt 430 xt

lpallard 01-23-2011 08:04 PM

See http://www.linuxquestions.org/questi...-linux-819172/ & post back with your comments.

I have the very same card. My solution was to upgrade kernel to 2.6.37 because 2.6.33.4 does not support fermi codecs.

EDIT: I initially misread your post and just saw that you already upgraded to 2.6.37....

1. Generate a nvidia-log report (see http://www.nvnews.net/vbulletin/showthread.php?t=46678)

2. According to the content of this report, try one of these (adjust the hw argument to your hdmi device address)

1) Make sure you're running X using the NVIDIA driver and it's driving your HDMI monitor.

2) Run alsamixer -c 2 and unmute everything.

3) Run the following; one of them should work:

speaker-test -c 2 -r 48000 -D hw:X,X

What is the output of these commands:

Code:

aplay -l

cat /proc/asound/devices

cat /proc/aspound/cards

lspci -vv


SavoTU 01-24-2011 05:11 AM

I have seen the thread you linked to which is what prompted me to upgrade my kernel. I just had a quick go at creating a sound.conf but that removed what function i did have.

I am a little short on time at the moment but the output of the commands you listed are below, and i will try and do a nv log tonight.

I don't think there is any problems with the hardware as i am able to play sound in Amarok and VLC now i have selected the card and subdevice instead of the default so i believe i just need to figure out where to make it the system default.

Just thought speaker-test -c2 -twav -Dplughw:0,9 also give audio.


Quote:

root@home:/home/savo# aplay -l
**** 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

Quote:

root@home:/home/savo# cat /proc/asound/devices
2: : timer
3: [ 0- 9]: digital audio playback
4: [ 0- 8]: digital audio playback
5: [ 0- 7]: digital audio playback
6: [ 0- 3]: digital audio playback
7: [ 0- 3]: hardware dependent
8: [ 0- 2]: hardware dependent
9: [ 0- 1]: hardware dependent
10: [ 0- 0]: hardware dependent
11: [ 0] : control
12: : sequencer
Quote:

root@home:/home/savo# cat /proc/asound/cards
0 [NVidia ]: HDA-Intel - HDA NVidia
HDA NVidia at 0xfaf7c000 irq 18
Quote:

02:00.1 Audio device: nVidia Corporation Device 0bea (rev a1)
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 64 bytes
Interrupt: pin B routed to IRQ 18
Region 0: Memory at faf7c000 (32-bit, non-prefetchable) [size=16K]
Capabilities: [60] Power Management version 3
Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
Capabilities: [68] MSI: Enable- Count=1/1 Maskable- 64bit+
Address: 0000000000000000 Data: 0000
Capabilities: [78] Express (v2) Endpoint, MSI 00
DevCap: MaxPayload 128 bytes, PhantFunc 0, Latency L0s <4us, L1 <64us
ExtTag+ AttnBtn- AttnInd- PwrInd- RBE+ FLReset-
DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop+
MaxPayload 128 bytes, MaxReadReq 512 bytes
DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr- TransPend-
LnkCap: Port #0, Speed 2.5GT/s, Width x16, ASPM L0s L1, Latency L0 <256ns, L1 <4us
ClockPM+ Surprise- LLActRep- BwNot-
LnkCtl: ASPM L0s L1 Enabled; RCB 128 bytes Disabled- Retrain- CommClk+
ExtSynch- ClockPM+ AutWidDis- BWInt- AutBWInt-
LnkSta: Speed 2.5GT/s, Width x16, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
DevCap2: Completion Timeout: Not Supported, TimeoutDis+
DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-
LnkCtl2: Target Link Speed: 2.5GT/s, EnterCompliance- SpeedDis-, Selectable De-emphasis: -6dB
Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS-
Compliance De-emphasis: -6dB
LnkSta2: Current De-emphasis Level: -6dB
Kernel driver in use: HDA Intel
Kernel modules: snd-hda-intel

SavoTU 01-25-2011 11:21 AM

I dont seem to be getting anywhere with this at all

Edit

Just thought i should make clear that every thing works and for kde apps its fine but outside of that mplayer etc they are looking i assume for the old analog card.

Quote:

Start of NVIDIA bug report log file. Please include this file
when reporting a graphics driver bug via the nV News NVIDIA
Linux forum (see www.nvnews.net) or by sending email to
'linux-bugs@nvidia.com'.

nvidia-bug-report.sh Version: 8096207

Date: Tue Jan 25 17:16:12 GMT 2011
uname: Linux home 2.6.38-rc2 #1 SMP Mon Jan 24 22:50:20 GMT 2011 x86_64 AMD Athlon(tm) II X2 255 Processor AuthenticAMD GNU/Linux

SavoTU 01-25-2011 11:41 AM

I was just going over what i had done i knew it would be something silly and as usal it was.

I created a ~/.asound.rc with all the correct details but after going over every thing i spotted that it should be ~/.asoundrc after moving that file everything works.

Edit just adding the contents of that file for anyone else who may need it (or myself at a later date).

Quote:

pcm.!default {
type hw
card 0
device 9
}
ctl.!default {
type hw
card 0
device 9
}

cwizardone 01-25-2011 12:52 PM

After working with this problem for awhile I decided it wasn't worth the effort, unless, of course, as someone pointed on in the thread below, you are plugging your computer system into your home entertainment center.

http://www.linuxquestions.org/questi...nvidia-849400/

SavoTU 01-25-2011 02:32 PM

My pc has always been in reach of the TV and i have always used it as a speaker just wanted a one cable setup now.


All times are GMT -5. The time now is 12:42 AM.