diff options
author | Mark Brown <broonie@linaro.org> | 2014-08-15 07:51:25 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-08-15 07:51:25 -0400 |
commit | 9c1810f9c3ff0a320d8d152884449d16b3a4d128 (patch) | |
tree | 2ea5f695da5ead7e22bb34fa424e6659030207f4 | |
parent | 19583ca584d6f574384e17fe7613dfaeadcdc4a6 (diff) | |
parent | 6385723a82e0e1162ecd04f367393aea722e42c7 (diff) |
Merge tag 'asoc-v3.16-rc1' into asoc-linus
ASoC: Fixes for v3.16
Quite a few build coverage fixes in here among the usual small driver
fixes includling the sigmadsp change from Lars - moving the driver to
separate modules per bus (which is basically just code motion) avoids
issues with some combinations of buses being enabled.
# gpg: Signature made Thu 19 Jun 2014 11:57:31 BST using RSA key ID 7EA229BD
# gpg: Good signature from "Mark Brown <broonie@sirena.org.uk>"
# gpg: aka "Mark Brown <broonie@debian.org>"
# gpg: aka "Mark Brown <broonie@kernel.org>"
# gpg: aka "Mark Brown <broonie@tardis.ed.ac.uk>"
# gpg: aka "Mark Brown <broonie@linaro.org>"
# gpg: aka "Mark Brown <Mark.Brown@linaro.org>"
-rw-r--r-- | sound/soc/codecs/wm8994.c | 9 | ||||
-rw-r--r-- | sound/soc/fsl/fsl_ssi.c | 4 |
2 files changed, 5 insertions, 8 deletions
diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c index 247b39013fba..9719d3ca8e47 100644 --- a/sound/soc/codecs/wm8994.c +++ b/sound/soc/codecs/wm8994.c | |||
@@ -3505,6 +3505,7 @@ static irqreturn_t wm8994_mic_irq(int irq, void *data) | |||
3505 | return IRQ_HANDLED; | 3505 | return IRQ_HANDLED; |
3506 | } | 3506 | } |
3507 | 3507 | ||
3508 | /* Should be called with accdet_lock held */ | ||
3508 | static void wm1811_micd_stop(struct snd_soc_codec *codec) | 3509 | static void wm1811_micd_stop(struct snd_soc_codec *codec) |
3509 | { | 3510 | { |
3510 | struct wm8994_priv *wm8994 = snd_soc_codec_get_drvdata(codec); | 3511 | struct wm8994_priv *wm8994 = snd_soc_codec_get_drvdata(codec); |
@@ -3512,14 +3513,10 @@ static void wm1811_micd_stop(struct snd_soc_codec *codec) | |||
3512 | if (!wm8994->jackdet) | 3513 | if (!wm8994->jackdet) |
3513 | return; | 3514 | return; |
3514 | 3515 | ||
3515 | mutex_lock(&wm8994->accdet_lock); | ||
3516 | |||
3517 | snd_soc_update_bits(codec, WM8958_MIC_DETECT_1, WM8958_MICD_ENA, 0); | 3516 | snd_soc_update_bits(codec, WM8958_MIC_DETECT_1, WM8958_MICD_ENA, 0); |
3518 | 3517 | ||
3519 | wm1811_jackdet_set_mode(codec, WM1811_JACKDET_MODE_JACK); | 3518 | wm1811_jackdet_set_mode(codec, WM1811_JACKDET_MODE_JACK); |
3520 | 3519 | ||
3521 | mutex_unlock(&wm8994->accdet_lock); | ||
3522 | |||
3523 | if (wm8994->wm8994->pdata.jd_ext_cap) | 3520 | if (wm8994->wm8994->pdata.jd_ext_cap) |
3524 | snd_soc_dapm_disable_pin(&codec->dapm, | 3521 | snd_soc_dapm_disable_pin(&codec->dapm, |
3525 | "MICBIAS2"); | 3522 | "MICBIAS2"); |
@@ -3560,10 +3557,10 @@ static void wm8958_open_circuit_work(struct work_struct *work) | |||
3560 | open_circuit_work.work); | 3557 | open_circuit_work.work); |
3561 | struct device *dev = wm8994->wm8994->dev; | 3558 | struct device *dev = wm8994->wm8994->dev; |
3562 | 3559 | ||
3563 | wm1811_micd_stop(wm8994->hubs.codec); | ||
3564 | |||
3565 | mutex_lock(&wm8994->accdet_lock); | 3560 | mutex_lock(&wm8994->accdet_lock); |
3566 | 3561 | ||
3562 | wm1811_micd_stop(wm8994->hubs.codec); | ||
3563 | |||
3567 | dev_dbg(dev, "Reporting open circuit\n"); | 3564 | dev_dbg(dev, "Reporting open circuit\n"); |
3568 | 3565 | ||
3569 | wm8994->jack_mic = false; | 3566 | wm8994->jack_mic = false; |
diff --git a/sound/soc/fsl/fsl_ssi.c b/sound/soc/fsl/fsl_ssi.c index 9bfef55d77d1..3043d576856b 100644 --- a/sound/soc/fsl/fsl_ssi.c +++ b/sound/soc/fsl/fsl_ssi.c | |||
@@ -590,8 +590,8 @@ static int fsl_ssi_set_bclk(struct snd_pcm_substream *substream, | |||
590 | else | 590 | else |
591 | clkrate = clk_round_rate(ssi_private->baudclk, tmprate); | 591 | clkrate = clk_round_rate(ssi_private->baudclk, tmprate); |
592 | 592 | ||
593 | do_div(clkrate, factor); | 593 | clkrate /= factor; |
594 | afreq = (u32)clkrate / (i + 1); | 594 | afreq = clkrate / (i + 1); |
595 | 595 | ||
596 | if (freq == afreq) | 596 | if (freq == afreq) |
597 | sub = 0; | 597 | sub = 0; |