Skip to content

Commit a1a9f53

Browse files
committed
Merge tag 'sound-4.17-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound
Pull sound fixes from Takashi Iwai: "Two fixes: - a timer pause event notification was garbled upon the recent hardening work; corrected now - HD-audio runtime PM regression fix due to the incorrect return type" * tag 'sound-4.17-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound: ALSA: hda - Fix runtime PM ALSA: timer: Fix pause event notification
2 parents b506943 + 009f8c9 commit a1a9f53

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

sound/core/timer.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ static int snd_timer_stop1(struct snd_timer_instance *timeri, bool stop)
592592
else
593593
timeri->flags |= SNDRV_TIMER_IFLG_PAUSED;
594594
snd_timer_notify1(timeri, stop ? SNDRV_TIMER_EVENT_STOP :
595-
SNDRV_TIMER_EVENT_CONTINUE);
595+
SNDRV_TIMER_EVENT_PAUSE);
596596
unlock:
597597
spin_unlock_irqrestore(&timer->lock, flags);
598598
return result;
@@ -614,7 +614,7 @@ static int snd_timer_stop_slave(struct snd_timer_instance *timeri, bool stop)
614614
list_del_init(&timeri->ack_list);
615615
list_del_init(&timeri->active_list);
616616
snd_timer_notify1(timeri, stop ? SNDRV_TIMER_EVENT_STOP :
617-
SNDRV_TIMER_EVENT_CONTINUE);
617+
SNDRV_TIMER_EVENT_PAUSE);
618618
spin_unlock(&timeri->timer->lock);
619619
}
620620
spin_unlock_irqrestore(&slave_active_lock, flags);

sound/pci/hda/hda_local.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -622,8 +622,10 @@ snd_hda_check_power_state(struct hda_codec *codec, hda_nid_t nid,
622622
{
623623
return snd_hdac_check_power_state(&codec->core, nid, target_state);
624624
}
625-
static inline bool snd_hda_sync_power_state(struct hda_codec *codec,
626-
hda_nid_t nid, unsigned int target_state)
625+
626+
static inline unsigned int snd_hda_sync_power_state(struct hda_codec *codec,
627+
hda_nid_t nid,
628+
unsigned int target_state)
627629
{
628630
return snd_hdac_sync_power_state(&codec->core, nid, target_state);
629631
}

0 commit comments

Comments
 (0)