diff mbox

[1/3] ucm: fix variable mixup

Message ID 1423600954-8751-2-git-send-email-tanu.kaskinen@linux.intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Tanu Kaskinen Feb. 10, 2015, 8:42 p.m. UTC
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.
---
 src/ucm/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Takashi Iwai Feb. 11, 2015, 11:43 a.m. UTC | #1
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
>
diff mbox

Patch

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);