aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/soc-core.c
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2013-05-14 05:05:30 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-05-14 08:52:43 -0400
commit90996f43b3fa36075e501a52a3e2286896d74e79 (patch)
tree2ef18b1db71dba1c5ad17104a849235ec538af4d /sound/soc/soc-core.c
parent8011412999484a82a23dc3c9a5c9d5a1677ca05d (diff)
ASoC: core: Move snd_soc_set_runtime_hwparams() to soc-pcm.c
snd_soc_set_runtime_hwparams() is the only PCM related function that lives in soc-core.c. All other PCM related functions live in soc-pcm.c, so move snd_soc_set_runtime_hwparams() over as well for a bit more consistency. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Acked-by: Liam Girdwood <liam.r.girdwood@linux.intel.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/soc-core.c')
-rw-r--r--sound/soc/soc-core.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 308895a438d6..9d95ef531308 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -2220,29 +2220,6 @@ int snd_soc_test_bits(struct snd_soc_codec *codec, unsigned short reg,
2220EXPORT_SYMBOL_GPL(snd_soc_test_bits); 2220EXPORT_SYMBOL_GPL(snd_soc_test_bits);
2221 2221
2222/** 2222/**
2223 * snd_soc_set_runtime_hwparams - set the runtime hardware parameters
2224 * @substream: the pcm substream
2225 * @hw: the hardware parameters
2226 *
2227 * Sets the substream runtime hardware parameters.
2228 */
2229int snd_soc_set_runtime_hwparams(struct snd_pcm_substream *substream,
2230 const struct snd_pcm_hardware *hw)
2231{
2232 struct snd_pcm_runtime *runtime = substream->runtime;
2233 runtime->hw.info = hw->info;
2234 runtime->hw.formats = hw->formats;
2235 runtime->hw.period_bytes_min = hw->period_bytes_min;
2236 runtime->hw.period_bytes_max = hw->period_bytes_max;
2237 runtime->hw.periods_min = hw->periods_min;
2238 runtime->hw.periods_max = hw->periods_max;
2239 runtime->hw.buffer_bytes_max = hw->buffer_bytes_max;
2240 runtime->hw.fifo_size = hw->fifo_size;
2241 return 0;
2242}
2243EXPORT_SYMBOL_GPL(snd_soc_set_runtime_hwparams);
2244
2245/**
2246 * snd_soc_cnew - create new control 2223 * snd_soc_cnew - create new control
2247 * @_template: control template 2224 * @_template: control template
2248 * @data: control private data 2225 * @data: control private data