aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPankaj Bharadiya <pankaj.laxminarayan.bharadiya@intel.com>2017-01-09 13:42:14 +0530
committerPankaj Bharadiya <pankaj.laxminarayan.bharadiya@intel.com>2017-01-10 13:50:53 +0530
commit3f813e47784674a3909fe1277bc10b70d03791e2 (patch)
treec3a50bce2368bc86549907aa784e8b1b638de3a4 /include
parent9698d03a63b89fd5a2a2d775bcfc542812da54d9 (diff)
Fix the byte control set/get method
The TLV byte controls expect a TLV header as well. Check for TLV access and add TLV header size before invoking mixer API. Change-Id: I12ba129e5bbc0676e80eb920e85b3683decfe0db Signed-off-by: Pawse, GuruprasadX <guruprasadx.pawse@intel.com> Signed-off-by: Pankaj Bharadiya <pankaj.laxminarayan.bharadiya@intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/tinyalsa/mixer.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/tinyalsa/mixer.h b/include/tinyalsa/mixer.h
index b9d6cf3..0a48b6f 100644
--- a/include/tinyalsa/mixer.h
+++ b/include/tinyalsa/mixer.h
@@ -41,6 +41,9 @@
extern "C" {
#endif
+/* TLV header size*/
+#define TLV_HEADER_SIZE (2 * sizeof(unsigned int))
+
struct mixer;
struct mixer_ctl;