diff options
author | David Henningsson <david.henningsson@canonical.com> | 2013-02-19 10:11:24 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-02-19 12:28:22 -0500 |
commit | 1613d6b46b433f07f1d2703e4bd102802dcd75a4 (patch) | |
tree | f568efd924a1a70689f79c29f25cceb7c6a6510b /sound/pci/hda/hda_local.h | |
parent | 68e03de98507065bb5fd1958388974c9bc2cd480 (diff) |
ALSA: hda - hdmi: Refactor hdmi_eld into parsed_hdmi_eld
For better readability, the information that is parsed out of the
ELD data is now put into a separate parsed_hdmi_eld struct.
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_local.h')
-rw-r--r-- | sound/pci/hda/hda_local.h | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/sound/pci/hda/hda_local.h b/sound/pci/hda/hda_local.h index 05f1d594d17b..363cd487266b 100644 --- a/sound/pci/hda/hda_local.h +++ b/sound/pci/hda/hda_local.h | |||
@@ -713,10 +713,10 @@ struct cea_sad { | |||
713 | /* | 713 | /* |
714 | * ELD: EDID Like Data | 714 | * ELD: EDID Like Data |
715 | */ | 715 | */ |
716 | struct hdmi_eld { | 716 | struct parsed_hdmi_eld { |
717 | bool monitor_present; | 717 | /* |
718 | bool eld_valid; | 718 | * all fields will be cleared before updating ELD |
719 | int eld_size; | 719 | */ |
720 | int baseline_len; | 720 | int baseline_len; |
721 | int eld_ver; | 721 | int eld_ver; |
722 | int cea_edid_ver; | 722 | int cea_edid_ver; |
@@ -731,19 +731,26 @@ struct hdmi_eld { | |||
731 | int spk_alloc; | 731 | int spk_alloc; |
732 | int sad_count; | 732 | int sad_count; |
733 | struct cea_sad sad[ELD_MAX_SAD]; | 733 | struct cea_sad sad[ELD_MAX_SAD]; |
734 | /* | 734 | }; |
735 | * all fields above eld_buffer will be cleared before updating ELD | 735 | |
736 | */ | 736 | struct hdmi_eld { |
737 | bool monitor_present; | ||
738 | bool eld_valid; | ||
739 | int eld_size; | ||
737 | char eld_buffer[ELD_MAX_SIZE]; | 740 | char eld_buffer[ELD_MAX_SIZE]; |
741 | struct parsed_hdmi_eld info; | ||
738 | #ifdef CONFIG_PROC_FS | 742 | #ifdef CONFIG_PROC_FS |
739 | struct snd_info_entry *proc_entry; | 743 | struct snd_info_entry *proc_entry; |
740 | #endif | 744 | #endif |
741 | }; | 745 | }; |
742 | 746 | ||
743 | int snd_hdmi_get_eld_size(struct hda_codec *codec, hda_nid_t nid); | 747 | int snd_hdmi_get_eld_size(struct hda_codec *codec, hda_nid_t nid); |
744 | int snd_hdmi_get_eld(struct hdmi_eld *, struct hda_codec *, hda_nid_t); | 748 | int snd_hdmi_get_eld(struct hda_codec *codec, hda_nid_t nid, |
745 | void snd_hdmi_show_eld(struct hdmi_eld *eld); | 749 | unsigned char *buf, int *eld_size); |
746 | void snd_hdmi_eld_update_pcm_info(struct hdmi_eld *eld, | 750 | int snd_hdmi_parse_eld(struct parsed_hdmi_eld *e, |
751 | const unsigned char *buf, int size); | ||
752 | void snd_hdmi_show_eld(struct parsed_hdmi_eld *e); | ||
753 | void snd_hdmi_eld_update_pcm_info(struct parsed_hdmi_eld *e, | ||
747 | struct hda_pcm_stream *hinfo); | 754 | struct hda_pcm_stream *hinfo); |
748 | 755 | ||
749 | #ifdef CONFIG_PROC_FS | 756 | #ifdef CONFIG_PROC_FS |