diff options
author | Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> | 2019-05-22 22:47:31 +0300 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2019-05-27 08:23:00 +0300 |
commit | 432732b801c82b139f8ca72e3b284fb999ac40d2 (patch) | |
tree | 5f3f8fdf396bb9fdfaeead11617a3f472fc71506 /Documentation/driver-api/soundwire | |
parent | 27f14331a7d434ff860b3d23c2379cf1fb814a3c (diff) | |
download | linux-432732b801c82b139f8ca72e3b284fb999ac40d2.tar.xz |
soundwire: intel_init: add checks on link numbers
Add mask to correctly read the SoundWire SHIM LCAP register. Only bits
2..0 are meaningful, the rest is about link synchronization and stream
channel mapping. Without this mask, the hardware information would
always be larger than whatever the BIOS would report.
Also trap the case with zero links.
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'Documentation/driver-api/soundwire')
0 files changed, 0 insertions, 0 deletions