[alsa-devel] [PATCH] alsaucm: Report failure to set a device due to missing verb setup

Liam Girdwood lrg at slimlogic.co.uk
Sun Oct 10 12:45:54 CEST 2010


On Fri, 2010-10-08 at 14:11 -0700, Mark Brown wrote:
> Signed-off-by: Mark Brown <broonie at opensource.wolfsonmicro.com>
> ---
>  alsaucm/usecase.c |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)
> 
> diff --git a/alsaucm/usecase.c b/alsaucm/usecase.c
> index 2db26f1..d1420c0 100644
> --- a/alsaucm/usecase.c
> +++ b/alsaucm/usecase.c
> @@ -94,8 +94,10 @@ static int list_verb_device_status(snd_use_case_mgr_t *uc_mgr)
>  	int i, enabled, num;
>  
>  	verb = snd_use_case_get_verb(uc_mgr);
> -	if (verb == NULL)
> +	if (verb == NULL) {
> +		printf(" no verb currently enabled.\n");
>  		return -ENODEV;
> +	}
>  
>  	num = snd_use_case_get_device_list(uc_mgr, verb, &device_list);
>  	if (num <= 0) {

Both Applied.

Jaroslav, are you going to apply these to your ucm branch ?

Thanks

Liam
-- 
Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.
http://www.slimlogic.co.uk



More information about the Alsa-devel mailing list