History

ASoC: SOF: ipc: introduce cont_update_posn in sof_ipc_stream_params struct

The host stream position is updated when no_stream_position is set as 0. However current implementation updates host stream position only when report data is larger than or equal to host period size which is decided by the period size of host side. It maybe cause host stream position update not in time. Therefore this patch introduces another field "cont_update_posn", a boolean value aimed to update host stream position continuously and based on period size of pipeline. It can get better precise when need to update host stream position from firmware.

YC Hung committed 4 years ago

Commit 2cb29da1 parent 9d62ba92 files · +3 −2Browse files

Unified · Split

2 files
  1. include/sound/sof/stream.h +2 −1
  2. include/uapi/sound/sof/abi.h +1 −1
include/sound/sof/stream.h+2−1
@@ -85,8 +85,9 @@ struct sof_ipc_stream_params { · 84 unmodified lines
85 85
86 uint32_t host_period_bytes;86 uint32_t host_period_bytes;
87 uint16_t no_stream_position; /**< 1 means don't send stream position */87 uint16_t no_stream_position; /**< 1 means don't send stream position */
88 uint8_t cont_update_posn; /**< 1 means continuous update stream position */
88 89
89 uint16_t reserved[3];90 uint8_t reserved[5];
90 uint16_t chmap[SOF_IPC_MAX_CHANNELS]; /**< channel map - SOF_CHMAP_ */91 uint16_t chmap[SOF_IPC_MAX_CHANNELS]; /**< channel map - SOF_CHMAP_ */
91} __packed;92} __packed;
92 93
include/uapi/sound/sof/abi.h+1−1
@@ -26,7 +26,7 @@ · 25 unmodified lines
26 26
27/* SOF ABI version major, minor and patch numbers */27/* SOF ABI version major, minor and patch numbers */
28#define SOF_ABI_MAJOR 328#define SOF_ABI_MAJOR 3
29#define SOF_ABI_MINOR 2029#define SOF_ABI_MINOR 21
30#define SOF_ABI_PATCH 030#define SOF_ABI_PATCH 0
31 31
32/* SOF ABI version number. Format within 32bit word is MMmmmppp */32/* SOF ABI version number. Format within 32bit word is MMmmmppp */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t