Skip to contentSkip to conversation

ASoC: Topology: change stream formats to bitwise flag

RFC PATCH Superseded [email protected] 1 participant 1 message Aug 10, 2015

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

RFC PATCH 9/10 ASoC: Topology: change stream formats to bitwise flag

From: Mengdong Lin <[email protected]>

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.

include/uapi/sound/asoc.h +1 -1
index 69383b0..eb2ad59 100644
@@ -191,7 +191,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_FORMAT_* */
 	__le32 rates;		/* supported rates SNDRV_PCM_RATE_* */
 	__le32 rate_min;	/* min rate */
 	__le32 rate_max;	/* max rate */
Signature · 1 line
1.9.1