Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/audio/host.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ static void host_update_position(struct comp_dev *dev, uint32_t bytes)
if (hd->local_pos >= hd->host_size)
hd->local_pos = 0;

/* NO_IRQ mode if host_period_size == 0 */
if (dev->params.host_period_bytes != 0) {
/* Don't send stream position if no_stream_position == 1 */
if (!dev->params.no_stream_position) {
hd->report_pos += bytes;

/* send IPC message to driver if needed */
Expand Down
4 changes: 2 additions & 2 deletions src/include/ipc/stream.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ struct sof_ipc_stream_params {
uint16_t sample_valid_bytes;
uint16_t sample_container_bytes;

/* for notifying host period has completed - 0 means no period IRQ */
uint32_t host_period_bytes;
uint16_t no_stream_position; /**< 1 means don't send stream position */

uint32_t reserved[2];
uint16_t reserved[3];
uint16_t chmap[SOF_IPC_MAX_CHANNELS]; /**< channel map - SOF_CHMAP_ */
} __attribute__((packed));

Expand Down