Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 7426af50 authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown
Browse files

ASoC: soc.h: fe_compr can be bit field



fe_compr is used at soc-compress, it can be bit field.
This patch move it from int to bit field.

> grep fe_compr -r sound/soc/*
sound/soc/soc-compress.c:               rtd->fe_compr = 1;
sound/soc/soc-pcm.c:            if (!fe->dpcm[stream].runtime && !fe->fe_compr)

Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 09d4cc03
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1214,7 +1214,6 @@ struct snd_soc_pcm_runtime {


	/* Dynamic PCM BE runtime data */
	/* Dynamic PCM BE runtime data */
	struct snd_soc_dpcm_runtime dpcm[2];
	struct snd_soc_dpcm_runtime dpcm[2];
	int fe_compr;


	long pmdown_time;
	long pmdown_time;


@@ -1239,6 +1238,7 @@ struct snd_soc_pcm_runtime {
	/* bit field */
	/* bit field */
	unsigned int dev_registered:1;
	unsigned int dev_registered:1;
	unsigned int pop_wait:1;
	unsigned int pop_wait:1;
	unsigned int fe_compr:1; /* for Dynamic PCM */
};
};
#define for_each_rtd_codec_dai(rtd, i, dai)\
#define for_each_rtd_codec_dai(rtd, i, dai)\
	for ((i) = 0;						       \
	for ((i) = 0;						       \