diff options
author | Rohit kumar <rohitkr@codeaurora.org> | 2020-08-19 14:59:38 +0530 |
---|---|---|
committer | Rohit kumar <rohitkr@codeaurora.org> | 2020-08-25 11:39:41 +0530 |
commit | 1d72910d90d4b0b3d5719c865461a7637f4cc467 (patch) | |
tree | c942b679a8c82f40d2f6884abdbf174076442372 | |
parent | fd59e16f1893d8b49b0fae421d09df7161b52616 (diff) |
include: tinyalsa: Add PCM state macros
Add PCM_STATE_OPEN and PCM_STATE_SETUP macros so that
it can be utilized by plugin to update sync_ptr state.
-rw-r--r-- | include/tinyalsa/pcm.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/tinyalsa/pcm.h b/include/tinyalsa/pcm.h index f4b7d73..1184d81 100644 --- a/include/tinyalsa/pcm.h +++ b/include/tinyalsa/pcm.h @@ -95,6 +95,16 @@ * */ #define PCM_NONBLOCK 0x00000010 +/** Means a PCM is opened + * @ingroup libtinyalsa-pcm + */ +#define PCM_STATE_OPEN 0x00 + +/** Means a PCM HW_PARAMS is set + * @ingroup libtinyalsa-pcm + */ +#define PCM_STATE_SETUP 0x01 + /** Means a PCM is prepared * @ingroup libtinyalsa-pcm */ |