Changeset 587 for GPL/trunk/alsa-kernel/include
- Timestamp:
- Jun 9, 2016, 10:38:13 PM (9 years ago)
- Location:
- GPL/trunk/alsa-kernel/include/sound
- Files:
-
- 14 added
- 31 deleted
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk/alsa-kernel/include/sound/asequencer.h
r305 r587 68 68 #define SNDRV_SEQ_EVENT_TIMESIGN 23 /* SMF Time Signature event */ 69 69 #define SNDRV_SEQ_EVENT_KEYSIGN 24 /* SMF Key Signature event */ 70 70 71 71 /** timer messages 72 72 * event data type = snd_seq_ev_queue_control … … 222 222 223 223 /* external stored data */ 224 #ifndef TARGET_OS2 224 #ifndef TARGET_OS2 225 225 struct snd_seq_ev_ext { 226 226 unsigned int len; /* length of data */ … … 235 235 #pragma pack() 236 236 #endif 237 237 238 struct snd_seq_result { 238 239 int event; /* processed event type */ … … 273 274 274 275 /* quoted event - inside the kernel only */ 275 #ifndef TARGET_OS2 276 #ifndef TARGET_OS2 276 277 struct snd_seq_ev_quote { 277 278 struct snd_seq_addr origin; /* original sender */ … … 422 423 #define USER_CLIENT ((__force snd_seq_client_type_t) 1) 423 424 #define KERNEL_CLIENT ((__force snd_seq_client_type_t) 2) 424 425 425 426 /* event filter flags */ 426 427 #define SNDRV_SEQ_FILTER_BROADCAST (1<<0) /* accept broadcast messages */ -
GPL/trunk/alsa-kernel/include/sound/asound.h
r542 r587 42 42 #endif /* __KERNEL__ **/ 43 43 44 #ifdef TARGET_OS2 44 45 #ifndef __force 45 46 #define __force … … 50 51 #endif 51 52 52 #ifdef TARGET_OS253 53 #define SNDRV_PCM_VOL_FRONT_LEFT 0 54 54 #define SNDRV_PCM_VOL_FRONT_RIGHT 1 … … 323 323 typedef int snd_pcm_hw_param_t; 324 324 #define SNDRV_PCM_HW_PARAM_ACCESS 0 /* Access type */ 325 #ifdef TARGET_OS2 325 #ifndef TARGET_OS2 326 #define SNDRV_PCM_HW_PARAM_FORMAT 1 /* Format */ 327 #define SNDRV_PCM_HW_PARAM_SUBFORMAT 2 /* Subformat */ 328 #else 326 329 #define SNDRV_PCM_HW_PARAM_RATE_MASK 1 /* Format */ 327 #endif328 330 #define SNDRV_PCM_HW_PARAM_FORMAT 2 /* Format */ 329 331 #define SNDRV_PCM_HW_PARAM_SUBFORMAT 3 /* Subformat */ 332 #endif 330 333 #define SNDRV_PCM_HW_PARAM_FIRST_MASK SNDRV_PCM_HW_PARAM_ACCESS 331 334 #define SNDRV_PCM_HW_PARAM_LAST_MASK SNDRV_PCM_HW_PARAM_SUBFORMAT … … 356 359 #define SNDRV_PCM_HW_PARAM_LAST_INTERVAL SNDRV_PCM_HW_PARAM_TICK_TIME 357 360 358 #define SNDRV_PCM_HW_PARAMS_NORESAMPLE 361 #define SNDRV_PCM_HW_PARAMS_NORESAMPLE (1<<0) /* avoid rate resampling */ 359 362 360 363 struct snd_interval { … … 789 792 unsigned int device; /* device/client number */ 790 793 unsigned int subdevice; /* subdevice (substream) number */ 791 unsigned char name[44]; /* ASCII name of item */794 unsigned char name[44]; /* ASCII name of item */ 792 795 unsigned int index; /* index of item */ 793 796 }; … … 836 839 struct snd_ctl_elem_id id; /* W: element ID */ 837 840 unsigned int indirect: 1; /* W: indirect access - obsoleted */ 838 union {841 union { 839 842 union { 840 843 long value[128]; … … 854 857 } bytes; 855 858 struct snd_aes_iec958 iec958; 856 } value; /* RO */859 } value; /* RO */ 857 860 struct timespec tstamp; 858 unsigned char reserved[128-sizeof(struct timespec)];861 unsigned char reserved[128-sizeof(struct timespec)]; 859 862 }; 860 863 -
GPL/trunk/alsa-kernel/include/sound/core.h
r464 r587 23 23 */ 24 24 #ifdef TARGET_OS2 25 #include < sound\config.h>25 #include <config.h> 26 26 #endif 27 27 … … 101 101 struct snd_monitor_file { 102 102 struct file *file; 103 #ifndef TARGET_OS2 103 #ifndef TARGET_OS2 104 104 const struct file_operations *disconnected_f_op; 105 105 #else 106 106 struct file_operations *disconnected_f_op; 107 #endif 107 #endif 108 108 struct list_head shutdown_list; /* still need to shutdown */ 109 109 struct list_head list; /* link of monitor files */ … … 205 205 int card; /* card number */ 206 206 int device; /* device number */ 207 #ifndef TARGET_OS2 207 #ifndef TARGET_OS2 208 208 const struct file_operations *f_ops; /* file operations */ 209 209 #else 210 210 struct file_operations *f_ops; /* file operations */ 211 #endif 211 #endif 212 212 void *private_data; /* private data for f_ops->open */ 213 213 struct device *dev; /* device for sysfs */ … … 234 234 int snd_register_device_for_dev(int type, struct snd_card *card, 235 235 int dev, 236 #ifndef TARGET_OS2 236 #ifndef TARGET_OS2 237 237 const struct file_operations *f_ops, 238 238 #else 239 239 struct file_operations *f_ops, 240 #endif 240 #endif 241 241 void *private_data, 242 242 const char *name, … … 263 263 #ifndef TARGET_OS2 264 264 const struct file_operations *f_ops, 265 #else 265 #else 266 266 struct file_operations *f_ops, 267 #endif 267 #endif 268 268 void *private_data, 269 269 const char *name) … … 285 285 #else 286 286 struct file_operations *f_ops, void *private_data, 287 #endif 287 #endif 288 288 const char *name); 289 289 int snd_unregister_oss_device(int type, struct snd_card *card, int dev); … … 376 376 #else 377 377 #define __snd_printk printk 378 #endif /* nothing */378 #endif 379 379 #endif 380 380 … … 418 418 * When CONFIG_SND_DEBUG is set, this macro evaluates the given condition, 419 419 * and call WARN() and returns the value if it's non-zero. 420 * 420 * 421 421 * When CONFIG_SND_DEBUG is not set, this just returns zero, and the given 422 422 * condition is ignored. … … 427 427 * If you want to evaluate and give a warning, use standard WARN_ON(). 428 428 */ 429 430 429 #define snd_BUG_ON(cond) WARN((cond), "BUG? (%s)\n", __stringify(cond)) 431 430 … … 449 448 #define snd_BUG_ON(cond) __snd_bug_on(0 && (cond)) /* always false */ 450 449 #endif 451 452 450 453 451 #endif /* CONFIG_SND_DEBUG */ -
GPL/trunk/alsa-kernel/include/sound/info.h
r410 r587 111 111 #endif 112 112 113 #ifndef TARGET_OS2114 113 int snd_iprintf(struct snd_info_buffer *buffer, char *fmt, ...) \ 115 114 __attribute__ ((format (printf, 2, 3))); 116 #else117 int snd_iprintf(struct snd_info_buffer * buffer, char *fmt,...);118 #endif119 115 int snd_info_init(void); 120 116 int snd_info_done(void); -
GPL/trunk/alsa-kernel/include/sound/initval.h
r398 r587 22 22 */ 23 23 24 #ifdef TARGET_OS2 24 25 #ifndef MODULE_GENERIC_STRING 25 26 #ifdef MODULE … … 32 33 #endif 33 34 34 #ifdef TARGET_OS2 35 #define MODULE_CLASSES(val) 36 #define MODULE_DEVICES(val) 37 #define MODULE_PARM_SYNTAX(id, val) 35 #define MODULE_CLASSES(val) 36 #define MODULE_DEVICES(val) 37 #define MODULE_PARM_SYNTAX(id, val) 38 38 #define module_param_array(name, type, nump, perm) 39 39 #define module_param(name, type, perm) … … 52 52 #define module_param(name, type, perm) \ 53 53 MODULE_PARM(name, SNDRV_MODULE_TYPE_##type) 54 55 54 #endif 56 55 56 #ifndef TARGET_OS2 57 #define SNDRV_AUTO_PORT 1 58 #else 57 59 #define SNDRV_AUTO_PORT 0xffff 60 #endif 58 61 #define SNDRV_AUTO_IRQ 0xffff 59 62 #define SNDRV_AUTO_DMA 0xffff … … 75 78 #define SNDRV_DEFAULT_ENABLE { 1,1,1,1,1,1,1,1 } 76 79 #define SNDRV_DEFAULT_ENABLE_PNP SNDRV_DEFAULT_ENABLE 80 #ifdef CONFIG_PNP 81 #define SNDRV_DEFAULT_ENABLE_ISAPNP SNDRV_DEFAULT_ENABLE_PNP 82 #else 83 #define SNDRV_DEFAULT_ENABLE_ISAPNP SNDRV_DEFAULT_ENABLE 84 #endif 77 85 #define SNDRV_DEFAULT_PORT { REPEAT_SNDRV(-1) } 78 86 #define SNDRV_DEFAULT_IRQ { REPEAT_SNDRV(SNDRV_AUTO_IRQ) } … … 83 91 #define SNDDRV_DEFAULT_PCM_SUBSTREAMS {REPEAT_SNDRV(8)}; 84 92 #define SNDDRV_DEFAULT_MIDI_DEVS {REPEAT_SNDRV(4)}; 85 #else86 #define SNDRV_DEFAULT_IDX { [0 ... (SNDRV_CARDS-1)] = -1 }87 #define SNDRV_DEFAULT_STR { [0 ... (SNDRV_CARDS-1)] = NULL }88 #define SNDRV_DEFAULT_ENABLE { 1, [1 ... (SNDRV_CARDS-1)] = 0 }89 #define SNDRV_DEFAULT_ENABLE_PNP { [0 ... (SNDRV_CARDS-1)] = 1 }90 #define SNDRV_DEFAULT_PORT { SNDRV_AUTO_PORT, [1 ... (SNDRV_CARDS-1)] = -1 }91 #define SNDRV_DEFAULT_IRQ { [0 ... (SNDRV_CARDS-1)] = SNDRV_AUTO_IRQ }92 #define SNDRV_DEFAULT_DMA { [0 ... (SNDRV_CARDS-1)] = SNDRV_AUTO_DMA }93 #define SNDRV_DEFAULT_DMA_SIZE { [0 ... (SNDRV_CARDS-1)] = SNDRV_AUTO_DMA_SIZE }94 #define SNDRV_DEFAULT_PTR SNDRV_DEFAULT_STR95 #endif96 97 #ifdef CONFIG_PNP98 #define SNDRV_DEFAULT_ENABLE_ISAPNP SNDRV_DEFAULT_ENABLE_PNP99 #else100 #define SNDRV_DEFAULT_ENABLE_ISAPNP SNDRV_DEFAULT_ENABLE101 #endif102 93 103 94 #define SNDRV_BOOLEAN_TRUE_DESC "allows:{{0,Disabled},{1,Enabled}},default:1,dialog:check" … … 119 110 #define SNDRV_PORT12_DESC SNDRV_ENABLED ",allows:{{0,0x3fff}},base:16" 120 111 #define SNDRV_PORT_DESC SNDRV_ENABLED ",allows:{{0,0xffff}},base:16" 112 #else 113 #define SNDRV_DEFAULT_IDX { [0 ... (SNDRV_CARDS-1)] = -1 } 114 #define SNDRV_DEFAULT_STR { [0 ... (SNDRV_CARDS-1)] = NULL } 115 #define SNDRV_DEFAULT_ENABLE { 1, [1 ... (SNDRV_CARDS-1)] = 0 } 116 #define SNDRV_DEFAULT_ENABLE_PNP { [0 ... (SNDRV_CARDS-1)] = 1 } 117 #ifdef CONFIG_PNP 118 #define SNDRV_DEFAULT_ENABLE_ISAPNP SNDRV_DEFAULT_ENABLE_PNP 119 #else 120 #define SNDRV_DEFAULT_ENABLE_ISAPNP SNDRV_DEFAULT_ENABLE 121 #endif 122 #define SNDRV_DEFAULT_PORT { [0 ... (SNDRV_CARDS-1)] = SNDRV_AUTO_PORT } 123 #define SNDRV_DEFAULT_IRQ { [0 ... (SNDRV_CARDS-1)] = SNDRV_AUTO_IRQ } 124 #define SNDRV_DEFAULT_DMA { [0 ... (SNDRV_CARDS-1)] = SNDRV_AUTO_DMA } 125 #define SNDRV_DEFAULT_DMA_SIZE { [0 ... (SNDRV_CARDS-1)] = SNDRV_AUTO_DMA_SIZE } 126 #define SNDRV_DEFAULT_PTR SNDRV_DEFAULT_STR 127 #endif 121 128 122 129 #ifdef SNDRV_LEGACY_FIND_FREE_IRQ … … 157 164 #endif 158 165 166 #ifdef TARGET_OS2 159 167 #if defined(SNDRV_GET_ID) && !defined(MODULE) 160 168 #include <linux/ctype.h> … … 182 190 } 183 191 #endif 192 #endif 184 193 185 #endif /* __INITVAL_H */ 194 #endif /* __SOUND_INITVAL_H */ 195 -
GPL/trunk/alsa-kernel/include/sound/opl3.h
r399 r587 18 18 * 19 19 * With the above exceptions the both sides can be operated independently. 20 * 20 * 21 21 * A 4 OP voice can be created by setting the corresponding 22 22 * bit at offset 4 of the right side. … … 27 27 * 28 28 * If a voice is set to the 2 OP mode, it works like 2 OP modes 29 * of the original YM3812 (AdLib). In addition the voice can 29 * of the original YM3812 (AdLib). In addition the voice can 30 30 * be connected the left, right or both stereo channels. It can 31 31 * even be left unconnected. This works with 4 OP voices also. … … 189 189 * 190 190 * 191 * 191 * 192 192 * +---+ 193 193 * | | … … 195 195 * |-> 196 196 * >--3----4-+ 197 * 197 * 198 198 * +---+ 199 199 * | | … … 251 251 unsigned char sustain_release; 252 252 unsigned char wave_select; 253 #ifndef TARGET_OS2254 253 } __attribute__((packed)); 255 #else 256 }; 254 #ifdef TARGET_OS2 257 255 #pragma pack() 258 256 #endif … … 343 341 struct snd_midi_channel_set * oss_chset; 344 342 #endif 345 343 346 344 #define OPL3_PATCH_HASH_SIZE 32 347 345 struct fm_patch *patch_table[OPL3_PATCH_HASH_SIZE]; -
GPL/trunk/alsa-kernel/include/sound/pcm.h
r464 r587 74 74 snd_pcm_uframes_t pos, 75 75 void __user *buf, snd_pcm_uframes_t count); 76 int (*silence)(struct snd_pcm_substream *substream, int channel, 76 int (*silence)(struct snd_pcm_substream *substream, int channel, 77 77 snd_pcm_uframes_t pos, snd_pcm_uframes_t count); 78 78 struct page *(*page)(struct snd_pcm_substream *substream, … … 216 216 217 217 struct snd_pcm_hw_constraints { 218 struct snd_mask masks[SNDRV_PCM_HW_PARAM_LAST_MASK - 218 struct snd_mask masks[SNDRV_PCM_HW_PARAM_LAST_MASK - 219 219 SNDRV_PCM_HW_PARAM_FIRST_MASK + 1]; 220 220 struct snd_interval intervals[SNDRV_PCM_HW_PARAM_LAST_INTERVAL - … … 330 330 int tstamp_type; /* timestamp type */ 331 331 332 /* -- DMA -- */ 332 /* -- DMA -- */ 333 333 unsigned char *dma_area; /* DMA area */ 334 334 dma_addr_t dma_addr; /* physical bus address (not accessible from main CPU) */ … … 538 538 } while (0) 539 539 540 #ifdef TARGET_OS2 540 541 #define snd_pcm_group_for_each_entry(s, substream) \ 541 542 list_for_each_entry(s, &substream->group->substreams, link_list, struct snd_pcm_substream) 543 #else 544 #define snd_pcm_group_for_each_entry(s, substream) \ 545 list_for_each_entry(s, &substream->group->substreams, link_list) 546 #endif 542 547 543 548 static inline int snd_pcm_running(struct snd_pcm_substream *substream) … … 592 597 snd_pcm_sframes_t avail = runtime->status->hw_ptr + runtime->buffer_size - runtime->control->appl_ptr; 593 598 #if defined TARGET_OS2 594 if ( runtime->buffer_size > runtime->control->appl_ptr) 595 avail = runtime->status->hw_ptr + runtime->buffer_size - runtime->control->appl_ptr; 596 else 597 { 598 599 avail = runtime->control->appl_ptr - runtime->status->hw_ptr; 600 if ( avail > runtime->buffer_size ) 601 avail = 0; 602 else 603 avail = runtime->buffer_size - avail; 604 } 605 #endif /* TARGET_OS2 */ 599 if ( runtime->buffer_size > runtime->control->appl_ptr) 600 avail = runtime->status->hw_ptr + runtime->buffer_size - runtime->control->appl_ptr; 601 else 602 { 603 604 avail = runtime->control->appl_ptr - runtime->status->hw_ptr; 605 if ( avail > runtime->buffer_size ) 606 avail = 0; 607 else 608 avail = runtime->buffer_size - avail; 609 } 610 #endif /* TARGET_OS2 */ 606 611 if (avail < 0) 607 612 avail += runtime->boundary; … … 706 711 } 707 712 708 static inline void snd_pcm_trigger_done(struct snd_pcm_substream *substream, 713 static inline void snd_pcm_trigger_done(struct snd_pcm_substream *substream, 709 714 struct snd_pcm_substream *master) 710 715 { … … 763 768 void snd_interval_mul(const struct snd_interval *a, const struct snd_interval *b, struct snd_interval *c); 764 769 void snd_interval_div(const struct snd_interval *a, const struct snd_interval *b, struct snd_interval *c); 765 void snd_interval_muldivk(const struct snd_interval *a, const struct snd_interval *b, 770 void snd_interval_muldivk(const struct snd_interval *a, const struct snd_interval *b, 766 771 unsigned int k, struct snd_interval *c); 767 772 void snd_interval_mulkdiv(const struct snd_interval *a, unsigned int k, … … 788 793 unsigned int min, unsigned int max); 789 794 int snd_pcm_hw_constraint_integer(struct snd_pcm_runtime *runtime, snd_pcm_hw_param_t var); 790 int snd_pcm_hw_constraint_list(struct snd_pcm_runtime *runtime, 795 int snd_pcm_hw_constraint_list(struct snd_pcm_runtime *runtime, 791 796 unsigned int cond, 792 797 snd_pcm_hw_param_t var, 793 798 struct snd_pcm_hw_constraint_list *l); 794 int snd_pcm_hw_constraint_ratnums(struct snd_pcm_runtime *runtime, 799 int snd_pcm_hw_constraint_ratnums(struct snd_pcm_runtime *runtime, 795 800 unsigned int cond, 796 801 snd_pcm_hw_param_t var, 797 802 struct snd_pcm_hw_constraint_ratnums *r); 798 int snd_pcm_hw_constraint_ratdens(struct snd_pcm_runtime *runtime, 803 int snd_pcm_hw_constraint_ratdens(struct snd_pcm_runtime *runtime, 799 804 unsigned int cond, 800 805 snd_pcm_hw_param_t var, 801 806 struct snd_pcm_hw_constraint_ratdens *r); 802 int snd_pcm_hw_constraint_msbits(struct snd_pcm_runtime *runtime, 807 int snd_pcm_hw_constraint_msbits(struct snd_pcm_runtime *runtime, 803 808 unsigned int cond, 804 809 unsigned int width, … … 848 853 int snd_pcm_lib_interleave_len(struct snd_pcm_substream *substream); 849 854 int snd_pcm_lib_ioctl(struct snd_pcm_substream *substream, 850 unsigned int cmd, void *arg); 855 unsigned int cmd, void *arg); 851 856 int snd_pcm_update_hw_ptr(struct snd_pcm_substream *substream); 852 857 int snd_pcm_playback_xrun_check(struct snd_pcm_substream *substream); -
GPL/trunk/alsa-kernel/include/sound/seq_kernel.h
r358 r587 76 76 77 77 /* interface for kernel client */ 78 #ifndef TARGET_OS279 78 int snd_seq_create_kernel_client(struct snd_card *card, int client_index, 80 79 const char *name_fmt, ...) 81 80 __attribute__ ((format (printf, 3, 4))); 82 #else83 int snd_seq_create_kernel_client(struct snd_card *card, int client_index,84 const char *name_fmt, ...);85 #endif86 81 int snd_seq_delete_kernel_client(int client); 87 82 int snd_seq_kernel_client_enqueue(int client, struct snd_seq_event *ev, int atomic, int hop);
Note:
See TracChangeset
for help on using the changeset viewer.