[alsa-devel] [PATCH 1/2] ALSA: ASoC: add STA32X codec driver
Daniel Mack
zonque at gmail.com
Thu Jun 16 11:51:20 CEST 2011
On Thu, Jun 16, 2011 at 10:39 AM, Lars-Peter Clausen <lars at metafoo.de> wrote:
> You can put multiple scale items each with their own min/max value into a TLV.
> For example for DRC attack in your case this would look like:
>
> static const unsigned int drc_attack_tlv[] = {
> TLV_DB_RANGE_HEAD(3),
> 0, 7, TLV_DB_SCALE_ITEM(-3100, 200, 0),
> 8, 13, TLV_DB_SCALE_ITEM(-1600, 100, 0),
> 14, 16, TLV_DB_SCALE_ITEM(-1000, 300, 0),
> };
Using this results in strange values in userspace:
# amixer cget numid=39
numid=39,iface=MIXER,name='Limiter1 Attack Threshold (DRC Mode)'
; type=INTEGER,access=rw---R--,values=1,min=0,max=16,step=0
: values=9
| dBrange-
0x00000000,0x00000007,0x00000001,0x00000008,0xfffff3e4,0x000000c8,0x00000008,0x0000000d,0x00000001,0x00000008,0xfffff9c0,0x00000064,0x0000000e,0x00000010,0x00000001,0x00000008,0xfffffc18,0x0000012c,
Is there a way to get more descriptive information about possible
values for such controls?
Thanks,
Daniel
More information about the Alsa-devel
mailing list