aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux/dev_snd_pcm.txt
diff options
context:
space:
mode:
Diffstat (limited to 'sys/linux/dev_snd_pcm.txt')
-rw-r--r--sys/linux/dev_snd_pcm.txt31
1 files changed, 26 insertions, 5 deletions
diff --git a/sys/linux/dev_snd_pcm.txt b/sys/linux/dev_snd_pcm.txt
index 3e027e045..a39fd44a1 100644
--- a/sys/linux/dev_snd_pcm.txt
+++ b/sys/linux/dev_snd_pcm.txt
@@ -5,6 +5,7 @@ include <uapi/asm/ioctl.h>
include <uapi/linux/fcntl.h>
include <uapi/linux/time.h>
include <uapi/sound/asound.h>
+include <sound/pcm.h>
resource fd_snd_dsp[fd]
@@ -29,11 +30,13 @@ ioctl$SNDRV_PCM_IOCTL_HW_PARAMS_OLD(fd fd_snd_dsp, cmd const[SNDRV_PCM_IOCTL_HW_
ioctl$SNDRV_PCM_IOCTL_HW_FREE(fd fd_snd_dsp, cmd const[SNDRV_PCM_IOCTL_HW_FREE], arg const[0])
ioctl$SNDRV_PCM_IOCTL_SW_PARAMS(fd fd_snd_dsp, cmd const[SNDRV_PCM_IOCTL_SW_PARAMS], arg ptr[in, snd_pcm_sw_params])
-ioctl$SNDRV_PCM_IOCTL_STATUS(fd fd_snd_dsp, cmd const[SNDRV_PCM_IOCTL_STATUS], arg ptr[out, array[int8, SND_PCM_STATUS_SIZE]])
+ioctl$SNDRV_PCM_IOCTL_STATUS32(fd fd_snd_dsp, cmd const[SNDRV_PCM_IOCTL_STATUS32], arg ptr[out, array[int8, SND_PCM_STATUS32_SIZE]])
+ioctl$SNDRV_PCM_IOCTL_STATUS64(fd fd_snd_dsp, cmd const[SNDRV_PCM_IOCTL_STATUS64], arg ptr[out, array[int8, SND_PCM_STATUS64_SIZE]])
ioctl$SNDRV_PCM_IOCTL_DELAY(fd fd_snd_dsp, cmd const[SNDRV_PCM_IOCTL_DELAY], arg ptr[out, array[int8, SND_PCM_SFRAMES_SIZE]])
ioctl$SNDRV_PCM_IOCTL_HWSYNC(fd fd_snd_dsp, cmd const[SNDRV_PCM_IOCTL_HWSYNC], arg const[0])
ioctl$SNDRV_PCM_IOCTL_SYNC_PTR(fd fd_snd_dsp, cmd const[SNDRV_PCM_IOCTL_SYNC_PTR], arg ptr[in, snd_pcm_sync_ptr])
-ioctl$SNDRV_PCM_IOCTL_STATUS_EXT(fd fd_snd_dsp, cmd const[SNDRV_PCM_IOCTL_STATUS_EXT], arg ptr[in, snd_pcm_status])
+ioctl$SNDRV_PCM_IOCTL_STATUS_EXT32(fd fd_snd_dsp, cmd const[SNDRV_PCM_IOCTL_STATUS_EXT32], arg ptr[in, snd_pcm_status32])
+ioctl$SNDRV_PCM_IOCTL_STATUS_EXT64(fd fd_snd_dsp, cmd const[SNDRV_PCM_IOCTL_STATUS_EXT64], arg ptr[in, snd_pcm_status64])
ioctl$SNDRV_PCM_IOCTL_CHANNEL_INFO(fd fd_snd_dsp, cmd const[SNDRV_PCM_IOCTL_CHANNEL_INFO], arg ptr[out, array[int8, SND_PCM_CHANNEL_INFO_SIZE]])
ioctl$SNDRV_PCM_IOCTL_PREPARE(fd fd_snd_dsp, cmd const[SNDRV_PCM_IOCTL_PREPARE], arg const[0])
ioctl$SNDRV_PCM_IOCTL_RESET(fd fd_snd_dsp, cmd const[SNDRV_PCM_IOCTL_RESET], arg const[0])
@@ -108,7 +111,7 @@ snd_pcm_mmap_control {
avail_min intptr
}
-snd_pcm_status {
+snd_pcm_status32 {
state const[0, int32]
trigger_tstamp_sec const[0, intptr]
trigger_tstamp_nsec const[0, intptr]
@@ -122,7 +125,24 @@ snd_pcm_status {
overrange const[0, intptr]
suspended_state const[0, int32]
audio_tstamp_data flags[sndrv_pcm_audio_tstamp_type, int32]
-} [size[SND_PCM_STATUS_SIZE]]
+} [size[SND_PCM_STATUS32_SIZE]]
+
+snd_pcm_status64 {
+ state const[0, int32]
+ rsvd const[0, int32]
+ trigger_tstamp_sec const[0, intptr]
+ trigger_tstamp_nsec const[0, intptr]
+ tstamp_sec const[0, intptr]
+ tstamp_nsec const[0, intptr]
+ appl_ptr const[0, intptr]
+ hw_ptr const[0, intptr]
+ delay const[0, intptr]
+ avail const[0, intptr]
+ avail_max const[0, intptr]
+ overrange const[0, intptr]
+ suspended_state const[0, int32]
+ audio_tstamp_data flags[sndrv_pcm_audio_tstamp_type, int32]
+} [size[SND_PCM_STATUS64_SIZE]]
snd_xferi {
result const[0, intptr]
@@ -150,7 +170,8 @@ snd_pcm_sync_flags = SNDRV_PCM_SYNC_PTR_HWSYNC, SNDRV_PCM_SYNC_PTR_APPL, SNDRV_P
define SNDRV_PCM_IOCTL_HW_REFINE_OLD _IOWR('A', 0x10, struct {int a[62]; long b;})
define SNDRV_PCM_IOCTL_HW_PARAMS_OLD _IOWR('A', 0x11, struct {int a[62]; long b;})
define SND_PCM_INFO_SIZE sizeof(struct snd_pcm_info)
-define SND_PCM_STATUS_SIZE sizeof(struct snd_pcm_status)
+define SND_PCM_STATUS32_SIZE sizeof(struct snd_pcm_status32)
+define SND_PCM_STATUS64_SIZE sizeof(struct snd_pcm_status64)
define SND_PCM_SFRAMES_SIZE sizeof(snd_pcm_sframes_t)
define SND_PCM_CHANNEL_INFO_SIZE sizeof(struct snd_pcm_channel_info)
define SND_PCM_SW_PARAMS_SIZE sizeof(struct snd_pcm_sw_params)