]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
soundwire: intel: fix intel_register_dai PDI offsets and numbers
authorBard Liao <yung-chuan.liao@linux.intel.com>
Mon, 16 Sep 2019 19:23:43 +0000 (14:23 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Dec 2019 21:33:05 +0000 (22:33 +0100)
commitd76b88b01c34fa4f812b097eefb3f59b6ea20dce
tree863cfd0a07f3ae0dfca43f8a08dcc30d07437fdc
parentbe41821915c2464e0110eda55d012a9beef28985
soundwire: intel: fix intel_register_dai PDI offsets and numbers

[ Upstream commit cf9249626f72878b6d205a4965093cba5cce98df ]

There are two issues, likely copy/paste:

1. Use cdns->pcm.num_in instead of stream_num_in for consistency with
the rest of the code. This was not detected earlier since platforms did
not have input-only PDIs.

2. use the correct offset for bi-dir PDM, based on IN and OUT
PDIs. Again this was not detected since PDM was not supported earlier.

Reported-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
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-2-pierre-louis.bossart@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/soundwire/intel.c