Linux Sound subsystem development
 help / color / mirror / Atom feed
* [PATCH 0/4] soundwire: qcom: fixes and multi-master follow-ups
@ 2026-11-25 10:38 Srinivas Kandagatla
  2026-11-25 10:38 ` [PATCH 1/4] soundwire: qcom: always set master port_params.num Srinivas Kandagatla
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Srinivas Kandagatla @ 2026-11-25 10:38 UTC (permalink / raw)
  To: Vinod Koul
  Cc: Bard Liao, Pierre-Louis Bossart, Srinivas Kandagatla,
	Marek Szyprowski, linux-sound, linux-arm-msm, Srinivas Kandagatla

Two pre-existing bug fixes (Cc: stable) picked up while bringing SDCA
capture up on Glymur-CRD, followed by two multi-master follow-ups on
the series merged in vkoul/next. Tested on Glymur-CRD.

Fixes first:

 - Always set master p_rt->port_params.num/flow_mode/data_mode in
   qcom_swrm_compute_params(), guard the port-params callback when
   bps is unset, and bound-check the master port number against
   ctrl->nports before indexing ctrl->pconfig[].  When the DT marks
   word-length as SWR_INVALID_PARAM port_params was left zero-
   initialised, so dpn_set_port_params() was handed port_num == 0
   and bps - 1 = 0xffffffff was written to DPn_BLOCK_CTRL_1(offset,
   0), which is outside the DPn register range.  Addresses the same
   underlying bug as Marek Szyprowski's RB5 report.

 - Skip offset2 programming when the DT marks it 0xff
   (SWR_INVALID_PARAM), matching the behaviour of the other optional
   port fields.

Multi-master follow-ups:

 - Fan broadcast writes out to per-slave unicasts on the multi-master
   primary.  The primary's HW never raises SPECIAL_CMD_ID_FINISHED
   for broadcasts on the shared frame, so SCP_FrameCtrl updates sent
   that way are lost and following unicast reads to the slave time
   out.

 - Program SSP_PERIOD on the primary at init and on bank switch for
   v3.1.0+ frame generators that derive the superframe boundary from
   row/col geometry, and zero CLK_DIV in the same write so a stale
   divider does not survive.

Ravi Hothi (1):
  soundwire: qcom: skip offset2 write when unset

Srinivas Kandagatla (3):
  soundwire: qcom: always set master port_params.num
  soundwire: qcom: fan out broadcasts on multi-master primary
  soundwire: qcom: program SSP period on multi-master primary

 drivers/soundwire/qcom.c | 72 +++++++++++++++++++++++++++++++++++-----
 1 file changed, 64 insertions(+), 8 deletions(-)


base-commit: d9ea256ee889f3db9f0bd07ce5d114ce92e31b4f
-- 
2.53.0


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-11-25 11:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-25 10:38 [PATCH 0/4] soundwire: qcom: fixes and multi-master follow-ups Srinivas Kandagatla
2026-11-25 10:38 ` [PATCH 1/4] soundwire: qcom: always set master port_params.num Srinivas Kandagatla
2026-11-25 10:53   ` Marek Szyprowski
2026-11-25 10:38 ` [PATCH 2/4] soundwire: qcom: skip offset2 write when unset Srinivas Kandagatla
2026-11-25 11:01   ` sashiko-bot
2026-11-25 10:38 ` [PATCH 3/4] soundwire: qcom: fan out broadcasts on multi-master primary Srinivas Kandagatla
2026-11-25 10:38 ` [PATCH 4/4] soundwire: qcom: program SSP period " Srinivas Kandagatla
2026-11-25 10:55   ` sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox