diff mbox

[2/4] hda-emu: Add verbs for old Nvidia HDMI 8ch 7x

Message ID 1409840486-14961-3-git-send-email-david.henningsson@canonical.com (mailing list archive)
State Accepted
Delegated to: Takashi Iwai
Headers show

Commit Message

David Henningsson Sept. 4, 2014, 2:21 p.m. UTC
The driver sends these verbs on purpose. I can't verify that it
is correct to do so, but I hope the driver is doing the right thing here.

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
---
 hda-spec.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
diff mbox

Patch

diff --git a/hda-spec.c b/hda-spec.c
index fe2ff36..b03d06a 100644
--- a/hda-spec.c
+++ b/hda-spec.c
@@ -263,6 +263,14 @@  static struct xhda_verb_table amdhdmi_verbs[] = {
 	{ } /* terminator */
 };
 
+static struct xhda_verb_table nvhdmi_8ch_7x_verbs[] = {
+	{ 0xf79, set_cached_verb, "nvhdmi_set_channel_allocation" },
+	{ 0xf7a, set_cached_verb, "nvhdmi_set_info_frame_checksum" },
+	{ 0xf98, set_cached_verb, "nvhdmi_set_audio_protection_on" },
+	{ 0xf99, set_cached_verb, "nvhdmi_set_audio_protection_off" },
+	{ } /* terminator */
+};
+
 /*
  */
 
@@ -428,6 +436,12 @@  static struct verb_ext_list extensions[] = {
 
 	{ .id = 0x1002aa01, .verbs = amdhdmi_verbs },
 
+	{ .id = 0x10de0002, .verbs = nvhdmi_8ch_7x_verbs },
+	{ .id = 0x10de0003, .verbs = nvhdmi_8ch_7x_verbs },
+	{ .id = 0x10de0005, .verbs = nvhdmi_8ch_7x_verbs },
+	{ .id = 0x10de0006, .verbs = nvhdmi_8ch_7x_verbs },
+	{ .id = 0x10de0007, .verbs = nvhdmi_8ch_7x_verbs },
+
 	{ }
 };