aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/fpga-bridge.c
diff options
context:
space:
mode:
authorTzung-Bi Shih <[email protected]>2019-05-07 10:12:19 +0000
committerMark Brown <[email protected]>2019-05-08 08:12:24 +0000
commitbbb56537a3279f7221e253afc29e834a3d99662f (patch)
tree582f15340c417fcc958a49f94923913fe321014d /drivers/fpga/fpga-bridge.c
parentASoC: mediatek: mt6358: initialize setting when ramping volume (diff)
downloadkernel-bbb56537a3279f7221e253afc29e834a3d99662f.tar.gz
kernel-bbb56537a3279f7221e253afc29e834a3d99662f.zip
ASoC: mediatek: mt6358: save output volume for mixer controls
Output volume settings from mixer controls would be lost. Imagine that "Headphone Volume" has set to -10dB via amixer: - in mtk_hp_enable() - hp_store_gain() saves the volume setting -10dB from regmap_read() to ana_gain[AUDIO_ANALOG_VOLUME_HPOUTL] - headset_volume_ramp() ramps up from -10dB to -10dB - in mtk_hp_disable() - headset_volume_ramp() ramps down from -10dB to -40dB Next time in mtk_hp_enable(), hp_store_gain() would save -40dB but not -10dB. As a result, headset_volume_ramp() would ramp from -10dB to -40dB (which is mute). Signed-off-by: Tzung-Bi Shih <[email protected]> Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions