Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 371867
b: refs/heads/master
c: 0cd5751
h: refs/heads/master
i:
  371865: 4a4669c
  371863: 52a2eae
v: v3
  • Loading branch information
Vinod Koul authored and Mark Brown committed Mar 29, 2013
1 parent 86dd480 commit 24accef
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 36953d98149674d218420e29f3ea2af827a68e74
refs/heads/master: 0cd5751ab360573f607d1cbf97aa072667f888c8
12 changes: 11 additions & 1 deletion trunk/sound/soc/mid-x86/sst_platform.c
Original file line number Diff line number Diff line change
@@ -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>
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 2 additions & 0 deletions trunk/sound/soc/mid-x86/sst_platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

};

Expand Down

0 comments on commit 24accef

Please sign in to comment.