Skip to content

Commit 7a9d9db

Browse files
committed
ASoC: SOF: ipc4-topology: Set FAST_MODE for host copier in compr mode
FAST_MODE allows the host DMA to work in opportunistic, free running mode, which matches with the bitstream nature of compressed devices. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
1 parent 35b91c3 commit 7a9d9db

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

sound/soc/sof/ipc4-topology.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -706,6 +706,9 @@ static int sof_ipc4_widget_setup_pcm(struct snd_sof_widget *swidget)
706706
sps->dsp_max_burst_size_in_ms = 1;
707707
}
708708

709+
if (spcm->pcm.compress)
710+
ipc4_copier->data.copier_feature_mask |= BIT(SOF_IPC4_COPIER_FAST_MODE);
711+
709712
skip_gtw_cfg:
710713
ipc4_copier->gtw_attr = kzalloc_obj(*ipc4_copier->gtw_attr);
711714
if (!ipc4_copier->gtw_attr) {

sound/soc/sof/ipc4-topology.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,11 @@ struct sof_copier_gateway_cfg {
219219
uint32_t config_data[];
220220
};
221221

222+
/* bit definition in copier_feature_mask */
223+
enum sof_ipc4_copier_feature {
224+
SOF_IPC4_COPIER_FAST_MODE = 0, /* free running mode of host copier */
225+
};
226+
222227
/**
223228
* struct sof_ipc4_copier_data - IPC data for copier
224229
* @base_config: Base configuration including input audio format

0 commit comments

Comments
 (0)