aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound/asound.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sound/asound.h')
-rw-r--r--include/sound/asound.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/sound/asound.h b/include/sound/asound.h
index fad3e0c7b932..6add80fc2512 100644
--- a/include/sound/asound.h
+++ b/include/sound/asound.h
@@ -23,9 +23,10 @@
23#ifndef __SOUND_ASOUND_H 23#ifndef __SOUND_ASOUND_H
24#define __SOUND_ASOUND_H 24#define __SOUND_ASOUND_H
25 25
26#include <linux/types.h>
27
26#ifdef __KERNEL__ 28#ifdef __KERNEL__
27#include <linux/ioctl.h> 29#include <linux/ioctl.h>
28#include <linux/types.h>
29#include <linux/time.h> 30#include <linux/time.h>
30#include <asm/byteorder.h> 31#include <asm/byteorder.h>
31 32
@@ -340,7 +341,7 @@ struct snd_interval {
340#define SNDRV_MASK_MAX 256 341#define SNDRV_MASK_MAX 256
341 342
342struct snd_mask { 343struct snd_mask {
343 u_int32_t bits[(SNDRV_MASK_MAX+31)/32]; 344 __u32 bits[(SNDRV_MASK_MAX+31)/32];
344}; 345};
345 346
346struct snd_pcm_hw_params { 347struct snd_pcm_hw_params {
@@ -383,7 +384,7 @@ struct snd_pcm_sw_params {
383 384
384struct snd_pcm_channel_info { 385struct snd_pcm_channel_info {
385 unsigned int channel; 386 unsigned int channel;
386 off_t offset; /* mmap offset */ 387 __kernel_off_t offset; /* mmap offset */
387 unsigned int first; /* offset to first sample in bits */ 388 unsigned int first; /* offset to first sample in bits */
388 unsigned int step; /* samples distance in bits */ 389 unsigned int step; /* samples distance in bits */
389}; 390};
@@ -778,7 +779,7 @@ struct snd_ctl_elem_info {
778 snd_ctl_elem_type_t type; /* R: value type - SNDRV_CTL_ELEM_TYPE_* */ 779 snd_ctl_elem_type_t type; /* R: value type - SNDRV_CTL_ELEM_TYPE_* */
779 unsigned int access; /* R: value access (bitmask) - SNDRV_CTL_ELEM_ACCESS_* */ 780 unsigned int access; /* R: value access (bitmask) - SNDRV_CTL_ELEM_ACCESS_* */
780 unsigned int count; /* count of values */ 781 unsigned int count; /* count of values */
781 pid_t owner; /* owner's PID of this control */ 782 __kernel_pid_t owner; /* owner's PID of this control */
782 union { 783 union {
783 struct { 784 struct {
784 long min; /* R: minimum value */ 785 long min; /* R: minimum value */