diff options
-rw-r--r-- | include/sound/asound.h | 44 |
1 files changed, 27 insertions, 17 deletions
diff --git a/include/sound/asound.h b/include/sound/asound.h index ca2f3582664d..1196e3d51946 100644 --- a/include/sound/asound.h +++ b/include/sound/asound.h | |||
@@ -297,29 +297,39 @@ struct snd_pcm_info { | |||
297 | unsigned char reserved[64]; /* reserved for future... */ | 297 | unsigned char reserved[64]; /* reserved for future... */ |
298 | }; | 298 | }; |
299 | 299 | ||
300 | typedef int __bitwise snd_pcm_hw_param_t; | 300 | typedef int snd_pcm_hw_param_t; |
301 | #define SNDRV_PCM_HW_PARAM_ACCESS ((__force snd_pcm_hw_param_t) 0) /* Access type */ | 301 | #define SNDRV_PCM_HW_PARAM_ACCESS 0 /* Access type */ |
302 | #define SNDRV_PCM_HW_PARAM_FORMAT ((__force snd_pcm_hw_param_t) 1) /* Format */ | 302 | #define SNDRV_PCM_HW_PARAM_FORMAT 1 /* Format */ |
303 | #define SNDRV_PCM_HW_PARAM_SUBFORMAT ((__force snd_pcm_hw_param_t) 2) /* Subformat */ | 303 | #define SNDRV_PCM_HW_PARAM_SUBFORMAT 2 /* Subformat */ |
304 | #define SNDRV_PCM_HW_PARAM_FIRST_MASK SNDRV_PCM_HW_PARAM_ACCESS | 304 | #define SNDRV_PCM_HW_PARAM_FIRST_MASK SNDRV_PCM_HW_PARAM_ACCESS |
305 | #define SNDRV_PCM_HW_PARAM_LAST_MASK SNDRV_PCM_HW_PARAM_SUBFORMAT | 305 | #define SNDRV_PCM_HW_PARAM_LAST_MASK SNDRV_PCM_HW_PARAM_SUBFORMAT |
306 | 306 | ||
307 | #define SNDRV_PCM_HW_PARAM_SAMPLE_BITS ((__force snd_pcm_hw_param_t) 8) /* Bits per sample */ | 307 | #define SNDRV_PCM_HW_PARAM_SAMPLE_BITS 8 /* Bits per sample */ |
308 | #define SNDRV_PCM_HW_PARAM_FRAME_BITS ((__force snd_pcm_hw_param_t) 9) /* Bits per frame */ | 308 | #define SNDRV_PCM_HW_PARAM_FRAME_BITS 9 /* Bits per frame */ |
309 | #define SNDRV_PCM_HW_PARAM_CHANNELS ((__force snd_pcm_hw_param_t) 10) /* Channels */ | 309 | #define SNDRV_PCM_HW_PARAM_CHANNELS 10 /* Channels */ |
310 | #define SNDRV_PCM_HW_PARAM_RATE ((__force snd_pcm_hw_param_t) 11) /* Approx rate */ | 310 | #define SNDRV_PCM_HW_PARAM_RATE 11 /* Approx rate */ |
311 | #define SNDRV_PCM_HW_PARAM_PERIOD_TIME ((__force snd_pcm_hw_param_t) 12) /* Approx distance between interrupts in us */ | 311 | #define SNDRV_PCM_HW_PARAM_PERIOD_TIME 12 /* Approx distance between |
312 | #define SNDRV_PCM_HW_PARAM_PERIOD_SIZE ((__force snd_pcm_hw_param_t) 13) /* Approx frames between interrupts */ | 312 | * interrupts in us |
313 | #define SNDRV_PCM_HW_PARAM_PERIOD_BYTES ((__force snd_pcm_hw_param_t) 14) /* Approx bytes between interrupts */ | 313 | */ |
314 | #define SNDRV_PCM_HW_PARAM_PERIODS ((__force snd_pcm_hw_param_t) 15) /* Approx interrupts per buffer */ | 314 | #define SNDRV_PCM_HW_PARAM_PERIOD_SIZE 13 /* Approx frames between |
315 | #define SNDRV_PCM_HW_PARAM_BUFFER_TIME ((__force snd_pcm_hw_param_t) 16) /* Approx duration of buffer in us */ | 315 | * interrupts |
316 | #define SNDRV_PCM_HW_PARAM_BUFFER_SIZE ((__force snd_pcm_hw_param_t) 17) /* Size of buffer in frames */ | 316 | */ |
317 | #define SNDRV_PCM_HW_PARAM_BUFFER_BYTES ((__force snd_pcm_hw_param_t) 18) /* Size of buffer in bytes */ | 317 | #define SNDRV_PCM_HW_PARAM_PERIOD_BYTES 14 /* Approx bytes between |
318 | #define SNDRV_PCM_HW_PARAM_TICK_TIME ((__force snd_pcm_hw_param_t) 19) /* Approx tick duration in us */ | 318 | * interrupts |
319 | */ | ||
320 | #define SNDRV_PCM_HW_PARAM_PERIODS 15 /* Approx interrupts per | ||
321 | * buffer | ||
322 | */ | ||
323 | #define SNDRV_PCM_HW_PARAM_BUFFER_TIME 16 /* Approx duration of buffer | ||
324 | * in us | ||
325 | */ | ||
326 | #define SNDRV_PCM_HW_PARAM_BUFFER_SIZE 17 /* Size of buffer in frames */ | ||
327 | #define SNDRV_PCM_HW_PARAM_BUFFER_BYTES 18 /* Size of buffer in bytes */ | ||
328 | #define SNDRV_PCM_HW_PARAM_TICK_TIME 19 /* Approx tick duration in us */ | ||
319 | #define SNDRV_PCM_HW_PARAM_FIRST_INTERVAL SNDRV_PCM_HW_PARAM_SAMPLE_BITS | 329 | #define SNDRV_PCM_HW_PARAM_FIRST_INTERVAL SNDRV_PCM_HW_PARAM_SAMPLE_BITS |
320 | #define SNDRV_PCM_HW_PARAM_LAST_INTERVAL SNDRV_PCM_HW_PARAM_TICK_TIME | 330 | #define SNDRV_PCM_HW_PARAM_LAST_INTERVAL SNDRV_PCM_HW_PARAM_TICK_TIME |
321 | 331 | ||
322 | #define SNDRV_PCM_HW_PARAMS_NORESAMPLE (1<<0) /* avoid rate resampling */ | 332 | #define SNDRV_PCM_HW_PARAMS_NORESAMPLE (1<<0) /* avoid rate resampling */ |
323 | 333 | ||
324 | struct snd_interval { | 334 | struct snd_interval { |
325 | unsigned int min, max; | 335 | unsigned int min, max; |