Re: [PATCH] hda-audio: use log-scale for amplifier levels

2023-07-30 Thread Marc-André Lureau
Hi On Sun, Jul 30, 2023 at 5:52 PM Yuanqing Li wrote: > > According Intel's High Definition Audio Specification (Revision 1.0a, > Section 7.3.4.10: Amplifier Capabilities), the amplifier gain levels > should be evenly spaced in dB, i.e. using a log scale instead of linear. > > Here, the hda-codec

[PATCH] hda-audio: use log-scale for amplifier levels

2023-07-30 Thread Yuanqing Li
According Intel's High Definition Audio Specification (Revision 1.0a, Section 7.3.4.10: Amplifier Capabilities), the amplifier gain levels should be evenly spaced in dB, i.e. using a log scale instead of linear. Here, the hda-codec reports amplifier levels from 0 to -48 dB at 1-dB steps matching t