soundwire: cadence/intel: simplify PDI/port mapping
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Mon, 16 Sep 2019 19:23:46 +0000 (14:23 -0500)
committerVinod Koul <vkoul@kernel.org>
Mon, 21 Oct 2019 04:20:53 +0000 (09:50 +0530)
commit57a34790cd2cab02c3336fe96cfa33b9b65ed2ee
tree163836ad17d7e4864c8aa870e68942b5f2291517
parent80464533e148b80f8fb7e08a044588ee44a4e5ea
soundwire: cadence/intel: simplify PDI/port mapping

The existing Linux code uses a 1:1 mapping between ports and PDIs, but
still has an independent allocation of ports and PDIs.

Let's simplify the code and remove the port layer by only using PDIs.

This patch does not change any functionality, just removes unnecessary
code.

This will also allow for further simplifications where the PDIs are
not dynamically allocated but instead described in a topology file.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20190916192348.467-5-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