Re: [PATCH] ASoC: nau8825: add programmable biquad filter control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, May 31, 2016 at 11:57:41AM +0800, John Hsu wrote:

> +	if (!component->regmap)
> +		return -EINVAL;

> +	regmap_raw_read(component->regmap, NAU8825_REG_BIQ_COF1,
> +		ucontrol->value.bytes.data, params->max);
> +	return 0;

You should really check the return code from regmap, especially for
larger block transfers where some controllers may have limitations.

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux