host: remove using bytes argument in host_buffer_cb

We do not have to use bytes to count copy_bytes since
copy_bytes variable is calculated based on hda-dma and
host buffer pointers. Bytes variable is not useful here
- we should copy as much data as available in the host
buffer. Bytes variable gives additional unnecessary
limitation.

Signed-off-by: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
This commit is contained in:
Bartosz Kokoszko 2019-06-25 12:49:39 +02:00 committed by Tomasz Lauda
parent f5186ece2c
commit fb10557575
1 changed files with 0 additions and 2 deletions

View File

@ -447,8 +447,6 @@ static void host_buffer_cb(void *data, uint32_t bytes)
MIN(avail_bytes, hd->dma_buffer->free) : MIN(avail_bytes, hd->dma_buffer->free) :
MIN(hd->dma_buffer->avail, free_bytes); MIN(hd->dma_buffer->avail, free_bytes);
copy_bytes = MIN(copy_bytes, bytes);
tracev_host("host_buffer_cb(), copy_bytes = 0x%x", copy_bytes); tracev_host("host_buffer_cb(), copy_bytes = 0x%x", copy_bytes);
if (hd->copy_blocking) if (hd->copy_blocking)