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:
parent
db4af0b8e4
commit
21f7a9a5eb
1 changed files with 11 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue