diff options
author | Wu Fengguang <fengguang.wu@intel.com> | 2009-11-17 23:38:01 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-11-18 01:37:49 -0500 |
commit | 23ccc2bd246a5bdb1ac03dc9040a0585c1890ef3 (patch) | |
tree | cbe53b086f16a4009378264bb16fabc5243cec16 /sound/pci/hda/hda_eld.c | |
parent | 1e7c10fefadb42d9300305c7de57bea365855e9b (diff) |
ALSA: intelhdmi - export monitor-presence and ELD-valid status
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_eld.c')
-rw-r--r-- | sound/pci/hda/hda_eld.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_eld.c b/sound/pci/hda/hda_eld.c index 20fa6aee29c0..de50cfcf644e 100644 --- a/sound/pci/hda/hda_eld.c +++ b/sound/pci/hda/hda_eld.c | |||
@@ -477,6 +477,8 @@ static void hdmi_print_eld_info(struct snd_info_entry *entry, | |||
477 | [4 ... 7] = "reserved" | 477 | [4 ... 7] = "reserved" |
478 | }; | 478 | }; |
479 | 479 | ||
480 | snd_iprintf(buffer, "monitor_present\t\t%d\n", e->monitor_present); | ||
481 | snd_iprintf(buffer, "eld_valid\t\t%d\n", e->eld_valid); | ||
480 | snd_iprintf(buffer, "monitor_name\t\t%s\n", e->monitor_name); | 482 | snd_iprintf(buffer, "monitor_name\t\t%s\n", e->monitor_name); |
481 | snd_iprintf(buffer, "connection_type\t\t%s\n", | 483 | snd_iprintf(buffer, "connection_type\t\t%s\n", |
482 | eld_connection_type_names[e->conn_type]); | 484 | eld_connection_type_names[e->conn_type]); |
@@ -518,7 +520,11 @@ static void hdmi_write_eld_info(struct snd_info_entry *entry, | |||
518 | * monitor_name manufacture_id product_id | 520 | * monitor_name manufacture_id product_id |
519 | * eld_version edid_version | 521 | * eld_version edid_version |
520 | */ | 522 | */ |
521 | if (!strcmp(name, "connection_type")) | 523 | if (!strcmp(name, "monitor_present")) |
524 | e->monitor_present = val; | ||
525 | else if (!strcmp(name, "eld_valid")) | ||
526 | e->eld_valid = val; | ||
527 | else if (!strcmp(name, "connection_type")) | ||
522 | e->conn_type = val; | 528 | e->conn_type = val; |
523 | else if (!strcmp(name, "port_id")) | 529 | else if (!strcmp(name, "port_id")) |
524 | e->port_id = val; | 530 | e->port_id = val; |