ASoc: msm: stub set_metadata ops function

Implement stub set_metadata ops function in compressed platform driver.
Just return no error and print debug log.

Change-Id: I45d69b5902b666abc12549aebf1bfc58824ab8ec
Signed-off-by: Haynes Mathew George <hgeorge@codeaurora.org>
Signed-off-by: Eric Laurent <elaurent@google.com>
Git-commit: 902e5b4af87f4649f3b093dea0c5f59c87be0dc1
Git-repo: https://android.googlesource.com/kernel/msm
Signed-off-by: Dhananjay Kumar <dhakumar@codeaurora.org>
This commit is contained in:
Eric Laurent 2013-09-04 08:31:51 -07:00 committed by David Keitel
parent db4af0b8e4
commit 21f7a9a5eb

View file

@ -867,7 +867,17 @@ static int msm_compr_set_metadata(struct snd_compr_stream *cstream,
struct snd_compr_metadata *metadata)
{
pr_debug("%s\n", __func__);
return -ENXIO;
if (!metadata || !cstream)
return -EINVAL;
if (metadata->key == SNDRV_COMPRESS_ENCODER_PADDING) {
pr_debug("%s, got encoder padding %u", __func__, metadata->value[0]);
} else if (metadata->key == SNDRV_COMPRESS_ENCODER_DELAY) {
pr_debug("%s, got encoder delay %u", __func__, metadata->value[0]);
}
return 0;
}
static int msm_compr_volume_put(struct snd_kcontrol *kcontrol,