Skip to content

Commit 30fdccc

Browse files
committed
fixup! soundwire: intel_ace2x: add fake frame to BRA read command
To fix checkpatch warnings. Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
1 parent 9414cf9 commit 30fdccc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/soundwire/intel_ace2x.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,9 @@ static int intel_ace2x_bpt_open_stream(struct sdw_intel *sdw, struct sdw_slave *
181181

182182
/* find fake pdi1 buffer size */
183183
rx_pad = rx_alignment - (pdi1_buffer_size % rx_alignment);
184-
while (rx_pad <= READ_PDI1_MIN_SIZE) {
184+
while (rx_pad <= READ_PDI1_MIN_SIZE)
185185
rx_pad += rx_alignment;
186-
}
186+
187187
pdi1_buffer_size += rx_pad;
188188
/* It is fine if we request more than enough byte to read */
189189
fake_num_frames = DIV_ROUND_UP(rx_pad, pdi1_buf_size_pre_frame);
@@ -196,12 +196,11 @@ static int intel_ace2x_bpt_open_stream(struct sdw_intel *sdw, struct sdw_slave *
196196
} else { /* write */
197197
/*
198198
* For the write command, the rx data block is 4, and the rx buffer size of a frame
199-
* is 8. So the rx buffer size (pdi0_buffer_size) is always a mutiple of rx
199+
* is 8. So the rx buffer size (pdi0_buffer_size) is always a multiple of rx
200200
* alignment.
201201
*/
202202
tx_pad = tx_alignment - (pdi0_buffer_size % tx_alignment);
203203
pdi0_buffer_size += tx_pad;
204-
205204
}
206205

207206
dev_dbg(cdns->dev, "Message len %d transferred in %d frames (%d per frame)\n",
@@ -228,7 +227,8 @@ static int intel_ace2x_bpt_open_stream(struct sdw_intel *sdw, struct sdw_slave *
228227
ret = sdw_cdns_prepare_read_dma_buffer(msg->dev_num, msg->addr, msg->len,
229228
data_per_frame,
230229
sdw->bpt_ctx.dmab_tx_bdl.area,
231-
pdi0_buffer_size, &tx_total_bytes, fake_size);
230+
pdi0_buffer_size, &tx_total_bytes,
231+
fake_size);
232232
}
233233

234234
if (!ret)

0 commit comments

Comments
 (0)