From 7ba1c40b536e1c0df18d44af67ffa5a87a99f91c Mon Sep 17 00:00:00 2001 From: Ricardo Neri Date: Tue, 17 Apr 2012 19:46:11 -0500 Subject: ALSA: Add definitions for CEA-861 Audio InfoFrames Along with the IEC-60958 channel status word, CEA-861 Audio InfoFrames are used in HDMI and DisplayPort to describe the parameters of the audio stream. Hence, drivers for such devices may use these definitions to, for instance, fill a CEA-861 data structure and pass it to a display driver to configure an IP. Signed-off-by: Ricardo Neri Signed-off-by: Takashi Iwai --- include/sound/asound.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'include/sound/asound.h') diff --git a/include/sound/asound.h b/include/sound/asound.h index a2e4ff5ba9e9..0876a1e76aef 100644 --- a/include/sound/asound.h +++ b/include/sound/asound.h @@ -68,6 +68,20 @@ struct snd_aes_iec958 { unsigned char dig_subframe[4]; /* AES/IEC958 subframe bits */ }; +/**************************************************************************** + * * + * CEA-861 Audio InfoFrame. Used in HDMI and DisplayPort * + * * + ****************************************************************************/ + +struct snd_cea_861_aud_if { + unsigned char db1_ct_cc; /* coding type and channel count */ + unsigned char db2_sf_ss; /* sample frequency and size */ + unsigned char db3; /* not used, all zeros */ + unsigned char db4_ca; /* channel allocation code */ + unsigned char db5_dminh_lsv; /* downmix inhibit & level-shit values */ +}; + /**************************************************************************** * * * Section for driver hardware dependent interface - /dev/snd/hw? * -- cgit v1.2.3