aboutsummaryrefslogtreecommitdiff
path: root/include/tinyalsa/pcm.h
diff options
context:
space:
mode:
authorDavid Li <dvdli@google.com>2020-12-02 07:46:19 +0000
committerDavid Li <dvdli@google.com>2020-12-02 07:46:19 +0000
commitc0d68b1cfc5e91e5b154b1b69af04b4d6006a122 (patch)
tree7028f39cbd40f356e0be427e8b436e6099f86f6b /include/tinyalsa/pcm.h
parent40867609e738919872c88b7716b17c30d96211a4 (diff)
fix build breakage
1. Add a missing field and a function 2. Disable the deprecated attribute in Android temporarily to allow us to use "pcm_read/write" which are deprecated upstream 3. Remove an unused define and an include in mixer.h 4. Add mixer_ctl_event and copy the snd_ctl_event to mixer_ctl_event 5. Add pcm_ioctl function and mark as deprecated function
Diffstat (limited to 'include/tinyalsa/pcm.h')
-rw-r--r--include/tinyalsa/pcm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/tinyalsa/pcm.h b/include/tinyalsa/pcm.h
index cdc31a5..6569146 100644
--- a/include/tinyalsa/pcm.h
+++ b/include/tinyalsa/pcm.h
@@ -221,6 +221,8 @@ struct pcm_config {
/** The number of frames to overwrite the playback buffer when the playback underrun is greater
* than the silence threshold */
unsigned int silence_size;
+
+ unsigned int avail_min;
};
/** Enumeration of a PCM's hardware parameters.
@@ -361,6 +363,8 @@ int pcm_wait(struct pcm *pcm, int timeout);
long pcm_get_delay(struct pcm *pcm);
+int pcm_ioctl(struct pcm *pcm, int code, ...) TINYALSA_DEPRECATED;
+
#if defined(__cplusplus)
} /* extern "C" */
#endif