[alsa-devel] [PATCH 0/3] ASoC: twl4030/tpa6130a2:?DB_RANGE mapping fixes

Takashi Iwai tiwai at suse.de
Mon Jul 19 18:25:55 CEST 2010


At Mon, 19 Jul 2010 11:30:38 +0100,
Mark Brown wrote:
> 
> On Mon, Jul 19, 2010 at 12:14:49PM +0300, Peter Ujfalusi wrote:
> 
> > I see, but I still don't see problem with this:
> 
> Meh, that works but I guess my brain can't imagine concepts that ugly :)

TLV_DB_MINMAX would be slightly easier to parse:

static const unsigned int tlv[] = {
        TLV_DB_RANGE_HEAD(3),
        1, 3, TLV_DB_MINMAX_ITEM(0, 400),
        3, 4, TLV_DB_MINMAX_ITEM(400, 500)
        4, 6, TLV_DB_MINMAX_ITEM(500, 900),
};


Takashi


More information about the Alsa-devel mailing list