Merge "ASoc: msm: stub set_metadata ops function"
diff --git a/sound/soc/msm/qdsp6v2/msm-compress-q6-v2.c b/sound/soc/msm/qdsp6v2/msm-compress-q6-v2.c
index 7dc544a..2882c72 100644
--- a/sound/soc/msm/qdsp6v2/msm-compress-q6-v2.c
+++ b/sound/soc/msm/qdsp6v2/msm-compress-q6-v2.c
@@ -866,7 +866,17 @@
 				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,