Skip to content

Commit 106901a

Browse files
committed
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
2 parents 92fd9bf + 7b47ad3 commit 106901a

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

drivers/soundwire/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
menuconfig SOUNDWIRE
77
tristate "SoundWire support"
8+
depends on ACPI || OF
89
help
910
SoundWire is a 2-Pin interface with data and clock line ratified
1011
by the MIPI Alliance. SoundWire is used for transporting data

drivers/soundwire/intel.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -900,7 +900,7 @@ static int intel_register_dai(struct sdw_intel *sdw)
900900
/* Create PCM DAIs */
901901
stream = &cdns->pcm;
902902

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,
904904
off, stream->num_ch_in, true);
905905
if (ret)
906906
return ret;
@@ -931,7 +931,7 @@ static int intel_register_dai(struct sdw_intel *sdw)
931931
if (ret)
932932
return ret;
933933

934-
off += cdns->pdm.num_bd;
934+
off += cdns->pdm.num_out;
935935
ret = intel_create_dai(cdns, dais, INTEL_PDI_BD, cdns->pdm.num_bd,
936936
off, stream->num_ch_bd, false);
937937
if (ret)

drivers/soundwire/slave.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ int sdw_of_find_slaves(struct sdw_bus *bus)
128128
struct device_node *node;
129129

130130
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;
132133
const char *compat = NULL;
133134
struct sdw_slave_id id;
134135
const __be32 *addr;

0 commit comments

Comments
 (0)