linux/drivers/soundwire
Krzysztof Kozlowski 233a95fd57 soundwire: stream: Revert "soundwire: stream: fix programming slave ports for non-continous port maps"
This reverts commit ab8d66d132 because it
breaks codecs using non-continuous masks in source and sink ports.  The
commit missed the point that port numbers are not used as indices for
iterating over prop.sink_ports or prop.source_ports.

Soundwire core and existing codecs expect that the array passed as
prop.sink_ports and prop.source_ports is continuous.  The port mask still
might be non-continuous, but that's unrelated.

Reported-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Closes: https://lore.kernel.org/all/b6c75eee-761d-44c8-8413-2a5b34ee2f98@linux.intel.com/
Fixes: ab8d66d132 ("soundwire: stream: fix programming slave ports for non-continous port maps")
Acked-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Cc: stable@vger.kernel.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Tested-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Link: https://lore.kernel.org/r/20240909164746.136629-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
2024-09-11 13:05:43 +05:30
..
amd_init.c soundwire: amd_init: simplify with cleanup.h 2024-07-09 19:12:49 +05:30
amd_init.h soundwire: amd: use inline function for register update 2024-03-28 23:39:50 +05:30
amd_manager.c soundwire updates for 6.11 2024-07-24 13:04:43 -07:00
amd_manager.h soundwire: amd: fix for wake interrupt handling for clockstop mode 2024-03-28 23:40:33 +05:30
bus_type.c driver core: have match() callback in struct bus_type take a const * 2024-07-03 15:16:54 +02:00
bus.c soundwire: bus: simplify by using local slave->prop 2024-06-21 15:26:58 +05:30
bus.h soundwire: export sdw_compute_slave_ports() function 2023-04-12 15:30:35 +05:30
cadence_master.c soundwire: cadence: simplify with cleanup.h 2024-07-09 19:12:49 +05:30
cadence_master.h soundwire: intel/cadence: update hardware reset sequence 2023-05-29 10:49:47 +05:30
debugfs.c soundwire: debugfs: simplify with cleanup.h 2024-07-09 19:12:49 +05:30
dmi-quirks.c ASoC: Intel: common: DMI remap for rebranded Intel NUC M15 (LAPRC710) laptops 2024-02-08 21:23:19 +00:00
generic_bandwidth_allocation.c soundwire: generic_bandwidth_allocation: change port_bo parameter to pointer 2024-06-21 15:26:26 +05:30
intel_ace2x_debugfs.c soundwire: Intel: clarify Copyright information 2024-06-21 15:26:02 +05:30
intel_ace2x.c soundwire: intel_ace2x: simplify with cleanup.h 2024-07-09 19:12:49 +05:30
intel_auxdevice.c soundwire updates for 6.11 2024-07-24 13:04:43 -07:00
intel_auxdevice.h soundwire: intel: export intel_resume_child_device 2024-04-11 22:52:51 +05:30
intel_bus_common.c soundwire: Intel: clarify Copyright information 2024-06-21 15:26:02 +05:30
intel_init.c soundwire: intel_init: resume all devices on exit. 2024-04-11 22:52:51 +05:30
intel.c soundwire: intel: simplify with cleanup.h 2024-07-09 19:12:49 +05:30
intel.h soundwire: intel_ace2.x: add AC timing extensions for PantherLake 2024-06-03 17:41:11 +05:30
irq.c soundwire: bus: Make IRQ handling conditionally built 2023-09-21 11:31:33 +02:00
irq.h soundwire: bus: Make IRQ handling conditionally built 2023-09-21 11:31:33 +02:00
Kconfig soundwire: intel_ace2x: fix SND_SOC_SOF_HDA_MLINK dependency 2023-06-21 16:19:44 +05:30
Makefile soundwire: amd: refactor amd soundwire manager device node creation 2024-01-30 16:06:34 +00:00
master.c soundwire: constify the struct device_type usage 2024-03-03 19:28:06 +05:30
mipi_disco.c soundwire: fix usages of device_get_named_child_node() 2024-06-03 17:35:24 +05:30
qcom.c drivers:soundwire: qcom: cleanup port maask calculations 2024-07-02 16:49:56 +05:30
slave.c soundwire: slave: simplify code with acpi_get_local_u64_address() 2024-06-10 12:48:20 +01:00
stream.c soundwire: stream: Revert "soundwire: stream: fix programming slave ports for non-continous port maps" 2024-09-11 13:05:43 +05:30
sysfs_local.h soundwire: sysfs: remove sdw_slave_sysfs_init() 2024-03-28 23:38:47 +05:30
sysfs_slave_dpn.c soundwire: sysfs: remove sdw_slave_sysfs_init() 2024-03-28 23:38:47 +05:30
sysfs_slave.c soundwire: sysfs: remove unneeded ATTRIBUTE_GROUPS() comments 2024-03-28 23:38:47 +05:30