Re: [Alsa-user] HDMI Sound Output on Laptop with NVIDIA Quadro FX 770M

2009-06-28 Thread Geoffrey Leach
On 06/28/2009 11:47:15 AM, Janick Martinez Esturo wrote:
 Hi!
 
 I'm trying to get HDMI sound output working on my HP Elitebook 8530w,
 but to me it seems like
 no alsa device gets created for HDMI on my laptop:
 
snip
 
 # aplay -L
 default:CARD=Intel
  HDA Intel, AD198x Analog
  Default Audio Device
 front:CARD=Intel,DEV=0
  HDA Intel, AD198x Analog
  Front speakers
 surround40:CARD=Intel,DEV=0
  HDA Intel, AD198x Analog
  4.0 Surround output to Front and Rear speakers
 surround41:CARD=Intel,DEV=0
  HDA Intel, AD198x Analog
  4.1 Surround output to Front, Rear and Subwoofer speakers
 surround50:CARD=Intel,DEV=0
  HDA Intel, AD198x Analog
  5.0 Surround output to Front, Center and Rear speakers
 surround51:CARD=Intel,DEV=0
  HDA Intel, AD198x Analog
  5.1 Surround output to Front, Center, Rear and Subwoofer 
 speakers
 surround71:CARD=Intel,DEV=0
  HDA Intel, AD198x Analog
  7.1 Surround output to Front, Center, Side, Rear and Woofer
 speakers
 null
  Discard all samples (playback) or generate zero samples 
 (capture)

You're missing this:

hdmi:CARD=NVidia,DEV=0
HDA NVidia, NVIDIA HDMI
HDMI Audio Output

snip
 I'm using the snd_hda_codec_nvhdmi module of the latest
 2.6.30-gentoo-r1 kernel sources and NVIDIA drivers 185.18.08, but had
 no luck with alsa-driver-1.0.20 either...

So, you compiled and installed the 1.0.20 driver and then rebooted and 
verified the install with 'cat /proc/asound/version' -- yes?

If so, then I'd look at your .asoundrc. I've attached mine (Nvidia-
based ASUS MB), developed by trian and error, I'm no expert.

good luck

# ~/.asoundrc or /etc/asound.conf
# ALSA configuration file

# IMPORTANT #
# To make this ALSA configuration file work with your sound card, you will need
# to define the appropriate card and device information for the analog-hw and
# digital-hw devices below.  You can find the card and device information
# using aplay -l.

# Configuration File #

pcm.!default {
type plug
slave.pcm dmix-digital
}

# Alias for analog output on the card
pcm.analog-hw {
type hw
card 0
device 0
}

# Alias for digital (S/PDIF) output on the card
pcm.digital-hw {
type hw
card 0
device 3
}

pcm.!default {
type plug
slave {
pcm multi
rate 48000
}
ttable.0.0 1.0
ttable.1.1 1.0
ttable.0.2 1.0
ttable.1.3 1.0
}

pcm.stereo {
type plug
slave {
pcm multi
rate 48000
}
ttable.0.0 1.0
ttable.1.1 1.0
ttable.0.2 1.0
ttable.1.3 1.0
}

pcm.multi {
type multi
slaves.a.pcm analog-hw
slaves.a.channels 2
slaves.b.pcm digital-hw
slaves.b.channels 2
bindings.0.slave a
bindings.0.channel 0
bindings.1.slave a
bindings.1.channel 1
bindings.2.slave b
bindings.2.channel 0
bindings.3.slave b
bindings.3.channel 1
}



--
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] HDMI Sound Output on Laptop with NVIDIA Quadro FX 770M

2009-06-28 Thread Janick Martinez Esturo
On Sun, 28 Jun 2009 22:08:54 +0200, Geoffrey Leach ge...@hughes.net wrote:

 You're missing this:

 hdmi:CARD=NVidia,DEV=0
 HDA NVidia, NVIDIA HDMI
 HDMI Audio Output

 snip

Yes, that's my problem indeed. I didn't mention that the module 
snd_hda_codec_nvhdmi
isn't even loaded at boottime. But on manual module load the device isn't 
avaible either.
So could it be that my device pci ids aren't hardcoded in the module source yet?
The .asoundrc isn't helping me, since the alsa device isn't created:


# aplay -l
 List of PLAYBACK Hardware Devices 
card 0: Intel [HDA Intel], device 0: AD198x Analog [AD198x Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0

# cat /proc/asound/version
Advanced Linux Sound Architecture Driver Version 1.0.20.

My graphics-adapter (NVIDIA Quadro FX 770M, a mobile graphic-unit) isn't listed
in alsa-kernel/pci/hda/patch_nvhdmi.c:

/*
  * patch entries
  */
static struct hda_codec_preset snd_hda_preset_nvhdmi[] = {
 { .id = 0x10de0002, .name = MCP78 HDMI, .patch = patch_nvhdmi },
 { .id = 0x10de0006, .name = MCP78 HDMI, .patch = patch_nvhdmi },
 { .id = 0x10de0007, .name = MCP7A HDMI, .patch = patch_nvhdmi },
 { .id = 0x10de0067, .name = MCP67 HDMI, .patch = patch_nvhdmi },
 { .id = 0x10de8001, .name = MCP73 HDMI, .patch = patch_nvhdmi },
 {} /* terminator */
};

Could this simply be patched with my id?

Regards Janick

--
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] HDMI Sound Output on Laptop with NVIDIA Quadro FX 770M

2009-06-28 Thread Geoffrey Leach
On 06/28/2009 01:59:09 PM, Janick Martinez Esturo wrote:
 On Sun, 28 Jun 2009 22:08:54 +0200, Geoffrey Leach ge...@hughes.net
 wrote:
 
  You're missing this:
 
  hdmi:CARD=NVidia,DEV=0
  HDA NVidia, NVIDIA HDMI
  HDMI Audio Output
 
  snip
 
 Yes, that's my problem indeed. I didn't mention that the module
 snd_hda_codec_nvhdmi
 isn't even loaded at boottime. But on manual module load the device
 isn't avaible either.
 So could it be that my device pci ids aren't hardcoded in the module
 source yet?
 The .asoundrc isn't helping me, since the alsa device isn't created:
 
 
 # aplay -l
  List of PLAYBACK Hardware Devices 
 card 0: Intel [HDA Intel], device 0: AD198x Analog [AD198x Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
 
 # cat /proc/asound/version
 Advanced Linux Sound Architecture Driver Version 1.0.20.
 
 My graphics-adapter (NVIDIA Quadro FX 770M, a mobile graphic-unit)
 isn't listed
 in alsa-kernel/pci/hda/patch_nvhdmi.c:
 
 /*
   * patch entries
   */
 static struct hda_codec_preset snd_hda_preset_nvhdmi[] = {
  { .id = 0x10de0002, .name = MCP78 HDMI, .patch =
 patch_nvhdmi },
  { .id = 0x10de0006, .name = MCP78 HDMI, .patch =
 patch_nvhdmi },
  { .id = 0x10de0007, .name = MCP7A HDMI, .patch =
 patch_nvhdmi },
  { .id = 0x10de0067, .name = MCP67 HDMI, .patch =
 patch_nvhdmi },
  { .id = 0x10de8001, .name = MCP73 HDMI, .patch =
 patch_nvhdmi },
  {} /* terminator */
 };
 
 Could this simply be patched with my id?

I have snd_hda_codec_nvhdmi on my system. Have you installed the nvidia 
drivers (from nvidia?)



--
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] HDMI Sound Output on Laptop with NVIDIA Quadro FX 770M

2009-06-28 Thread Janick Martinez Esturo
On Sun, 28 Jun 2009 23:15:49 +0200, Geoffrey Leach ge...@hughes.net wrote:

 I have snd_hda_codec_nvhdmi on my system. Have you installed the nvidia
 drivers (from nvidia?)

Sure, it belongs to the alsa-driver / kernel package. As mentioned before, I
also got the current nvidia-driver beta installed...

--
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] HDMI Sound Output on Laptop with NVIDIA Quadro FX 770M

2009-06-28 Thread Geoffrey Leach
On 06/28/2009 02:18:14 PM, Janick Martinez Esturo wrote:
 On Sun, 28 Jun 2009 23:15:49 +0200, Geoffrey Leach ge...@hughes.net
 wrote:
 
  I have snd_hda_codec_nvhdmi on my system. Have you installed the
 nvidia
  drivers (from nvidia?)
 
 Sure, it belongs to the alsa-driver / kernel package. As mentioned
 before, I
 also got the current nvidia-driver beta installed...
 

H ... perhaps I'm being anal here, but from this:

r...@pvr[13]-modprobe -l snd_hda_codec_nvhdmi
/lib/modules/2.6.27.12-170.2.5.fc10.i686/kernel/sound/pci/hda/snd-hda-
codec-nvhdmi.ko
r...@pvr[14]-rpm -qf /lib/modules/2.6.27.12-170.2.5.fc10.i686/kernel/
sound/pci/hda/snd-hda-codec-nvhdmi.ko
file /lib/modules/2.6.27.12-170.2.5.fc10.i686/kernel/sound/pci/hda/snd-
hda-codec-nvhdmi.ko is not owned by any package

I conclude that it was installed by NVIDIA-Linux-x86-180.51-pkg1.run
If you installed from a similar package and its not there, then I would 
conclude that your problem is with Nvidia, not the Linux kernel. 
There's a list of supported cards in that package somewhere - is your 
card listed?



--
___
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user