mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-31 22:25:35 -04:00
SND_PCM_TSTAMP_MMAP -> SND_PCM_TSTAMP_ENABLE change
This commit is contained in:
parent
70b11d614d
commit
6814d23d29
4 changed files with 7 additions and 7 deletions
|
|
@ -281,9 +281,9 @@ typedef enum _snd_pcm_xrun {
|
|||
typedef enum _snd_pcm_tstamp {
|
||||
/** No timestamp */
|
||||
SND_PCM_TSTAMP_NONE = 0,
|
||||
/** Update mmap'ed timestamp */
|
||||
SND_PCM_TSTAMP_MMAP,
|
||||
SND_PCM_TSTAMP_LAST = SND_PCM_TSTAMP_MMAP
|
||||
/** Update timestamp at every hardware position update */
|
||||
SND_PCM_TSTAMP_ENABLE,
|
||||
SND_PCM_TSTAMP_LAST = SND_PCM_TSTAMP_ENABLE
|
||||
} snd_pcm_tstamp_t;
|
||||
|
||||
/** Unsigned frames quantity */
|
||||
|
|
|
|||
|
|
@ -380,8 +380,8 @@ struct sndrv_pcm_hw_params {
|
|||
|
||||
enum sndrv_pcm_tstamp {
|
||||
SNDRV_PCM_TSTAMP_NONE = 0,
|
||||
SNDRV_PCM_TSTAMP_MMAP,
|
||||
SNDRV_PCM_TSTAMP_LAST = SNDRV_PCM_TSTAMP_MMAP,
|
||||
SNDRV_PCM_TSTAMP_ENABLE,
|
||||
SNDRV_PCM_TSTAMP_LAST = SNDRV_PCM_TSTAMP_ENABLE,
|
||||
};
|
||||
|
||||
struct sndrv_pcm_sw_params {
|
||||
|
|
|
|||
|
|
@ -1586,7 +1586,7 @@ static const char *snd_pcm_xrun_mode_names[] = {
|
|||
|
||||
static const char *snd_pcm_tstamp_mode_names[] = {
|
||||
TSTAMP(NONE),
|
||||
TSTAMP(MMAP),
|
||||
TSTAMP(ENABLE),
|
||||
};
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -1004,7 +1004,7 @@ int snd_pcm_direct_initialize_slave(snd_pcm_direct_t *dmix, snd_pcm_t *spcm, str
|
|||
* based on the tstamp_mode of each client
|
||||
*/
|
||||
ret = snd_pcm_sw_params_set_tstamp_mode(spcm, sw_params,
|
||||
SND_PCM_TSTAMP_MMAP);
|
||||
SND_PCM_TSTAMP_ENABLE);
|
||||
if (ret < 0) {
|
||||
SNDERR("unable to tstamp mode MMAP");
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue