diff options
author | Peter Ujfalusi <peter.ujfalusi@linux.intel.com> | 2022-09-16 14:13:49 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-09-19 15:08:07 +0100 |
commit | 9dd28b467c35eef320a2974f6b1f209343ad8704 (patch) | |
tree | 2c80aca55a48f54cc7cbedb252dfda6a4615beec /block/blk-mq-pci.c | |
parent | 12e51866c79fe37faed276442f4b0dfd9f2dc174 (diff) |
ASoC: max98390: Fix dsm calibration reading
With the change introduced by 6ac246105b4f, the calibration can only be
done after the codec probe (but questionable if it is working since
203A_AMP_EN is 0) or when the codec is powered up for audio use, in other
cases "AMP is not ready to run calibration" is printed.
This changes how this worked before the patch: the codec was force powered
on for the duration of the calibration readout, then shut down.
So, if a calibration was asked when the codec was active, it would have
powered it down?
To correct the calibration logic: check if the codec is powered on and if
it is not then enable it, do the readout and put it back to disabled.
Do this while keeping the dapm locked to avoid interfering with normal
operation via DAPM.
Fixes: 6ac246105b4f ("ASoC: max98390: Remove unnecessary amp on/off conrtol")
Reported-by: Fred Oh <fred.oh@linux.intel.com>
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Link: https://lore.kernel.org/r/20220916111349.4433-1-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'block/blk-mq-pci.c')
0 files changed, 0 insertions, 0 deletions