[alsa-devel] [PATCH 1/3] ucm: fix variable mixup

Takashi Iwai tiwai at suse.de
Wed Feb 11 12:43:05 CET 2015


At Tue, 10 Feb 2015 22:42:32 +0200,
Tanu Kaskinen wrote:
> 
> I assume the intention was to use cdev1 for PlaybackCTL and cdev2 for
> CaptureCTL, but cdev1 was being used for both and cdev2 was not used
> for anything.

Applied, thanks.


Takashi

> ---
>  src/ucm/main.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/ucm/main.c b/src/ucm/main.c
> index 182f174..3924aee 100644
> --- a/src/ucm/main.c
> +++ b/src/ucm/main.c
> @@ -308,7 +308,7 @@ static int execute_sequence(snd_use_case_mgr_t *uc_mgr,
>  					uc_error("cdev is not defined!");
>  					return err;
>  				}
> -				err = get_value3(&cdev1, "CaptureCTL",
> +				err = get_value3(&cdev2, "CaptureCTL",
>  						 value_list1,
>  						 value_list2,
>  						 value_list3);
> -- 
> 1.9.3
> 


More information about the Alsa-devel mailing list