You are not logged in.

#1 2009-08-15 03:55:23

sip03ds
Member
Registered: 2009-07-09
Posts: 21

Nvidia Mcp79 Hdmi - Alsa

Hello to everybody,

I recently bought an ASROCK ION 330BD in order to build a HTPC. After installing the latest image of x86_64 arch, I tried to configure it in order to playback HD content.

The PC is connected to the TV [Philips 32PFL9613D] via HDMI.  I tried the ALSA wiki in order to configure the card and installed the following packages:

- alsa-lib
- alsa-utils
- alsa-plugins
- alsa-oss
- ladspa
- swh-plugins

The modules show that they are loaded properly as:

[user@htpc ~]$ aplay -L
default:CARD=NVidia
    HDA NVidia, VT1708S Analog
    Default Audio Device
front:CARD=NVidia,DEV=0
    HDA NVidia, VT1708S Analog
    Front speakers
surround40:CARD=NVidia,DEV=0
    HDA NVidia, VT1708S Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=NVidia,DEV=0
    HDA NVidia, VT1708S Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=NVidia,DEV=0
    HDA NVidia, VT1708S Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=NVidia,DEV=0
    HDA NVidia, VT1708S Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=NVidia,DEV=0
    HDA NVidia, VT1708S Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=NVidia,DEV=0
    HDA NVidia, VT1708S Digital
    IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=NVidia,DEV=0
    HDA NVidia, NVIDIA HDMI
    HDMI Audio Output
null
    Discard all samples (playback) or generate zero samples (capture)

and

[user@htpc ~]$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 0: VT1708S Analog [VT1708S Analog]
  Subdevices: 2/2
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
card 0: NVidia [HDA NVidia], device 1: VT1708S Digital [VT1708S Digital]
  Subdevices: 2/2
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
card 0: NVidia [HDA NVidia], device 3: NVIDIA HDMI [NVIDIA HDMI]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

As ALSA wiki suggests, I tried:

% aplay -D plughw:0,3 /usr/share/sounds/alsa/Front_Center.wav

and I still do not get sound.

I tried to switch the default device to HDMI via System Settings -> Multimedia in KDE, but KDE is reports that there is a problem and that the sound device is falling back to default.

I will appreciate any help.

Thanks

Last edited by sip03ds (2009-08-15 03:56:05)

Offline

#2 2009-08-15 07:04:54

djszapi
Member
From: Cambridge, United Kingdom
Registered: 2009-06-14
Posts: 1,439
Website

Re: Nvidia Mcp79 Hdmi - Alsa

Hello sip03ds!

Which kernel do you use ?

"and I still do not get sound." -> Is there any error output if you start it from console ? Did you try with oss, does that work, just alsa not ? Did you try with other application, like mplayer, madplay, mpg123 e.g. ?

Offline

#3 2009-08-15 07:57:38

sip03ds
Member
Registered: 2009-07-09
Posts: 21

Re: Nvidia Mcp79 Hdmi - Alsa

To answer your questions:

1. I am using the latest kernel 2.6.30-ARCH (x86_64)
2. I do not get any errors when I start it on the console
3. I do not have sound at all in the desktop environment (KDE) therefore mplayer / vlc etc do not produce any sound.
4. I tried OSS and I had sound, but it was not decoded correclty.

Offline

#4 2009-08-15 08:18:04

sip03ds
Member
Registered: 2009-07-09
Posts: 21

Re: Nvidia Mcp79 Hdmi - Alsa

More over, running the script found here: http://alsa.opensrc.org/index.php/Aadebug

I had the following output:

ALSA Audio Debug v0.1.0 - Sat Aug 15 11:16:56 EEST 2009
http://alsa.opensrc.org/aadebug                        
http://www.gnu.org/licenses/gpl.txt                    

Kernel ----------------------------------------------------
Linux htpc 2.6.30-ARCH #1 SMP PREEMPT Fri Jul 31 07:30:28 CEST 2009 x86_64 Intel(R) Atom(TM) CPU 330 @ 1.60GHz GenuineIntel GNU/Linux                                                                                                                       

Loaded Modules --------------------------------------------
snd_seq_dummy           3540  0                            
snd_seq_oss            36224  0                            
snd_seq_midi_event      8592  1 snd_seq_oss                
snd_seq                64640  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device          8324  3 snd_seq_dummy,snd_seq_oss,snd_seq           
snd_hda_codec_nvhdmi     4368  1                                            
snd_pcm_oss            47328  0                                             
snd_mixer_oss          20976  1 snd_pcm_oss                                 
snd_hda_codec_via      36372  1                                             
snd_hda_intel          31208  4                                             
snd_hda_codec          82128  3 snd_hda_codec_nvhdmi,snd_hda_codec_via,snd_hda_intel
snd_hwdep               9976  1 snd_hda_codec                                       
snd_pcm                90872  4 snd_pcm_oss,snd_hda_intel,snd_hda_codec             
snd_timer              25344  3 snd_seq,snd_pcm                                     
snd                    76744  16 snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer                                                                                                       
snd_page_alloc         10784  2 snd_hda_intel,snd_pcm                                                                         

Proc Config -----------------------------------------------
CONFIG_SOUND=m                                             
CONFIG_SOUND_OSS_CORE=y                                    
CONFIG_SND=m                                               
CONFIG_SND_TIMER=m                                         
CONFIG_SND_PCM=m                                           
CONFIG_SND_HWDEP=m                                         
CONFIG_SND_RAWMIDI=m                                       
CONFIG_SND_JACK=y                                          
CONFIG_SND_SEQUENCER=m                                     
CONFIG_SND_SEQ_DUMMY=m                                     
CONFIG_SND_OSSEMUL=y                                       
CONFIG_SND_MIXER_OSS=m                                     
CONFIG_SND_PCM_OSS=m                                       
CONFIG_SND_PCM_OSS_PLUGINS=y                               
CONFIG_SND_SEQUENCER_OSS=y                                 
CONFIG_SND_HRTIMER=m                                       
CONFIG_SND_SEQ_HRTIMER_DEFAULT=y                           
CONFIG_SND_DYNAMIC_MINORS=y                                
CONFIG_SND_SUPPORT_OLD_API=y                               
CONFIG_SND_VERBOSE_PROCFS=y                                
# CONFIG_SND_VERBOSE_PRINTK is not set                     
# CONFIG_SND_DEBUG is not set                              
CONFIG_SND_VMASTER=y                                       
CONFIG_SND_MPU401_UART=m                                   
CONFIG_SND_OPL3_LIB=m                                      
CONFIG_SND_VX_LIB=m                                        
CONFIG_SND_AC97_CODEC=m                                    
CONFIG_SND_DRIVERS=y                                       
# CONFIG_SND_PCSP is not set                               
CONFIG_SND_DUMMY=m                                         
CONFIG_SND_VIRMIDI=m                                       
CONFIG_SND_MTPAV=m                                         
CONFIG_SND_MTS64=m                                         
CONFIG_SND_SERIAL_U16550=m                                 
CONFIG_SND_MPU401=m                                        
CONFIG_SND_PORTMAN2X4=m                                    
CONFIG_SND_AC97_POWER_SAVE=y                               
CONFIG_SND_AC97_POWER_SAVE_DEFAULT=0                       
CONFIG_SND_SB_COMMON=m                                     
CONFIG_SND_SB16_DSP=m                                      
CONFIG_SND_PCI=y                                           
CONFIG_SND_AD1889=m                                        
CONFIG_SND_ALS300=m                                        
CONFIG_SND_ALS4000=m                                       
CONFIG_SND_ALI5451=m                                       
CONFIG_SND_ATIIXP=m                                        
CONFIG_SND_ATIIXP_MODEM=m                                  
CONFIG_SND_AU8810=m                                        
CONFIG_SND_AU8820=m                                        
CONFIG_SND_AU8830=m                                        
CONFIG_SND_AW2=m                                           
CONFIG_SND_AZT3328=m                                       
CONFIG_SND_BT87X=m                                         
# CONFIG_SND_BT87X_OVERCLOCK is not set                    
CONFIG_SND_CA0106=m                                        
CONFIG_SND_CMIPCI=m                                        
CONFIG_SND_OXYGEN_LIB=m                                    
CONFIG_SND_OXYGEN=m                                        
CONFIG_SND_CS4281=m                                        
CONFIG_SND_CS46XX=m                                        
CONFIG_SND_CS46XX_NEW_DSP=y                                
CONFIG_SND_CS5530=m                                        
CONFIG_SND_DARLA20=m                                       
CONFIG_SND_GINA20=m                                        
CONFIG_SND_LAYLA20=m                                       
CONFIG_SND_DARLA24=m                                       
CONFIG_SND_GINA24=m                                        
CONFIG_SND_LAYLA24=m                                       
CONFIG_SND_MONA=m                                          
CONFIG_SND_MIA=m                                           
CONFIG_SND_ECHO3G=m                                        
CONFIG_SND_INDIGO=m                                        
CONFIG_SND_INDIGOIO=m                                      
CONFIG_SND_INDIGODJ=m                                      
CONFIG_SND_INDIGOIOX=m                                     
CONFIG_SND_INDIGODJX=m                                     
CONFIG_SND_EMU10K1=m                                       
CONFIG_SND_EMU10K1X=m                                      
CONFIG_SND_ENS1370=m                                       
CONFIG_SND_ENS1371=m                                       
CONFIG_SND_ES1938=m                                        
CONFIG_SND_ES1968=m                                        
CONFIG_SND_FM801=m                                         
CONFIG_SND_FM801_TEA575X_BOOL=y                            
CONFIG_SND_FM801_TEA575X=m                                 
CONFIG_SND_HDA_INTEL=m                                     
CONFIG_SND_HDA_HWDEP=y                                     
CONFIG_SND_HDA_RECONFIG=y                                  
CONFIG_SND_HDA_INPUT_BEEP=y                                
CONFIG_SND_HDA_CODEC_REALTEK=y                             
CONFIG_SND_HDA_CODEC_ANALOG=y                              
CONFIG_SND_HDA_CODEC_SIGMATEL=y                            
CONFIG_SND_HDA_CODEC_VIA=y                                 
CONFIG_SND_HDA_CODEC_ATIHDMI=y                             
CONFIG_SND_HDA_CODEC_NVHDMI=y                              
CONFIG_SND_HDA_CODEC_INTELHDMI=y                           
CONFIG_SND_HDA_ELD=y                                       
CONFIG_SND_HDA_CODEC_CONEXANT=y                            
CONFIG_SND_HDA_CODEC_CMEDIA=y                              
CONFIG_SND_HDA_CODEC_SI3054=y                              
CONFIG_SND_HDA_GENERIC=y                                   
CONFIG_SND_HDA_POWER_SAVE=y                                
CONFIG_SND_HDA_POWER_SAVE_DEFAULT=0                        
CONFIG_SND_HDSP=m                                          
CONFIG_SND_HDSPM=m                                         
CONFIG_SND_HIFIER=m                                        
CONFIG_SND_ICE1712=m                                       
CONFIG_SND_ICE1724=m                                       
CONFIG_SND_INTEL8X0=m                                      
CONFIG_SND_INTEL8X0M=m                                     
CONFIG_SND_KORG1212=m                                      
CONFIG_SND_MAESTRO3=m                                      
CONFIG_SND_MIXART=m                                        
CONFIG_SND_NM256=m                                         
CONFIG_SND_PCXHR=m                                         
CONFIG_SND_RIPTIDE=m                                       
CONFIG_SND_RME32=m                                         
CONFIG_SND_RME96=m                                         
CONFIG_SND_RME9652=m                                       
CONFIG_SND_SONICVIBES=m                                    
CONFIG_SND_TRIDENT=m                                       
CONFIG_SND_VIA82XX=m                                       
CONFIG_SND_VIA82XX_MODEM=m                                 
CONFIG_SND_VIRTUOSO=m                                      
CONFIG_SND_VX222=m                                         
CONFIG_SND_YMFPCI=m                                        
CONFIG_SND_SPI=y                                           
CONFIG_SND_USB=y                                           
CONFIG_SND_USB_AUDIO=m                                     
CONFIG_SND_USB_USX2Y=m                                     
CONFIG_SND_USB_CAIAQ=m                                     
CONFIG_SND_USB_CAIAQ_INPUT=y                               
CONFIG_SND_USB_US122L=m                                    
CONFIG_SND_PCMCIA=y                                        
CONFIG_SND_VXPOCKET=m                                      
CONFIG_SND_PDAUDIOCF=m                                     
CONFIG_SND_SOC=m                                           
CONFIG_SND_SOC_I2C_AND_SPI=m                               
# CONFIG_SND_SOC_ALL_CODECS is not set                     
# CONFIG_SOUND_PRIME is not set                            

Modprobe Conf ---------------------------------------------
Warning: module config file does not exist                 
This means any kernel modules will not be auto loaded      
See your linux distro docs on how to create this file      

Proc Asound -----------------------------------------------
Advanced Linux Sound Architecture Driver Version 1.0.20.   
 0 [NVidia         ]: HDA-Intel - HDA NVidia               
                      HDA NVidia at 0xfae78000 irq 22      
  2:        : timer                                        
  3: [ 0- 3]: digital audio playback                       
  4: [ 0- 1]: digital audio playback                       
  5: [ 0- 0]: digital audio playback                       
  6: [ 0- 0]: digital audio capture                        
  7: [ 0- 3]: hardware dependent                           
  8: [ 0- 0]: hardware dependent                           
  9: [ 0]   : control                                      
 10:        : sequencer                                    
00-03: HDA Codec 3                                         
00-00: HDA Codec 0                                         
00-00: VT1708S Analog : VT1708S Analog : playback 2 : capture 2
00-01: VT1708S Digital : VT1708S Digital : playback 2          
00-03: NVIDIA HDMI : NVIDIA HDMI : playback 1                  
Client info                                                    
  cur  clients : 3                                             
  peak clients : 3                                             
  max  clients : 192                                           

Client   0 : "System" [Kernel]
  Port   0 : "Timer" (Rwe-)
  Port   1 : "Announce" (R-e-)
    Connecting To: 15:0
Client  14 : "Midi Through" [Kernel]
  Port   0 : "Midi Through Port-0" (RWe-)
Client  15 : "OSS sequencer" [Kernel]
  Port   0 : "Receiver" (-we-)
    Connected From: 0:1

Dev Snd ---------------------------------------------------
controlC0  hwC0D0  hwC0D3  pcmC0D0c  pcmC0D0p  pcmC0D1p  pcmC0D3p  seq  timer

CPU -------------------------------------------------------
model name      : Intel(R) Atom(TM) CPU  330   @ 1.60GHz
cpu MHz         : 1599.690
model name      : Intel(R) Atom(TM) CPU  330   @ 1.60GHz
cpu MHz         : 1599.690
model name      : Intel(R) Atom(TM) CPU  330   @ 1.60GHz
cpu MHz         : 1599.690
model name      : Intel(R) Atom(TM) CPU  330   @ 1.60GHz
cpu MHz         : 1599.690

RAM -------------------------------------------------------
MemTotal:        3347324 kB
SwapTotal:       4000176 kB

Hardware --------------------------------------------------
00:00.0 Host bridge: nVidia Corporation MCP79 Host Bridge (rev b1)

Offline

#5 2009-08-15 14:42:14

djszapi
Member
From: Cambridge, United Kingdom
Registered: 2009-06-14
Posts: 1,439
Website

Re: Nvidia Mcp79 Hdmi - Alsa

Did you set with alsamixer e.g. the settings correctly ? Did you try with pulseaudio ?

Offline

#6 2009-08-16 22:35:51

sip03ds
Member
Registered: 2009-07-09
Posts: 21

Re: Nvidia Mcp79 Hdmi - Alsa

I have the right settings in alsamixer, i have not tried pulseaudio, this will be my next step, test it and post the results.

Last edited by sip03ds (2009-08-16 22:42:08)

Offline

#7 2009-08-17 05:17:53

sip03ds
Member
Registered: 2009-07-09
Posts: 21

Re: Nvidia Mcp79 Hdmi - Alsa

I have tested with pulseaudio, and I still get the same results as with ALSA.

Offline

#8 2009-08-25 07:05:44

sip03ds
Member
Registered: 2009-07-09
Posts: 21

Re: Nvidia Mcp79 Hdmi - Alsa

Hello to all,

I managed to get sound with ALSA. I have changed /etc/asound.conf with the following:

pcm.snd_card {
                type plug
                card 0
                device 3
}

With the following config and commands:

$aplay -D plughw:0,3 /usr/share/sounds/alsa/Front_Center.wav

$aplay -D plug:hdmi /usr/share/sounds/alsa/Front_Center.wav

I get tone

I managed to add sound in mplayer via its config:

~/.mplayer/config

# Write your default config options here!
vo=vdpau,xv,
vc=ffh264vdpau,ffmpeg12vdpau,
# added by virtual for alsa device
ao=alsa:device=plughw=0.3
# HDMI volume can only be controlled by the softvol konfigz
softvol=yes
softvol-max=300

Unfortunately, still KDE defaults to another device and I cannot get sounds in KDE. Any ideas?

Offline

#9 2009-11-11 13:01:12

sip03ds
Member
Registered: 2009-07-09
Posts: 21

Re: Nvidia Mcp79 Hdmi - Alsa

Finally we have a solution:

/etc/asound.conf

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

pcm.!default {
 type plug
 slave.pcm "dmixer"
}

alsa is working fine and I can get sound in multiple applications concurrently.

Offline

#10 2010-07-17 16:08:38

vr4b4c
Member
Registered: 2008-12-30
Posts: 35

Re: Nvidia Mcp79 Hdmi - Alsa

sip03ds wrote:

Finally we have a solution:

/etc/asound.conf

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

pcm.!default {
 type plug
 slave.pcm "dmixer"
}

alsa is working fine and I can get sound in multiple applications concurrently.

Hi,
Does this solution still work for you on archlinux and kernel 2.6.34?? I tried it but i cant get sound over HDMI, speakers jack and spdif optical there is sound..

Offline

#11 2010-07-18 02:09:38

Neewok
Member
Registered: 2010-07-18
Posts: 1

Re: Nvidia Mcp79 Hdmi - Alsa

vr4b4c wrote:

Hi,
Does this solution still work for you on archlinux and kernel 2.6.34?? I tried it but i cant get sound over HDMI, speakers jack and spdif optical there is sound..

I'd be interested too ! Can't get alsa to work with 2.6.34...
(that's my first post here, just switched to arch yesterday smile)

Last edited by Neewok (2010-07-18 02:10:37)

Offline

#12 2010-07-18 07:55:16

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Nvidia Mcp79 Hdmi - Alsa

@ Neewok
Have you read the wiki? What's the problem, we need more info - are there any errors etc.
Here's a new thread, if you have problems, write hereThis thread is old and should be left alone, we yous want to contact the OP and ask him/her one question. Further discussion is discouraged.

Last edited by karol (2010-07-18 08:21:54)

Offline

#13 2010-07-18 12:52:34

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: Nvidia Mcp79 Hdmi - Alsa

Necrobumping is generally frowned upon, especially since you created a new thread for your issue already. Closing.

Offline

Board footer

Powered by FluxBB