[alsa-devel] No HDMI audio output, nVidia audio not listed in lspci

Takashi Iwai tiwai at suse.de
Thu May 26 14:56:10 CEST 2011


At Thu, 26 May 2011 14:23:10 +0200,
Clemens Ladisch wrote:
> 
> Joost Verdoorn wrote:
> > > Did you try device "hw:0,1"?
> > 
> > How do I do that?
> 
> aplay -D plughw:0,1 something.wav

Judging from alsa-info output, it has no secondary PCM, so it can't
work as is ;)

Joost, try the patch below.  This should add a secondary PCM device
for the digital output, and this is likely the HDMI stream.


Takashi

---
diff --git a/sound/pci/hda/patch_analog.c b/sound/pci/hda/patch_analog.c
index 696ac25..003ec47 100644
--- a/sound/pci/hda/patch_analog.c
+++ b/sound/pci/hda/patch_analog.c
@@ -1920,7 +1920,8 @@ static int patch_ad1981(struct hda_codec *codec)
 		spec->mixers[0] = ad1981_hp_mixers;
 		spec->num_init_verbs = 2;
 		spec->init_verbs[1] = ad1981_hp_init_verbs;
-		spec->multiout.dig_out_nid = 0;
+		if (!is_jack_available(codec, 0x0a))
+			spec->multiout.dig_out_nid = 0;
 		spec->input_mux = &ad1981_hp_capture_source;
 
 		codec->patch_ops.init = ad1981_hp_init;


More information about the Alsa-devel mailing list