soundwire: Fix duplicate stream state assignment
authorShreyas NC <shreyas.nc@intel.com>
Fri, 27 Jul 2018 09:14:08 +0000 (14:44 +0530)
committerVinod Koul <vkoul@kernel.org>
Mon, 27 Aug 2018 04:19:48 +0000 (09:49 +0530)
commit0aebe40bae6cf5652fdc3d05ecee15fbf5748194
tree714b092b91852a748aa64c87d5962e26d0bdd242
parent5b394b2ddf0347bef56e50c69a58773c94343ff3
soundwire: Fix duplicate stream state assignment

For a SoundWire stream it is expected that a Slave is added to the
stream before Master is added.

So, move the stream state to CONFIGURED after the first Slave is
added and remove the stream state assignment for Master add.
Along with these changes, add additional comments to explain the same.

Signed-off-by: Shreyas NC <shreyas.nc@intel.com>
Acked-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/stream.c