Skip to content

Commit

Permalink
Audio: use struct dai_ts_cfg replace timestamp_cfg
Browse files Browse the repository at this point in the history
Use struct dai_ts_cfg replace timestamp_cfg of struct
dai_data in dai-zephyr.h

Signed-off-by: Andrula Song <[email protected]>
  • Loading branch information
andrula-song committed Sep 14, 2023
1 parent 46899d5 commit 463fb93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/audio/dai-zephyr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1669,7 +1669,7 @@ static int dai_copy(struct comp_dev *dev)
int dai_common_ts_config_op(struct dai_data *dd, struct comp_dev *dev)
{
struct ipc_config_dai *dai = &dd->ipc_config;
struct dai_ts_cfg *cfg = (struct dai_ts_cfg *)&dd->ts_config;
struct dai_ts_cfg *cfg = &dd->ts_config;

comp_dbg(dev, "dai_ts_config()");
if (!dd->chan) {
Expand Down
11 changes: 1 addition & 10 deletions src/include/sof/lib/dai-zephyr.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,6 @@ struct dai {
struct k_spinlock lock; /* protect properties */
};

struct timestamp_cfg {
uint32_t walclk_rate; /* Rate in Hz, e.g. 19200000 */
int type; /* SSP, DMIC, HDA, etc. */
int direction; /* Playback, capture */
int index; /* For SSPx to select correct timestamp register */
int dma_id; /* GPDMA id*/
int dma_chan_index; /* Used GPDMA channel */
int dma_chan_count; /* Channels in single GPDMA */
};
union hdalink_cfg {
uint16_t full;
struct {
Expand Down Expand Up @@ -127,7 +118,7 @@ struct dai_data {
struct comp_dev *dai_dev;
struct comp_buffer *dma_buffer;
struct comp_buffer *local_buffer;
struct timestamp_cfg ts_config;
struct dai_ts_cfg ts_config;
struct dai *dai;
struct dma *dma;
struct dai_group *group; /* NULL if no group assigned */
Expand Down

0 comments on commit 463fb93

Please sign in to comment.