hdmi soundproblem with a gt 210
#1
hey guys,

i cant get the hdmi sound working over hdmi,
the alsamixer didnt recognize the HDA nvidia device,

ubuntu minimal with xbmc and xbmclive works all very nice.

i am very new to linux so i dont really know what i am doing here Wink
so i did this tutorial

so i installed new alsa drivers
downloaded them from the alsa-project.org
and compile / installed them wiith: ./configure, make , make install.
worked all well but after reboote i get:

xbmc@xbmclinux:~$ aplay -l
aplay: device_list:223: no soundcards found...
xbmc@xbmclinux:~$

then i reinstalled the alsa stuff with:
sudo apt-get --purge remove linux-sound-base alsa-base alsa-utils
sudo apt-get install linux-sound-base alsa-base alsa-utils

still no soundcard found with aplay -l

xbmc@xbmclinux:~$ modinfo soundcore
filename: /lib/modules/2.6.32-28-generic/kernel/sound/soundcore.ko
alias: char-major-14-*
license: GPL
author: Alan Cox
description: Core sound module
srcversion: 51925557ECF0F2838930862
depends:
vermagic: 2.6.32-28-generic SMP mod_unload modversions 586
parm: preclaim_oss:int

the kernel is running i think.
xbmc@xbmclinux:/$ sudo grep 'audio' /etc/group
audio:x:29:xbmc

xbmc is allowed to use the uadio devices i think

snd_hda_codec_nvhdmi 2065 0
snd_hda_codec 69953 1 snd_hda_codec_nvhdmi
snd_hwdep 5572 1 snd_hda_codec
snd_pcm_oss 34475 0
snd_mixer_oss 13801 1 snd_pcm_oss
snd_pcm 69351 2 snd_hda_codec,snd_pcm_oss
snd_seq_oss 27146 0
snd_seq_midi_event 6003 1 snd_seq_oss
snd_seq 47498 4 snd_seq_oss,snd_seq_midi_event
snd_timer 18624 2 snd_pcm,snd_seq
snd_seq_device 5956 2 snd_seq_oss,snd_seq
snd 54562 9 snd_hda_codec,snd_hwdep,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_seq,snd_timer,snd_seq_device
soundcore 6620 1 snd
snd_page_alloc 7076 1 snd_pcm
xbmc@xbmclinux:/$ ^C
xbmc@xbmclinux:/$


snd_hda_codec_nvhdmi are listed in it..

lspci -v gives me :
05:00.1 Audio device: nVidia Corporation High Definition Audio Controller (rev a1)
Flags: bus master, fast devsel, latency 0, IRQ 11
Memory at f2000000 (32-bit, non-prefetchable) [size=16K]
Capabilities: <access denied>

so the system knows the soundcard somehow
what is this access denied??

xbmc@xbmclinux:/$ sudo modprobe snd-hda-codec-nvhdmi
WARNING: /etc/modprobe.d/lirc_imon.conf line 3: ignoring bad line starting with '</iframe></noscript></object></layer></span></div></table></body></html><!--'
WARNING: /etc/modprobe.d/lirc_imon.conf line 4: ignoring bad line starting with '<script'
xbmc@xbmclinux:/$

doesnt sound good..

i configured sudo nano /etc/modules

and wrote snd-hda-codec-nvhdmi in the last line to get the drivers loded after reboot but didnt work Sad

i could really need some help here 8)
Reply
#2
somehow i got some sucess but still no sound xD

i used this setup.sh to get the newest alsa drivers, atleast 1.0.23 is required for hdmi audi with a gt210/220

xbmc@xbmc-desktop:~$ 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

xbmc@xbmc-desktop:~$ sudo cat /proc/asound/cards

0 [NVidia ]: HDA-Intel - HDA NVidia
HDA NVidia at 0xf2000000 irq 18


and it shows in alsamixer !! but i just got 4 times the" IEC958 0 -1 -2 -3

Image
i can unmute it (not change lvl) but it doesnt show up as a hardware output in the ubuntu desktop.

aplay -L
default:CARD=NVidia
HDA NVidia
Default Audio Device
front:CARD=NVidia
HDA NVidia
Front speakers
surround40:CARD=NVidia
HDA NVidia
4.0 Surround output to Front and Rear speakers
surround41:CARD=NVidia
HDA NVidia
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=NVidia
HDA NVidia
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=NVidia
HDA NVidia
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=NVidia
HDA NVidia
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=NVidia
HDA NVidia
IEC958 (S/PDIF) Digital Audio Output
null
Discard all samples (playback) or generate zero samples (capture)

looks pretty good for me already but pllzz help me to get it working 8)
Reply
#3
i did the following steps:
- remove pulse audio
- install alsa: apt-get install esound
this installs all required packages
on ubuntu earlier 10.10 you need to upgrade linux-alsa-driver-modules-2.6.32
register this ppa: https://launchpad.net/~ubuntu-audio-dev/+archive/ppa
- create a whatever.conf file in /etc/modprobe.d/ or append a line to alsa-base.conf
Code:
options snd-hda-intel enable_msi=0 probe_mask=0x1,0x2
finding out the right bit mask is a little try and error: see
http://www.kernel.org/pub/linux/kernel/p...Audio.html
inspect your syslog and change the mask if there are errors, the line above worked for my gt220
- run gstreamer-properties and set to alsa, this way you get system sounds
- you need /etc/asound.conf, mine tooks like this
Code:
pcm.!default {
    type plug
    slave.pcm "dmixer"
}

pcm.dmixer  {
    type dmix
    ipc_key 1024
    ipc_key_add_uid false
    ipc_perm 0660
    slave {
        pcm "hw:1,3"
        period_time 0
        period_size 1024
        buffer_size 4096
        rate 48000
        channels 2
    }
    bindings {
        0 0
        1 1
    }
}

ctl.dmixer {
    type hw
    card 1
}
you might have to change card and device
- do not forget to set resample rate to 48000 in xbmc's advancedsettings.xml
Reply

Logout Mark Read Team Forum Stats Members Help
hdmi soundproblem with a gt 2100