[alsa-devel] [PATCH 00/42] ASoC: Replace users of TLV_DB_RANGE_HEAD

Brian Austin brian.austin at cirrus.com
Mon Aug 3 14:03:26 CEST 2015


On Sun, 2 Aug 2015, Lars-Peter Clausen wrote:

> Usage of TLV_DB_RANGE_HEAD() is deprecated in favor of
> DECLARE_TLV_DB_RANGE(). The reason for this is that the former requires to
> specify the number of items inside the range container while the later is
> able to calculate this automatically and hence leaves less room for error.
> 
> While non of the current users of TLV_DB_RANGE_HEAD() gets it wrong it
> still makes sense to clean this up since existing drivers are often used as
> templates for new drivers. As an added bonus the code is also slightly
> shorter.
> 
> There are also a few drivers which use TLV_DB_RANGE_HEAD() with only a
> single sub-item. Those are updated to not use a range container at all
> since it is not necessary.
For the Cirrus CODECS

Thanks,
Acked-by: Brian Austin <brian.austin at cirrus.com>


More information about the Alsa-devel mailing list