Skip to content

Commit

Permalink
Merge pull request #21 from ranj063/temp
Browse files Browse the repository at this point in the history
host: remove unused variable
  • Loading branch information
lgirdwood authored Jun 27, 2018
2 parents 9f418cc + 4bf4860 commit 599e180
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/audio/host.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ static void host_dma_cb(void *data, uint32_t type, struct dma_sg_elem *next)
struct dma_sg_elem *local_elem;
struct dma_sg_elem *source_elem;
struct dma_sg_elem *sink_elem;
struct comp_buffer *dma_buffer;
uint32_t next_size;
uint32_t need_copy = 0;
uint32_t period_bytes = hd->period_bytes;
Expand All @@ -131,9 +130,6 @@ static void host_dma_cb(void *data, uint32_t type, struct dma_sg_elem *next)

tracev_host("irq");

/* update buffer positions */
dma_buffer = hd->dma_buffer;

if (dev->params.direction == SOF_IPC_STREAM_PLAYBACK)
/* recalc available buffer space */
comp_update_buffer_produce(hd->dma_buffer, local_elem->size);
Expand Down Expand Up @@ -300,16 +296,12 @@ static void host_gw_dma_update(struct comp_dev *dev)
struct dma_sg_elem *local_elem;
struct dma_sg_elem *source_elem;
struct dma_sg_elem *sink_elem;
struct comp_buffer *dma_buffer;

local_elem = list_first_item(&hd->config.elem_list,
struct dma_sg_elem, list);

tracev_host("upd");

/* update buffer positions */
dma_buffer = hd->dma_buffer;

if (dev->params.direction == SOF_IPC_STREAM_PLAYBACK)
/* recalc available buffer space */
comp_update_buffer_produce(hd->dma_buffer, local_elem->size);
Expand Down

0 comments on commit 599e180

Please sign in to comment.