diff options
author | Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> | 2019-05-22 22:47:17 +0300 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2019-05-27 08:22:59 +0300 |
commit | 6f11586f4896ee448262747788a0a3faf0fe9066 (patch) | |
tree | 036194ff109f3f73ee09c6f746eeea4bf36b9bfb /drivers/soundwire/intel.h | |
parent | 18de65d9e71a2ea20b9a7b4efbfcc5baa4f0d252 (diff) | |
download | linux-6f11586f4896ee448262747788a0a3faf0fe9066.tar.xz |
soundwire: intel: filter SoundWire controller device search
The convention is that the SoundWire controller device is a child of
the HDAudio controller. However there can be more than one child
exposed in the DSDT table, and the current namespace walk returns the
last (incorrect) device.
Intel documentation states that bits 28..31 of the _ADR field
represent the link type, with SoundWire assigned the value 4.
Add a filter and terminate early when a valid _ADR is provided,
otherwise keep iterating to find the next child.
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/soundwire/intel.h')
0 files changed, 0 insertions, 0 deletions