]> www.infradead.org Git - users/jedix/linux-maple.git/commit
soundwire: stream: set DEPREPARED state earlier
authorPierre-Louis Bossart <pierre-louis.bossart@linux.dev>
Wed, 18 Dec 2024 08:01:45 +0000 (16:01 +0800)
committerVinod Koul <vkoul@kernel.org>
Mon, 23 Dec 2024 06:30:33 +0000 (12:00 +0530)
commitf1b3dba6905a9afc49996b039042c411aa98fd52
treead50ea1ba6720dd8115ea91af73c079b1ba3fdfe
parentb6a2e1be7d9303d07eff72a13132a37e035fbcfa
soundwire: stream: set DEPREPARED state earlier

The existing logic is problematic in that we deprepare all the ports,
but still take into account the stream for bit allocation by just
walking through the bus->m_rt list.

This patch sets the state earlier, so that such DEPREPARED streams can
be skipped in the bandwidth allocation (to be implemented in a
follow-up patch).

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.dev>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/20241218080155.102405-5-yung-chuan.liao@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/stream.c