soundwire: cadence_master: improve PDI allocation
authorBard Liao <yung-chuan.liao@linux.intel.com>
Mon, 16 Sep 2019 19:23:48 +0000 (14:23 -0500)
committerVinod Koul <vkoul@kernel.org>
Mon, 21 Oct 2019 04:20:53 +0000 (09:50 +0530)
commit1b53385e7938d5a093e92044f9c89e4e76106f1b
tree3cd0740535d255b39e95a4cb7b5fd046ae5652df
parent807c15bc77871c695e254423f5e3839b2175db03
soundwire: cadence_master: improve PDI allocation

PDI number should match dai->id, there is no need to track if a PDI is
allocated or not.

Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20190916192348.467-7-pierre-louis.bossart@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/cadence_master.c
drivers/soundwire/cadence_master.h
drivers/soundwire/intel.c