[Sound-open-firmware] [PATCH] volume: fix copy size incorrect issue

Liam Girdwood liam.r.girdwood at linux.intel.com
Thu Nov 16 16:36:08 CET 2017


On Thu, 2017-11-16 at 23:04 +0800, Keyon Jie wrote:
> The copy sizes for src and sink may be different,
> here add fix to handle it.
> 
> Signed-off-by: Keyon Jie <yang.jie at linux.intel.com>
> ---
>  src/audio/volume.c              | 38 +++++++++++++++++++++++++++++---------
>  src/include/reef/audio/buffer.h | 19 +++++++++++++++++++
>  2 files changed, 48 insertions(+), 9 deletions(-)
> 
> diff --git a/src/audio/volume.c b/src/audio/volume.c
> index 415a853..9cf766b 100644
> --- a/src/audio/volume.c
> +++ b/src/audio/volume.c
> @@ -535,13 +535,27 @@ static int volume_cmd(struct comp_dev *dev, int cmd, void *data)
>  	}
>  }

I will merge parts of this into the xrun branch since we both have
patches that do a similar thing and impact volume copy.

Thanks

Liam



More information about the Sound-open-firmware mailing list