ASoC: pcm - rename snd_codec_close() to snd_pcm_close().
authorLiam Girdwood <lrg@ti.com>
Thu, 9 Jun 2011 16:04:59 +0000 (17:04 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 9 Jun 2011 18:29:35 +0000 (19:29 +0100)
Make sure we follow naming convention for all PCM ops.

Signed-off-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/soc-pcm.c

index f4864b088d2ca297f1322d31acb1d2384f2fa1ec..b5759397afa342a89fe494b51d2d97e2a0d3e346 100644 (file)
@@ -268,7 +268,7 @@ static void close_delayed_work(struct work_struct *work)
  * freed here. The cpu DAI, codec DAI, machine and platform are also
  * shutdown.
  */
-static int soc_codec_close(struct snd_pcm_substream *substream)
+static int soc_pcm_close(struct snd_pcm_substream *substream)
 {
        struct snd_soc_pcm_runtime *rtd = substream->private_data;
        struct snd_soc_platform *platform = rtd->platform;
@@ -567,7 +567,7 @@ static snd_pcm_uframes_t soc_pcm_pointer(struct snd_pcm_substream *substream)
 /* ASoC PCM operations */
 static struct snd_pcm_ops soc_pcm_ops = {
        .open           = soc_pcm_open,
-       .close          = soc_codec_close,
+       .close          = soc_pcm_close,
        .hw_params      = soc_pcm_hw_params,
        .hw_free        = soc_pcm_hw_free,
        .prepare        = soc_pcm_prepare,