• Stefan Binding's avatar
    ALSA: hda: cs35l41: Use pre and post playback hooks · 01ecc562
    Stefan Binding authored
    
    
    Use new hooks to ensure separation between play/pause actions,
    as required by external boost.
    
    External Boost on CS35L41 requires the amp to go through a
    particular sequence of steps. One of these steps involes
    the setting of a GPIO. This GPIO is connected to one or
    more of the amps, and it may control the boost for all of
    the amps. To ensure that the GPIO is set when it is safe
    to do so, and to ensure that boost is ready for the rest of
    the sequence to be able to continue, we must ensure that
    the each part of the sequence is executed for each amp
    before moving on to the next part of the sequence.
    
    Some of the Play and Pause actions have moved from Open to
    Prepare. This is because Open is not guaranteed to be called
    again on system resume, whereas Prepare should.
    Signed-off-by: default avatarStefan Binding <sbinding@opensource.cirrus.com>
    Link: https://lore.kernel.org/r/20230721151816.2080453-9-sbinding@opensource.cirrus.com
    
    Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
    01ecc562
cs35l41_hda.c 48.3 KB