Skip to content

Commit e89e770

Browse files
committed
Merge remote-tracking branch 'soundwire/next' into sound/upstream-20220421
2 parents 07f2cc9 + 60657fb commit e89e770

3 files changed

Lines changed: 17 additions & 1 deletion

File tree

Documentation/devicetree/bindings/soundwire/qcom,sdw.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,18 @@ board specific bus parameters.
162162
or applicable for the respective data port.
163163
More info in MIPI Alliance SoundWire 1.0 Specifications.
164164

165+
- reset:
166+
Usage: optional
167+
Value type: <prop-encoded-array>
168+
Definition: Should specify the SoundWire audio CSR reset controller interface,
169+
which is required for SoundWire version 1.6.0 and above.
170+
171+
- reset-names:
172+
Usage: optional
173+
Value type: <stringlist>
174+
Definition: should be "swr_audio_cgcr" for SoundWire audio CSR reset
175+
controller interface.
176+
165177
Note:
166178
More Information on detail of encoding of these fields can be
167179
found in MIPI Alliance SoundWire 1.0 Specifications.
@@ -180,6 +192,8 @@ soundwire: soundwire@c85 {
180192
interrupts = <20 IRQ_TYPE_EDGE_RISING>;
181193
clocks = <&wcc>;
182194
clock-names = "iface";
195+
resets = <&lpass_audiocc LPASS_AUDIO_SWR_TX_CGCR>;
196+
reset-names = "swr_audio_cgcr";
183197
#sound-dai-cells = <1>;
184198
qcom,dports-type = <0>;
185199
qcom,dout-ports = <6>;

drivers/soundwire/qcom.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1452,7 +1452,7 @@ static bool swrm_wait_for_frame_gen_enabled(struct qcom_swrm_ctrl *swrm)
14521452
} while (retry--);
14531453

14541454
dev_err(swrm->dev, "%s: link status not %s\n", __func__,
1455-
comp_sts && SWRM_FRM_GEN_ENABLED ? "connected" : "disconnected");
1455+
comp_sts & SWRM_FRM_GEN_ENABLED ? "connected" : "disconnected");
14561456

14571457
return false;
14581458
}
@@ -1549,6 +1549,7 @@ static const struct dev_pm_ops swrm_dev_pm_ops = {
15491549
static const struct of_device_id qcom_swrm_of_match[] = {
15501550
{ .compatible = "qcom,soundwire-v1.3.0", .data = &swrm_v1_3_data },
15511551
{ .compatible = "qcom,soundwire-v1.5.1", .data = &swrm_v1_5_data },
1552+
{ .compatible = "qcom,soundwire-v1.6.0", .data = &swrm_v1_5_data },
15521553
{/* sentinel */},
15531554
};
15541555

drivers/soundwire/stream.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -822,6 +822,7 @@ static int do_bank_switch(struct sdw_stream_runtime *stream)
822822
} else if (multi_link) {
823823
dev_err(bus->dev,
824824
"Post bank switch ops not implemented\n");
825+
ret = -EINVAL;
825826
goto error;
826827
}
827828

0 commit comments

Comments
 (0)