aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorOmair Mohammed Abdullah <omair.m.abdullah@linux.intel.com>2013-01-31 16:35:39 +0530
committerDavid Wagner <david.wagner@intel.com>2014-04-29 16:36:56 +0200
commitc9032a07de3321063cbd0c1136cb2b065d2478a5 (patch)
treecf68f9a21a00232385ad8d51f8ccf128994ae269 /include
parent782bfda5e796cb46d0e7be0dc882ff686d5ad2a2 (diff)
tinyalsa: add separate call for pcm prepare
Tinyalsa combines PREPARE and START calls to the driver in the pcm_start() function. Typically, this is needed for making a driver allocating hardware resources that are not related to a PCM stream. Change-Id: Ic83fad784936bbebab28e8e425debd449182db88 Signed-off-by: Omair Mohammed Abdullah <omair.m.abdullah@linux.intel.com> Signed-off-by: David Wagner <david.wagner@intel.com> Signed-off-by: Bruce Beare <bruce.j.beare@intel.com> Signed-off-by: Jack Ren <jack.ren@intel.com> Author-Tracking-BZ: 73509
Diffstat (limited to 'include')
-rw-r--r--include/tinyalsa/asoundlib.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/tinyalsa/asoundlib.h b/include/tinyalsa/asoundlib.h
index 3d20b94..8ba5aca 100644
--- a/include/tinyalsa/asoundlib.h
+++ b/include/tinyalsa/asoundlib.h
@@ -189,6 +189,8 @@ int pcm_mmap_begin(struct pcm *pcm, void **areas, unsigned int *offset,
unsigned int *frames);
int pcm_mmap_commit(struct pcm *pcm, unsigned int offset, unsigned int frames);
+/* Prepare the PCM substream to be triggerable */
+int pcm_prepare(struct pcm *pcm);
/* Start and stop a PCM channel that doesn't transfer data */
int pcm_start(struct pcm *pcm);
int pcm_stop(struct pcm *pcm);