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

Commit c5317f8e authored by Walter Yang's avatar Walter Yang Committed by Gerrit - the friendly Code Review server
Browse files

ASoC: pcm: change capture_active to unsigned int



In combo usecase there are 2 front-end dai's with
same codec dai, for example, multi-phrase ADSP SVA detection.
Using a single bit as the counter causes the counter to roll
over to 0 during combo usecase.
To resolve this, change counter to unsigned int from single bit.

CRs-Fixed: 1086127
Change-Id: I2dd07bd967b7d4fb4878b6d65bd0f011c6b15bdd
Signed-off-by: default avatarWalter Yang <yandongy@codeaurora.org>
Signed-off-by: default avatarMeng Wang <mwang@codeaurora.org>
parent 02b90118
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -299,7 +299,7 @@ struct snd_soc_dai {
	struct snd_soc_dai_driver *driver;
	struct snd_soc_dai_driver *driver;


	/* DAI runtime info */
	/* DAI runtime info */
	unsigned int capture_active:1;		/* stream is in use */
	unsigned int capture_active;		/* stream is in use */
	unsigned int playback_active;		/* stream is in use */
	unsigned int playback_active;		/* stream is in use */
	unsigned int symmetric_rates:1;
	unsigned int symmetric_rates:1;
	unsigned int symmetric_channels:1;
	unsigned int symmetric_channels:1;