From c9032a07de3321063cbd0c1136cb2b065d2478a5 Mon Sep 17 00:00:00 2001 From: Omair Mohammed Abdullah Date: Thu, 31 Jan 2013 16:35:39 +0530 Subject: 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 Signed-off-by: David Wagner Signed-off-by: Bruce Beare Signed-off-by: Jack Ren Author-Tracking-BZ: 73509 --- include/tinyalsa/asoundlib.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') 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); -- cgit v1.2.3