[alsa-devel] [PATCH] ASoC: soc-core: Simplify compress_type overriding functionality

Mark Brown broonie at opensource.wolfsonmicro.com
Tue Jan 11 12:35:41 CET 2011


On Tue, Jan 11, 2011 at 11:36:13AM +0000, Dimitris Papastamos wrote:

>  		if (i == card->num_configs) {
>  			/* no need to override the compress_type so
>  			 * go ahead and do the standard thing */
> -			ret = snd_soc_init_codec_cache(codec, 0);
> -			if (ret < 0) {
> -				mutex_unlock(&card->mutex);
> -				return;
> -			}
> -			continue;
> +			compress_type = 0;
>  		}

Even simpler would be to init compress_type to zero and remove the
check.


More information about the Alsa-devel mailing list