diff options
-rw-r--r-- | sound/core/timer.c | 4 | ||||
-rw-r--r-- | sound/pci/hda/hda_local.h | 6 |
2 files changed, 6 insertions, 4 deletions
diff --git a/sound/core/timer.c b/sound/core/timer.c index dc87728c5b74..0ddcae495838 100644 --- a/sound/core/timer.c +++ b/sound/core/timer.c | |||
@@ -592,7 +592,7 @@ static int snd_timer_stop1(struct snd_timer_instance *timeri, bool stop) | |||
592 | else | 592 | else |
593 | timeri->flags |= SNDRV_TIMER_IFLG_PAUSED; | 593 | timeri->flags |= SNDRV_TIMER_IFLG_PAUSED; |
594 | snd_timer_notify1(timeri, stop ? SNDRV_TIMER_EVENT_STOP : | 594 | snd_timer_notify1(timeri, stop ? SNDRV_TIMER_EVENT_STOP : |
595 | SNDRV_TIMER_EVENT_CONTINUE); | 595 | SNDRV_TIMER_EVENT_PAUSE); |
596 | unlock: | 596 | unlock: |
597 | spin_unlock_irqrestore(&timer->lock, flags); | 597 | spin_unlock_irqrestore(&timer->lock, flags); |
598 | return result; | 598 | return result; |
@@ -614,7 +614,7 @@ static int snd_timer_stop_slave(struct snd_timer_instance *timeri, bool stop) | |||
614 | list_del_init(&timeri->ack_list); | 614 | list_del_init(&timeri->ack_list); |
615 | list_del_init(&timeri->active_list); | 615 | list_del_init(&timeri->active_list); |
616 | snd_timer_notify1(timeri, stop ? SNDRV_TIMER_EVENT_STOP : | 616 | snd_timer_notify1(timeri, stop ? SNDRV_TIMER_EVENT_STOP : |
617 | SNDRV_TIMER_EVENT_CONTINUE); | 617 | SNDRV_TIMER_EVENT_PAUSE); |
618 | spin_unlock(&timeri->timer->lock); | 618 | spin_unlock(&timeri->timer->lock); |
619 | } | 619 | } |
620 | spin_unlock_irqrestore(&slave_active_lock, flags); | 620 | spin_unlock_irqrestore(&slave_active_lock, flags); |
diff --git a/sound/pci/hda/hda_local.h b/sound/pci/hda/hda_local.h index 321e78baa63c..9bd935216c18 100644 --- a/sound/pci/hda/hda_local.h +++ b/sound/pci/hda/hda_local.h | |||
@@ -622,8 +622,10 @@ snd_hda_check_power_state(struct hda_codec *codec, hda_nid_t nid, | |||
622 | { | 622 | { |
623 | return snd_hdac_check_power_state(&codec->core, nid, target_state); | 623 | return snd_hdac_check_power_state(&codec->core, nid, target_state); |
624 | } | 624 | } |
625 | static inline bool snd_hda_sync_power_state(struct hda_codec *codec, | 625 | |
626 | hda_nid_t nid, unsigned int target_state) | 626 | static inline unsigned int snd_hda_sync_power_state(struct hda_codec *codec, |
627 | hda_nid_t nid, | ||
628 | unsigned int target_state) | ||
627 | { | 629 | { |
628 | return snd_hdac_sync_power_state(&codec->core, nid, target_state); | 630 | return snd_hdac_sync_power_state(&codec->core, nid, target_state); |
629 | } | 631 | } |