Skip to contentSkip to conversation

Thanks to review question [PATCH V2 1/2] ASoc:codes:Add Awinic AW883XX audio amplifier driver

DISCUSSION [email protected] 1 participant 1 message Oct 27, 2022

lore
Share & tools
lore
#0 lore raw

Hi Mark Brown

Thank you for your valuable advice to let me understand the problem. I will fix this issue in the next patch

Best regards
Weidong Wang

Quoted 6 lines · On Mon, Oct 24, 2022 at 10:41:03AM +0800, [email protected] wrote:
Quoted 2 lines

Then it's not a mute function, the goal of the mute function is to run

before all the power management code to minimise glitches during power management. Just implement the power management via the standard ASoC power

Quoted 8 lines
Quoted 1 line

management APIs.

The essence of calling mute is not switch dsp, but switch PA. We think that PA has only two states. When no audio stream enters, turn off the PA and turn off the PA's dsp. When the audio stream enters, the PA is turned on, and the dsp is turned on at the same time

That's not what the mute function is for, the interface is specifically

for muting the stream while power management changes are

Quoted 1 line

going on. What you're describing is power management so should be

controlled via DAPM.

Quoted 1 line

If your device doesn't have any support for a separate mute function then

it should just not implement anything for that in the

Quoted 1 line

driver.