soundwire: stream: do not update parameters during DISABLED-PREPARED transition
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Tue, 14 Jan 2020 23:52:25 +0000 (17:52 -0600)
committerVinod Koul <vkoul@kernel.org>
Thu, 13 Feb 2020 10:27:37 +0000 (15:57 +0530)
commitc7a8f049b828dc8e01acd56911a1816b7725d9c3
tree197647be11291102016c1382f531f35cf0f40df5
parentc32464c9393d0a426b5abbf01980ff5ecfb34a98
soundwire: stream: do not update parameters during DISABLED-PREPARED transition

After a system suspend, the ALSA/ASoC core will invoke the .prepare()
callback and a TRIGGER_START when INFO_RESUME is not supported.

Likewise, when an underflow occurs, the .prepare callback will be invoked.

In both cases, the stream can be in DISABLED mode, and will transition
into the PREPARED mode. We however don't want the bus bandwidth to be
recomputed.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20200114235227.14502-4-pierre-louis.bossart@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/stream.c