asoc: codecs: Enable custom WSA SWRS port settings

For PBR and CPS ports, need the ability to customized slave
SWR frame OFFSET1 settings. Add similar method to WCD TX where
offset1 and lane_ctrl parameters are parsed from WSA device tree
and configured in SWRM.

Change-Id: Ib973ed93d9daa5ba02461a156e5b0a8c816d371e
Signed-off-by: Matthew Rice <quic_mrice@quicinc.com>
Este commit está contenido en:
Matthew Rice
2022-03-01 07:58:50 -08:00
padre 8d3fde6573
commit 3a6ef472dd
Se han modificado 4 ficheros con 88 adiciones y 1 borrados

Ver fichero

@@ -1428,6 +1428,16 @@ static void swrm_get_device_frame_shape(struct swr_mstr_ctrl *swrm,
port_req->blk_grp_count = mport->blk_grp_count;
port_req->lane_ctrl = mport->lane_ctrl;
}
if (swrm->master_id == MASTER_ID_WSA) {
uc = swrm_get_uc(swrm->bus_clk);
port_id_offset = (port_req->dev_num - 1) *
SWR_MAX_DEV_PORT_NUM +
port_req->slave_port_id;
if (port_id_offset >= SWR_MAX_MSTR_PORT_NUM ||
!swrm->pp[uc][port_id_offset].offset1)
return;
port_req->offset1 = swrm->pp[uc][port_id_offset].offset1;
}
}
static void swrm_copy_data_port_config(struct swr_master *master, u8 bank)