]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ASoC: topology: ABI - Add configuration for BE & Codec-Codec DAI Links
authorVedang Patel <vedang.patel@intel.com>
Wed, 30 Sep 2015 09:32:22 +0000 (17:32 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 2 Oct 2015 16:59:49 +0000 (17:59 +0100)
struct snd_soc_tplg_link_config is defined to configure BE & CC links.

Signed-off-by: Vedang Patel <vedang.patel@intel.com>
Signed-off-by: Mengdong Lin <mengdong.lin@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/uapi/sound/asoc.h

index f75fd29bf580df1567abb16d8505a3f1206a4db4..538ea13080080b5b42bf43d068281c126495ca75 100644 (file)
@@ -395,4 +395,21 @@ struct snd_soc_tplg_pcm {
        struct snd_soc_tplg_stream_caps caps[2]; /* playback and capture for DAI */
 } __attribute__((packed));
 
+
+/*
+ * Describes the BE or CC link runtime supported configs or params
+ *
+ * File block representation for BE/CC link config :-
+ * +-----------------------------------+-----+
+ * | struct snd_soc_tplg_hdr           |  1  |
+ * +-----------------------------------+-----+
+ * | struct snd_soc_tplg_link_config   |  N  |
+ * +-----------------------------------+-----+
+ */
+struct snd_soc_tplg_link_config {
+       __le32 size;            /* in bytes of this structure */
+       __le32 id;              /* unique ID - used to match */
+       struct snd_soc_tplg_stream stream[SND_SOC_TPLG_STREAM_CONFIG_MAX]; /* supported configs playback and captrure */
+       __le32 num_streams;     /* number of streams */
+} __attribute__((packed));
 #endif