alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] ALSA: hda - jack poll once if jackpoll_interval==0
@ 2013-07-22  7:19 Wang Xingchao
  2013-07-22  7:19 ` [PATCH 2/3] ALSA: hda - WAKEEN feature enabling for runtime pm Wang Xingchao
                   ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: Wang Xingchao @ 2013-07-22  7:19 UTC (permalink / raw)
  To: alsa-devel, tiwai, david.henningsson
  Cc: Wang Xingchao, xingchao.wang, liam.r.girdwood

jackpoll_interval used to poll jack event periodically, if it's 0,
give the caller one chance to probe jack status.

Signed-off-by: Wang Xingchao <xingchao.wang@linux.intel.com>
---
 sound/pci/hda/hda_codec.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c
index 8a005f0..74c11bc 100644
--- a/sound/pci/hda/hda_codec.c
+++ b/sound/pci/hda/hda_codec.c
@@ -1216,11 +1216,12 @@ static void hda_jackpoll_work(struct work_struct *work)
 {
 	struct hda_codec *codec =
 		container_of(work, struct hda_codec, jackpoll_work.work);
-	if (!codec->jackpoll_interval)
-		return;
 
 	snd_hda_jack_set_dirty_all(codec);
 	snd_hda_jack_poll_all(codec);
+	if (!codec->jackpoll_interval)
+		return;
+
 	queue_delayed_work(codec->bus->workq, &codec->jackpoll_work,
 			   codec->jackpoll_interval);
 }
-- 
1.8.3.2

^ permalink raw reply related	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2013-07-25 12:54 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-22  7:19 [PATCH 1/3] ALSA: hda - jack poll once if jackpoll_interval==0 Wang Xingchao
2013-07-22  7:19 ` [PATCH 2/3] ALSA: hda - WAKEEN feature enabling for runtime pm Wang Xingchao
2013-07-23  7:36   ` David Henningsson
2013-07-23  8:06     ` Wang, Xingchao
2013-07-23  8:09     ` Wang, Xingchao
2013-07-24 10:48       ` Takashi Iwai
2013-07-24 11:36         ` David Henningsson
2013-07-24 12:24           ` Takashi Iwai
2013-07-25 12:54             ` Wang, Xingchao
2013-07-24 13:40         ` Wang, Xingchao
2013-07-24 13:52           ` Takashi Iwai
2013-07-24 14:02             ` Takashi Iwai
2013-07-24 14:06               ` Wang, Xingchao
2013-07-22  7:19 ` [PATCH 3/3] ALSA: hda - use azx_writew() for 16-bit length register Wang Xingchao
2013-07-24 14:00   ` Takashi Iwai
2013-07-24 10:08 ` [PATCH 1/3] ALSA: hda - jack poll once if jackpoll_interval==0 Takashi Iwai
2013-07-24 10:31   ` David Henningsson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).