<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Yesterday I got an interesting email related to dcaenc support.<br>
<br>
The person has an "XFX nForce 780i SLI" MCP board: <a href="http://www.nvidia.com/object/product_nforce_780i_sli_us.html" rel="noreferrer" target="_blank">http://www.nvidia.com/object/product_nforce_780i_sli_us.html</a> , <a href="http://www.evga.com/support/manuals/files/132-CK-NF78.pdf" rel="noreferrer" target="_blank">http://www.evga.com/support/manuals/files/132-CK-NF78.pdf</a><br>
<br>
As you see on page 18 of the manual, this board has no HDMI output, but there is an optical SPDIF. Strangely enough, this SPDIF is his "hdmi:CARD=NVidia,DEV=0" device.<br>
<br>
Given the recent discussions related to dynamically creating PCM devices for HDMI, I think you will be interested in this alsa-info output.<br>
<br>
Is there anything here that would need special treatment by ALSA or PulseAudio? Or, is this just a misnumbered/misnamed codec?<span class=""><font color="#888888"><br></font></span></blockquote><div><br></div><div>swap dig_out_pins of autocfg when type are different <br></div><div><br>diff --git a/sound/pci/hda/hda_auto_parser.c b/sound/pci/hda/hda_auto_parser.c<br>index 03b7399..3ff16e8 100644<br>--- a/sound/pci/hda/hda_auto_parser.c<br>+++ b/sound/pci/hda/hda_auto_parser.c<br>@@ -405,6 +405,19 @@ int snd_hda_parse_pin_defcfg(struct hda_codec *codec,<br>     sort(cfg->inputs, cfg->num_inputs, sizeof(cfg->inputs[0]),<br>          compare_input_type, NULL);<br> <br>+    if (cfg->dig_outs == 2) {<br>+        if (cfg->dig_out_type[0] != cfg->dig_out_type[1]) {<br>+            if (cfg->dig_out_type[0] == HDA_PCM_TYPE_HDMI) {<br>+                hda_nid_t temp = cfg->dig_out_pins[0];<br>+                int temp_type =    cfg->dig_out_type[0];<br>+                cfg->dig_out_pins[0] = cfg->dig_out_pins[1];<br>+                cfg->dig_out_type[0] = cfg->dig_out_type[1];<br>+                cfg->dig_out_pins[1] = temp;<br>+                cfg->dig_out_type[1] = temp_type;<br>+            }<br>+        }<br>+    }<br>+<br>     /*<br>      * debug prints of the parsed results<br>      */<br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class=""><font color="#888888">
</font></span><br></blockquote></div></div></div>