All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
To: Mark Brown <broonie@kernel.org>
Cc: Linux-ALSA <alsa-devel@alsa-project.org>,
	NAOYA SHIIBA <naoya.shiiba.nx@renesas.com>,
	Hisao Munakata <hisao.munakata.vt@renesas.com>,
	TOSHIAKI KOMATSU <toshiaki.komatsu.ud@renesas.com>,
	Yusuke Goda <yusuke.goda.sx@renesas.com>,
	Simon <horms@verge.net.au>,
	YOSHIYUKI ITO <yoshiyuki.ito.ub@renesas.com>,
	Tsuyoshi Tsumuraya <tsuyoshi.tsumuraya.zy@renesas.com>,
	HARUNOBU KUROKAWA <harunobu.kurokawa.dn@renesas.com>,
	RYO KODAMA <ryo.kodama.vz@renesas.com>
Subject: [PATCH] ASoC: ak4642: Replace mdelay function to msleep
Date: Wed, 21 Dec 2016 03:55:11 +0000	[thread overview]
Message-ID: <87bmw6x7ih.wl%kuninori.morimoto.gx@renesas.com> (raw)
In-Reply-To: <HK2PR06MB1235B7DA8F97119F90296F4ABE930@HK2PR06MB1235.apcprd06.prod.outlook.com>

From: Harunobu Kurokawa <harunobu.kurokawa.dn@renesas.com>

Replace mdelay to msleep to avoid busy loop on ak4642_lout_event().
Otherwise, sometimes playback doesn't work correctly when pulseaudio
was used.

Signed-off-by: Harunobu Kurokawa <harunobu.kurokawa.dn@renesas.com>
---
 sound/soc/codecs/ak4642.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/ak4642.c b/sound/soc/codecs/ak4642.c
index 40500cd..0205ae1 100644
--- a/sound/soc/codecs/ak4642.c
+++ b/sound/soc/codecs/ak4642.c
@@ -186,7 +186,7 @@ static int ak4642_lout_event(struct snd_soc_dapm_widget *w,
 		break;
 	case SND_SOC_DAPM_POST_PMU:	/* after widget power up */
 		/* Power save mode OFF */
-		mdelay(popup_wait);
+		msleep(popup_wait);
 		snd_soc_update_bits(codec, SG_SL2, LOPS, 0);
 		break;
 	case SND_SOC_DAPM_PRE_PMD:	/* before widget power down */
-- 
2.9.2

       reply	other threads:[~2016-12-21  3:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <KL1PR06MB1558D289757F434A9C6618C7BE900@KL1PR06MB1558.apcprd06.prod.outlook.com>
     [not found] ` <HK2PR06MB1092794596913BC4287D1BB4C5900@HK2PR06MB1092.apcprd06.prod.outlook.com>
     [not found]   ` <KL1PR06MB15580C36E2CCEE0609270003BE900@KL1PR06MB1558.apcprd06.prod.outlook.com>
     [not found]     ` <HK2PR06MB1235F138E73E5BE0A1BB9EA1BE900@HK2PR06MB1235.apcprd06.prod.outlook.com>
     [not found]       ` <HK2PR06MB1092041371630C232825868AC5900@HK2PR06MB1092.apcprd06.prod.outlook.com>
     [not found]         ` <HK2PR06MB10929196AD848D2221AA65D3C5900@HK2PR06MB1092.apcprd06.prod.outlook.com>
     [not found]           ` <878trbb3gx.wl%kuninori.morimoto.gx@renesas.com>
     [not found]             ` <HK2PR06MB123504946F7D9CBFA0445A74BE900@HK2PR06MB1235.apcprd06.prod.outlook.com>
     [not found]               ` <HK2PR06MB1092F11AFF71BCF6CFE41CE6C5900@HK2PR06MB1092.apcprd06.prod.outlook.com>
     [not found]                 ` <HK2PR06MB1235B6435DA88D1DEEFF37FBBE900@HK2PR06MB1235.apcprd06.prod.outlook.com>
     [not found]                   ` <874m1zay9v.wl%kuninori.morimoto.gx@renesas.com>
     [not found]                     ` <HK2PR06MB1092376B43150072E37148DBC5900@HK2PR06MB1092.apcprd06.prod.outlook.com>
     [not found]                       ` <HK2PR06MB10928AA734902EC15D19EE50C5900@HK2PR06MB1092.apcprd06.prod.outlook.com>
     [not found]                         ` <87k2auxk40.wl%kuninori.morimoto.gx@renesas.com>
     [not found]                           ` <HK2PR06MB109231252C5BD2F3CD6A7E93C5930@HK2PR06MB1092.apcprd06.prod.outlook.com>
     [not found]                             ` <HK2PR06MB1235B7DA8F97119F90296F4ABE930@HK2PR06MB1235.apcprd06.prod.outlook.com>
2016-12-21  3:55                               ` Kuninori Morimoto [this message]
2016-12-31 18:52                                 ` [PATCH] ASoC: ak4642: Replace mdelay function to msleep Mark Brown
2017-01-10  2:12                                   ` Kuninori Morimoto
2017-01-10  2:13                               ` Kuninori Morimoto
2017-01-10 12:24                                 ` Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bmw6x7ih.wl%kuninori.morimoto.gx@renesas.com \
    --to=kuninori.morimoto.gx@renesas.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=broonie@kernel.org \
    --cc=harunobu.kurokawa.dn@renesas.com \
    --cc=hisao.munakata.vt@renesas.com \
    --cc=horms@verge.net.au \
    --cc=naoya.shiiba.nx@renesas.com \
    --cc=ryo.kodama.vz@renesas.com \
    --cc=toshiaki.komatsu.ud@renesas.com \
    --cc=tsuyoshi.tsumuraya.zy@renesas.com \
    --cc=yoshiyuki.ito.ub@renesas.com \
    --cc=yusuke.goda.sx@renesas.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.