aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2013-07-29 13:40:55 -0400
committerMark Brown <broonie@linaro.org>2013-07-29 13:40:55 -0400
commit60529c65ec3bc1a347f67eec1b1567efebbf7ce1 (patch)
treeb0306d615dc7fa791030fd8348706ed66c3c08d8
parent5d99d778495cb02eafd38292f462c4466fc7189f (diff)
parent5f6e7d52c4959019d12a7deebbde548884a917d1 (diff)
Merge branch 'topic/core' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-dapm
-rw-r--r--sound/soc/codecs/Kconfig1
-rw-r--r--sound/soc/soc-dapm.c30
-rw-r--r--sound/soc/soc-jack.c2
-rw-r--r--sound/soc/soc-pcm.c5
4 files changed, 5 insertions, 33 deletions
diff --git a/sound/soc/codecs/Kconfig b/sound/soc/codecs/Kconfig
index badb6fbacaa6..01d112b48e7e 100644
--- a/sound/soc/codecs/Kconfig
+++ b/sound/soc/codecs/Kconfig
@@ -10,6 +10,7 @@ config SND_SOC_I2C_AND_SPI
10 10
11config SND_SOC_ALL_CODECS 11config SND_SOC_ALL_CODECS
12 tristate "Build all ASoC CODEC drivers" 12 tristate "Build all ASoC CODEC drivers"
13 depends on COMPILE_TEST
13 select SND_SOC_88PM860X if MFD_88PM860X 14 select SND_SOC_88PM860X if MFD_88PM860X
14 select SND_SOC_L3 15 select SND_SOC_L3
15 select SND_SOC_AB8500_CODEC if ABX500_CORE 16 select SND_SOC_AB8500_CODEC if ABX500_CORE
diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
index 758761146a42..366daef006ed 100644
--- a/sound/soc/soc-dapm.c
+++ b/sound/soc/soc-dapm.c
@@ -174,36 +174,6 @@ static inline struct snd_soc_dapm_widget *dapm_cnew_widget(
174 return kmemdup(_widget, sizeof(*_widget), GFP_KERNEL); 174 return kmemdup(_widget, sizeof(*_widget), GFP_KERNEL);
175} 175}
176 176
177/* get snd_card from DAPM context */
178static inline struct snd_card *dapm_get_snd_card(
179 struct snd_soc_dapm_context *dapm)
180{
181 if (dapm->codec)
182 return dapm->codec->card->snd_card;
183 else if (dapm->platform)
184 return dapm->platform->card->snd_card;
185 else
186 BUG();
187
188 /* unreachable */
189 return NULL;
190}
191
192/* get soc_card from DAPM context */
193static inline struct snd_soc_card *dapm_get_soc_card(
194 struct snd_soc_dapm_context *dapm)
195{
196 if (dapm->codec)
197 return dapm->codec->card;
198 else if (dapm->platform)
199 return dapm->platform->card;
200 else
201 BUG();
202
203 /* unreachable */
204 return NULL;
205}
206
207static void dapm_reset(struct snd_soc_card *card) 177static void dapm_reset(struct snd_soc_card *card)
208{ 178{
209 struct snd_soc_dapm_widget *w; 179 struct snd_soc_dapm_widget *w;
diff --git a/sound/soc/soc-jack.c b/sound/soc/soc-jack.c
index 0bb5cccd7766..7aa26b5178aa 100644
--- a/sound/soc/soc-jack.c
+++ b/sound/soc/soc-jack.c
@@ -263,7 +263,7 @@ static irqreturn_t gpio_handler(int irq, void *data)
263 if (device_may_wakeup(dev)) 263 if (device_may_wakeup(dev))
264 pm_wakeup_event(dev, gpio->debounce_time + 50); 264 pm_wakeup_event(dev, gpio->debounce_time + 50);
265 265
266 schedule_delayed_work(&gpio->work, 266 queue_delayed_work(system_power_efficient_wq, &gpio->work,
267 msecs_to_jiffies(gpio->debounce_time)); 267 msecs_to_jiffies(gpio->debounce_time));
268 268
269 return IRQ_HANDLED; 269 return IRQ_HANDLED;
diff --git a/sound/soc/soc-pcm.c b/sound/soc/soc-pcm.c
index 5c2c66209808..fb70fbe26862 100644
--- a/sound/soc/soc-pcm.c
+++ b/sound/soc/soc-pcm.c
@@ -411,8 +411,9 @@ static int soc_pcm_close(struct snd_pcm_substream *substream)
411 } else { 411 } else {
412 /* start delayed pop wq here for playback streams */ 412 /* start delayed pop wq here for playback streams */
413 rtd->pop_wait = 1; 413 rtd->pop_wait = 1;
414 schedule_delayed_work(&rtd->delayed_work, 414 queue_delayed_work(system_power_efficient_wq,
415 msecs_to_jiffies(rtd->pmdown_time)); 415 &rtd->delayed_work,
416 msecs_to_jiffies(rtd->pmdown_time));
416 } 417 }
417 } else { 418 } else {
418 /* capture streams can be powered down now */ 419 /* capture streams can be powered down now */