summaryrefslogtreecommitdiffstats
path: root/include/sound/asound.h
diff options
context:
space:
mode:
authorRicardo Neri <ricardo.neri@ti.com>2012-04-17 19:46:11 -0500
committerTakashi Iwai <tiwai@suse.de>2012-04-18 08:00:36 +0200
commit7ba1c40b536e1c0df18d44af67ffa5a87a99f91c (patch)
tree402831a5b7b58262a2d8960a5f895b5df62f57ca /include/sound/asound.h
parentdd775ae2549217d3ae09363e3edb305d0fa19928 (diff)
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 <ricardo.neri@ti.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound/asound.h')
-rw-r--r--include/sound/asound.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/sound/asound.h b/include/sound/asound.h
index a2e4ff5ba9e..0876a1e76ae 100644
--- a/include/sound/asound.h
+++ b/include/sound/asound.h
@@ -70,6 +70,20 @@ struct snd_aes_iec958 {
/****************************************************************************
* *
+ * 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? *
* *
****************************************************************************/