ASoC: mid-x86 - add support for meaadata apis
authorVinod Koul <vinod.koul@intel.com>
Fri, 29 Mar 2013 18:11:42 +0000 (23:41 +0530)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 29 Mar 2013 21:08:32 +0000 (21:08 +0000)
while at it, update the copyright timeline too

Signed-off-by: Jeeja KP <jeeja.kp@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/mid-x86/sst_platform.c
sound/soc/mid-x86/sst_platform.h

index a263cbed8624527e5b09f19b01da08ecff3e7292..968656ceb39e0f8e93f497f856bfd5947ad92cf4 100644 (file)
@@ -1,7 +1,7 @@
 /*
  *  sst_platform.c - Intel MID Platform driver
  *
- *  Copyright (C) 2010-2012 Intel Corp
+ *  Copyright (C) 2010-2013 Intel Corp
  *  Author: Vinod Koul <vinod.koul@intel.com>
  *  Author: Harsha Priya <priya.harsha@intel.com>
  *  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -652,11 +652,21 @@ static int sst_platform_compr_get_codec_caps(struct snd_compr_stream *cstream,
        return stream->compr_ops->get_codec_caps(codec);
 }
 
+static int sst_platform_compr_set_metadata(struct snd_compr_stream *cstream,
+                                       struct snd_compr_metadata *metadata)
+{
+       struct sst_runtime_stream *stream  =
+                cstream->runtime->private_data;
+
+       return stream->compr_ops->set_metadata(stream->id, metadata);
+}
+
 static struct snd_compr_ops sst_platform_compr_ops = {
 
        .open = sst_platform_compr_open,
        .free = sst_platform_compr_free,
        .set_params = sst_platform_compr_set_params,
+       .set_metadata = sst_platform_compr_set_metadata,
        .trigger = sst_platform_compr_trigger,
        .pointer = sst_platform_compr_pointer,
        .ack = sst_platform_compr_ack,
index d61c5d514ffabf43a29cb09e62024e7d17045471..cacc9066ec524a5ad6747f650b77615899d776d6 100644 (file)
@@ -124,6 +124,8 @@ struct compress_sst_ops {
        int (*close) (unsigned int str_id);
        int (*get_caps) (struct snd_compr_caps *caps);
        int (*get_codec_caps) (struct snd_compr_codec_caps *codec);
+       int (*set_metadata) (unsigned int str_id,
+                       struct snd_compr_metadata *mdata);
 
 };