]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ASoC: topology: ABI - Change stream formats to a bitwise flag
authorMengdong Lin <mengdong.lin@intel.com>
Wed, 30 Sep 2015 09:31:44 +0000 (17:31 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 2 Oct 2015 16:59:49 +0000 (17:59 +0100)
The toplogy user space tool will generate this bitwise flag by using
SNDRV_PCM_FORMAT_* exposed by asound.h, and the topology core will copy
this flag when generating DAI streams.

Signed-off-by: Mengdong Lin <mengdong.lin@intel.com>
Acked-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/uapi/sound/asoc.h

index 218148000187e350bb2e9ab2c7578b5a4adfe0fd..eeb74a9cc2f8d27131a25238078ffefe3bdff3a9 100644 (file)
@@ -198,7 +198,7 @@ struct snd_soc_tplg_ctl_hdr {
 struct snd_soc_tplg_stream_caps {
        __le32 size;            /* in bytes of this structure */
        char name[SNDRV_CTL_ELEM_ID_NAME_MAXLEN];
-       __le64 formats[SND_SOC_TPLG_MAX_FORMATS];       /* supported formats SNDRV_PCM_FMTBIT_* */
+       __le64 formats; /* supported formats SNDRV_PCM_FMTBIT_* */
        __le32 rates;           /* supported rates SNDRV_PCM_RATE_* */
        __le32 rate_min;        /* min rate */
        __le32 rate_max;        /* max rate */