summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRitu Sharma <ritushar@codeaurora.org>2021-08-18 18:41:14 +0530
committerRitu Sharma <ritushar@codeaurora.org>2021-08-25 10:45:45 +0530
commit59ab62c9cd847563a68ef88b81eec9014413f23a (patch)
tree76a3f1ee81a835806626a5279759fd782df0fc9c /include
parent7af6952af79e3ca5a58878bd0548a653d68caac3 (diff)
tinycompress: Add support for compress_set_codec_params API
Add support for compress_set_codec_params API which is used to send codec parameters from clients directly. CRs-Fixed: 2926417 Change-Id: I83f52378e288f15bccfc8a7798d33943a02d5e52
Diffstat (limited to 'include')
-rw-r--r--include/tinycompress/tinycompress.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/tinycompress/tinycompress.h b/include/tinycompress/tinycompress.h
index 62dcade..97b305f 100644
--- a/include/tinycompress/tinycompress.h
+++ b/include/tinycompress/tinycompress.h
@@ -323,6 +323,17 @@ const char *compress_get_error(struct compress *compress);
/* utility functions */
unsigned int compress_get_alsa_rate(unsigned int rate);
+ /*
+ * compress_set_codec_params: set codec config intended for next track
+ * if DSP has support to switch CODEC config during gapless playback
+ * This API is expected to be called after compress_next_track is called
+ * return 0 on success, negative on error
+ *
+ * @compress: compress stream for which metadata has to set
+ * @codec: codec configuration for next track
+ */
+int compress_set_codec_params(struct compress *compress, struct snd_codec *codec);
+
#ifdef ENABLE_EXTENDED_COMPRESS_FORMAT
/* set metadata */
int compress_set_metadata(struct compress *compress,