From: Brian Austin Subject: Re: [PATCH 00/42] ASoC: Replace users of TLV_DB_RANGE_HEAD Date: Mon, 3 Aug 2015 07:03:26 -0500 Message-ID: References: <1438528810-23498-1-git-send-email-lars@metafoo.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from m0077474.ppops.net (mx0b-001ae601.pphosted.com [67.231.152.168]) by alsa0.perex.cz (Postfix) with ESMTP id CFD36260612 for ; Mon, 3 Aug 2015 14:02:51 +0200 (CEST) In-Reply-To: <1438528810-23498-1-git-send-email-lars@metafoo.de> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Lars-Peter Clausen Cc: Oder Chiou , Brian Austin , Support Opensource , alsa-devel@alsa-project.org, Anish Kumar , patches@opensource.wolfsonmicro.com, Liam Girdwood , Paul Handrigan , Peter Ujfalusi , Mark Brown , Bard Liao , Charles Keepax List-Id: alsa-devel@alsa-project.org 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