• Stefan Binding's avatar
    ALSA: hda: cs35l41: Set the max PCM Gain using tuning setting · ef752c60
    Stefan Binding authored
    Some systems requires different max PCM Gains settings than the default.
    The current default value, when running firmware is 17.5 dB, which is
    used for all systems. Some systems require lower values.
    Value when running without firmware is 4.5 dB and remains unchanged.
    
    Since the gain value is dependent on Tuning and Firmware, it can
    change, so it cannot be saved in _DSD. Instead we can store it inside
    a configuration binary file alongside the Firmware and Tuning files.
    
    The gain value increments in steps of 1 dB, with value 0 representing
    0.5 dB. The max value is 20, which corresponds to 20.5 dB.
    Signed-off-by: default avatarStefan Binding <sbinding@opensource.cirrus.com>
    Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
    Message-ID: <20240411110813.330483-2-sbinding@opensource.cirrus.com>
    ef752c60
cs35l41_hda.h 2.22 KB