Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge tag 'soundwire-5.4-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/soundwire into char-misc-linus

Vinod writes:

soundwire fixes for v5.4-rc6

- Kconfig fixes to ensure soundwire is built only for ACPI and DT
platform
- fix for intel PDI offsets and numbers
- slave scanf format fix

* tag 'soundwire-5.4-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/soundwire:
soundwire: slave: fix scanf format
soundwire: intel: fix intel_register_dai PDI offsets and numbers
soundwire: depend on ACPI || OF
soundwire: depend on ACPI

+5 -3
+1
drivers/soundwire/Kconfig
··· 5 5 6 6 menuconfig SOUNDWIRE 7 7 tristate "SoundWire support" 8 + depends on ACPI || OF 8 9 help 9 10 SoundWire is a 2-Pin interface with data and clock line ratified 10 11 by the MIPI Alliance. SoundWire is used for transporting data
+2 -2
drivers/soundwire/intel.c
··· 900 900 /* Create PCM DAIs */ 901 901 stream = &cdns->pcm; 902 902 903 - ret = intel_create_dai(cdns, dais, INTEL_PDI_IN, stream->num_in, 903 + ret = intel_create_dai(cdns, dais, INTEL_PDI_IN, cdns->pcm.num_in, 904 904 off, stream->num_ch_in, true); 905 905 if (ret) 906 906 return ret; ··· 931 931 if (ret) 932 932 return ret; 933 933 934 - off += cdns->pdm.num_bd; 934 + off += cdns->pdm.num_out; 935 935 ret = intel_create_dai(cdns, dais, INTEL_PDI_BD, cdns->pdm.num_bd, 936 936 off, stream->num_ch_bd, false); 937 937 if (ret)
+2 -1
drivers/soundwire/slave.c
··· 128 128 struct device_node *node; 129 129 130 130 for_each_child_of_node(bus->dev->of_node, node) { 131 - int link_id, sdw_version, ret, len; 131 + int link_id, ret, len; 132 + unsigned int sdw_version; 132 133 const char *compat = NULL; 133 134 struct sdw_slave_id id; 134 135 const __be32 *addr;