diff options
Diffstat (limited to 'drivers/gpu/drm/i915/intel_audio.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_audio.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_audio.c b/drivers/gpu/drm/i915/intel_audio.c index 6700a7be7f78..d32f586f9c05 100644 --- a/drivers/gpu/drm/i915/intel_audio.c +++ b/drivers/gpu/drm/i915/intel_audio.c | |||
@@ -600,6 +600,8 @@ static void i915_audio_component_codec_wake_override(struct device *dev, | |||
600 | if (!IS_SKYLAKE(dev_priv) && !IS_KABYLAKE(dev_priv)) | 600 | if (!IS_SKYLAKE(dev_priv) && !IS_KABYLAKE(dev_priv)) |
601 | return; | 601 | return; |
602 | 602 | ||
603 | i915_audio_component_get_power(dev); | ||
604 | |||
603 | /* | 605 | /* |
604 | * Enable/disable generating the codec wake signal, overriding the | 606 | * Enable/disable generating the codec wake signal, overriding the |
605 | * internal logic to generate the codec wake to controller. | 607 | * internal logic to generate the codec wake to controller. |
@@ -615,6 +617,8 @@ static void i915_audio_component_codec_wake_override(struct device *dev, | |||
615 | I915_WRITE(HSW_AUD_CHICKENBIT, tmp); | 617 | I915_WRITE(HSW_AUD_CHICKENBIT, tmp); |
616 | usleep_range(1000, 1500); | 618 | usleep_range(1000, 1500); |
617 | } | 619 | } |
620 | |||
621 | i915_audio_component_put_power(dev); | ||
618 | } | 622 | } |
619 | 623 | ||
620 | /* Get CDCLK in kHz */ | 624 | /* Get CDCLK in kHz */ |
@@ -648,6 +652,7 @@ static int i915_audio_component_sync_audio_rate(struct device *dev, | |||
648 | !IS_HASWELL(dev_priv)) | 652 | !IS_HASWELL(dev_priv)) |
649 | return 0; | 653 | return 0; |
650 | 654 | ||
655 | i915_audio_component_get_power(dev); | ||
651 | mutex_lock(&dev_priv->av_mutex); | 656 | mutex_lock(&dev_priv->av_mutex); |
652 | /* 1. get the pipe */ | 657 | /* 1. get the pipe */ |
653 | intel_encoder = dev_priv->dig_port_map[port]; | 658 | intel_encoder = dev_priv->dig_port_map[port]; |
@@ -698,6 +703,7 @@ static int i915_audio_component_sync_audio_rate(struct device *dev, | |||
698 | 703 | ||
699 | unlock: | 704 | unlock: |
700 | mutex_unlock(&dev_priv->av_mutex); | 705 | mutex_unlock(&dev_priv->av_mutex); |
706 | i915_audio_component_put_power(dev); | ||
701 | return err; | 707 | return err; |
702 | } | 708 | } |
703 | 709 | ||