]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ASoC: topology: ABI - Add sig_bits to stream caps
authorMengdong Lin <mengdong.lin@linux.intel.com>
Fri, 19 Aug 2016 10:12:46 +0000 (18:12 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 22 Aug 2016 17:55:30 +0000 (18:55 +0100)
Kernel struct snd_soc_pcm_stream, SoC PCM stream information, needs this
field. Although current topology users don't configure this, we define it
for future extension.

Signed-off-by: Mengdong Lin <mengdong.lin@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/uapi/sound/asoc.h
sound/soc/soc-topology.c

index f734bea9a032cf90528a3d438361446bf4a1b0b4..33d00a4ce6567f03f1cb52b08a5e72bda04efbaf 100644 (file)
@@ -257,6 +257,7 @@ struct snd_soc_tplg_stream_caps {
        __le32 period_size_max; /* max period size bytes */
        __le32 buffer_size_min; /* min buffer size bytes */
        __le32 buffer_size_max; /* max buffer size bytes */
+       __le32 sig_bits;        /* number of bits of content */
 } __attribute__((packed));
 
 /*
index a9e83a2dd91c97b17491354fe8e12e878dba5772..6b05047a4134da76ff9abe96da16e5f6123d12aa 100644 (file)
@@ -1556,6 +1556,7 @@ static void set_stream_info(struct snd_soc_pcm_stream *stream,
        stream->rate_min = caps->rate_min;
        stream->rate_max = caps->rate_max;
        stream->formats = caps->formats;
+       stream->sig_bits = caps->sig_bits;
 }
 
 static void set_dai_flags(struct snd_soc_dai_driver *dai_drv,