• Abhinav Kumar's avatar
    drm/msm/dp: wait for audio notification before disabling clocks · 158b9aa7
    Abhinav Kumar authored
    In the current implementation, there is a very small window for
    the audio side to safely signal the hdmi_code_shutdown() before
    the clocks are disabled.
    
    Add some synchronization between the DP display and DP audio module
    to safely disable the clocks to avoid unclocked access from audio
    side.
    
    In addition, audio side can open the sound card even if DP monitor
    is not connected. Avoid programming hardware registers in this case
    and bail out early.
    
    Changes in v4:
    - removed some leftover prints
    
    Changes in v5:
    - fix crash when user tries to play audio in suspended
      state
    
    Changes in v6:
    - rebased on top of latest patchset of dependency
    Signed-off-by: default avatarAbhinav Kumar <abhinavk@codeaurora.org>
    Signed-off-by: default avatarRob Clark <robdclark@chromium.org>
    158b9aa7
dp_display.h 1.13 KB