Changeset 637
- Timestamp:
- Jan 7, 2021, 8:54:42 PM (5 years ago)
- Location:
- GPL/branches/uniaud32-next
- Files:
-
- 22 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/uniaud32-next/alsa-kernel/core/control.c
r629 r637 22 22 #define MAX_USER_CONTROLS 32 23 23 #define MAX_CONTROL_COUNT 1028 24 25 #pragma disable_message (201) 24 26 25 27 struct snd_kctl_ioctl { … … 1383 1385 size_t buf_len, name_len; 1384 1386 unsigned int i; 1385 // const 1387 // const 1386 1388 uintptr_t user_ptrval = ue->info.value.enumerated.names_ptr; 1387 1389 -
GPL/branches/uniaud32-next/alsa-kernel/core/info.c
r629 r637 72 72 #endif 73 73 74 #ifdef NOT_USED 74 75 static int alloc_info_private(struct snd_info_entry *entry, 75 76 struct snd_info_private_data **ret) … … 103 104 * file ops for binary proc files 104 105 */ 105 #ifdef NOT_USED106 106 static loff_t snd_info_entry_llseek(struct file *file, loff_t offset, int orig) 107 107 { … … 295 295 .proc_release = snd_info_entry_release, 296 296 }; 297 #endif // NOT_USED298 297 299 298 /* … … 431 430 .proc_read = seq_read, 432 431 }; 432 #endif /* NOT_USED */ 433 433 434 434 static struct snd_info_entry *create_subdir(struct module *mod, -
GPL/branches/uniaud32-next/alsa-kernel/core/pcm_native.c
r629 r637 7 7 #ifdef TARGET_OS2 8 8 #include <sound/core.h> 9 #pragma disable_message (201) 9 10 #endif 10 11 #include <linux/compat.h> … … 35 36 #include "pcm_param_trace.h" 36 37 #else 37 #define trace_hw_mask_param_enabled() 38 #define trace_hw_mask_param_enabled() 0 38 39 #define trace_hw_interval_param_enabled() 0 39 40 #define trace_hw_mask_param(substream, type, index, prev, curr) … … 1388 1389 snd_pcm_trigger_tstamp(substream); 1389 1390 runtime->hw_ptr_jiffies = jiffies; 1390 runtime->hw_ptr_buffer_jiffies = (runtime->buffer_size * HZ) / 1391 runtime->hw_ptr_buffer_jiffies = (runtime->buffer_size * HZ) / 1391 1392 runtime->rate; 1392 1393 runtime->status->state = state; … … 2450 2451 if (err < 0) 2451 2452 return err; 2452 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_SAMPLE_BITS, 2453 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_SAMPLE_BITS, 2453 2454 snd_pcm_hw_rule_sample_bits, NULL, 2454 2455 SNDRV_PCM_HW_PARAM_FORMAT, … … 2456 2457 if (err < 0) 2457 2458 return err; 2458 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_SAMPLE_BITS, 2459 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_SAMPLE_BITS, 2459 2460 snd_pcm_hw_rule_div, NULL, 2460 2461 SNDRV_PCM_HW_PARAM_FRAME_BITS, SNDRV_PCM_HW_PARAM_CHANNELS, -1); 2461 2462 if (err < 0) 2462 2463 return err; 2463 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_FRAME_BITS, 2464 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_FRAME_BITS, 2464 2465 snd_pcm_hw_rule_mul, NULL, 2465 2466 SNDRV_PCM_HW_PARAM_SAMPLE_BITS, SNDRV_PCM_HW_PARAM_CHANNELS, -1); 2466 2467 if (err < 0) 2467 2468 return err; 2468 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_FRAME_BITS, 2469 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_FRAME_BITS, 2469 2470 snd_pcm_hw_rule_mulkdiv, (void*) 8, 2470 2471 SNDRV_PCM_HW_PARAM_PERIOD_BYTES, SNDRV_PCM_HW_PARAM_PERIOD_SIZE, -1); 2471 2472 if (err < 0) 2472 2473 return err; 2473 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_FRAME_BITS, 2474 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_FRAME_BITS, 2474 2475 snd_pcm_hw_rule_mulkdiv, (void*) 8, 2475 2476 SNDRV_PCM_HW_PARAM_BUFFER_BYTES, SNDRV_PCM_HW_PARAM_BUFFER_SIZE, -1); 2476 2477 if (err < 0) 2477 2478 return err; 2478 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, 2479 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_CHANNELS, 2479 2480 snd_pcm_hw_rule_div, NULL, 2480 2481 SNDRV_PCM_HW_PARAM_FRAME_BITS, SNDRV_PCM_HW_PARAM_SAMPLE_BITS, -1); 2481 2482 if (err < 0) 2482 2483 return err; 2483 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, 2484 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, 2484 2485 snd_pcm_hw_rule_mulkdiv, (void*) 1000000, 2485 2486 SNDRV_PCM_HW_PARAM_PERIOD_SIZE, SNDRV_PCM_HW_PARAM_PERIOD_TIME, -1); 2486 2487 if (err < 0) 2487 2488 return err; 2488 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, 2489 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_RATE, 2489 2490 snd_pcm_hw_rule_mulkdiv, (void*) 1000000, 2490 2491 SNDRV_PCM_HW_PARAM_BUFFER_SIZE, SNDRV_PCM_HW_PARAM_BUFFER_TIME, -1); 2491 2492 if (err < 0) 2492 2493 return err; 2493 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_PERIODS, 2494 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_PERIODS, 2494 2495 snd_pcm_hw_rule_div, NULL, 2495 2496 SNDRV_PCM_HW_PARAM_BUFFER_SIZE, SNDRV_PCM_HW_PARAM_PERIOD_SIZE, -1); 2496 2497 if (err < 0) 2497 2498 return err; 2498 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_SIZE, 2499 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_SIZE, 2499 2500 snd_pcm_hw_rule_div, NULL, 2500 2501 SNDRV_PCM_HW_PARAM_BUFFER_SIZE, SNDRV_PCM_HW_PARAM_PERIODS, -1); 2501 2502 if (err < 0) 2502 2503 return err; 2503 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_SIZE, 2504 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_SIZE, 2504 2505 snd_pcm_hw_rule_mulkdiv, (void*) 8, 2505 2506 SNDRV_PCM_HW_PARAM_PERIOD_BYTES, SNDRV_PCM_HW_PARAM_FRAME_BITS, -1); 2506 2507 if (err < 0) 2507 2508 return err; 2508 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_SIZE, 2509 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_SIZE, 2509 2510 snd_pcm_hw_rule_muldivk, (void*) 1000000, 2510 2511 SNDRV_PCM_HW_PARAM_PERIOD_TIME, SNDRV_PCM_HW_PARAM_RATE, -1); 2511 2512 if (err < 0) 2512 2513 return err; 2513 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_SIZE, 2514 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_SIZE, 2514 2515 snd_pcm_hw_rule_mul, NULL, 2515 2516 SNDRV_PCM_HW_PARAM_PERIOD_SIZE, SNDRV_PCM_HW_PARAM_PERIODS, -1); 2516 2517 if (err < 0) 2517 2518 return err; 2518 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_SIZE, 2519 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_SIZE, 2519 2520 snd_pcm_hw_rule_mulkdiv, (void*) 8, 2520 2521 SNDRV_PCM_HW_PARAM_BUFFER_BYTES, SNDRV_PCM_HW_PARAM_FRAME_BITS, -1); 2521 2522 if (err < 0) 2522 2523 return err; 2523 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_SIZE, 2524 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_SIZE, 2524 2525 snd_pcm_hw_rule_muldivk, (void*) 1000000, 2525 2526 SNDRV_PCM_HW_PARAM_BUFFER_TIME, SNDRV_PCM_HW_PARAM_RATE, -1); 2526 2527 if (err < 0) 2527 2528 return err; 2528 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, 2529 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_BYTES, 2529 2530 snd_pcm_hw_rule_muldivk, (void*) 8, 2530 2531 SNDRV_PCM_HW_PARAM_PERIOD_SIZE, SNDRV_PCM_HW_PARAM_FRAME_BITS, -1); 2531 2532 if (err < 0) 2532 2533 return err; 2533 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_BYTES, 2534 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_BYTES, 2534 2535 snd_pcm_hw_rule_muldivk, (void*) 8, 2535 2536 SNDRV_PCM_HW_PARAM_BUFFER_SIZE, SNDRV_PCM_HW_PARAM_FRAME_BITS, -1); 2536 2537 if (err < 0) 2537 2538 return err; 2538 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_TIME, 2539 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_PERIOD_TIME, 2539 2540 snd_pcm_hw_rule_mulkdiv, (void*) 1000000, 2540 2541 SNDRV_PCM_HW_PARAM_PERIOD_SIZE, SNDRV_PCM_HW_PARAM_RATE, -1); 2541 2542 if (err < 0) 2542 2543 return err; 2543 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_TIME, 2544 err = snd_pcm_hw_rule_add(runtime, 0, SNDRV_PCM_HW_PARAM_BUFFER_TIME, 2544 2545 snd_pcm_hw_rule_mulkdiv, (void*) 1000000, 2545 2546 SNDRV_PCM_HW_PARAM_BUFFER_SIZE, SNDRV_PCM_HW_PARAM_RATE, -1); … … 3377 3378 return snd_pcm_drop(substream); 3378 3379 case SNDRV_PCM_IOCTL_DELAY: 3379 return snd_pcm_delay(substream, frames);3380 return snd_pcm_delay(substream, (snd_pcm_sframes_t*)frames); 3380 3381 default: 3381 3382 return -EINVAL; -
GPL/branches/uniaud32-next/alsa-kernel/core/rawmidi.c
r629 r637 56 56 dev_dbg(&(rmidi)->dev, fmt, ##args) 57 57 #else 58 #define rmidi_err(rmidi, fmt ) \59 dev_err((rmidi)->card->dev, fmt )60 #define rmidi_warn(rmidi, fmt ) \61 dev_warn((rmidi)->card->dev, fmt )62 #define rmidi_dbg(rmidi, fmt ) \63 dev_dbg((rmidi)->card->dev, fmt )58 #define rmidi_err(rmidi, fmt, ...) \ 59 dev_err((rmidi)->card->dev, fmt, ##__VA_ARGS__) 60 #define rmidi_warn(rmidi, fmt, ...) \ 61 dev_warn((rmidi)->card->dev, fmt, ##__VA_ARGS__) 62 #define rmidi_dbg(rmidi, fmt, ...) \ 63 dev_dbg((rmidi)->card->dev, fmt, ##__VA_ARGS__) 64 64 #endif 65 65 -
GPL/branches/uniaud32-next/alsa-kernel/core/seq/seq_memory.c
r615 r637 355 355 return err; 356 356 } 357 357 358 358 359 359 /* poll wait */ … … 435 435 436 436 while (atomic_read(&pool->counter) > 0) 437 { 437 438 schedule_timeout_uninterruptible(1); 439 } 438 440 439 441 /* release all resources */ -
GPL/branches/uniaud32-next/alsa-kernel/core/timer.c
r629 r637 33 33 #endif 34 34 35 static int timer_limit = DEFAULT_TIMER_LIMIT;35 //NOT_USED static int timer_limit = DEFAULT_TIMER_LIMIT; 36 36 static int timer_tstamp_monotonic = 1; 37 37 MODULE_AUTHOR("Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.de>"); … … 1245 1245 #else 1246 1246 init_timer(&priv->tlist); 1247 priv->tlist.function = snd_timer_s_function;1247 priv->tlist.function = (void(*)(unsigned long))snd_timer_s_function; 1248 1248 priv->tlist.data = (unsigned long) timer; 1249 1249 #endif -
GPL/branches/uniaud32-next/alsa-kernel/drivers/mpu401/mpu401_uart.c
r615 r637 186 186 init_timer(&mpu->timer); 187 187 mpu->timer.data = (unsigned long)mpu; 188 mpu->timer.function = snd_mpu401_uart_timer;188 mpu->timer.function = (void(*)(unsigned long))snd_mpu401_uart_timer; 189 189 mpu->timer.expires = 1 + jiffies; 190 190 add_timer(&mpu->timer); 191 191 #endif 192 } 192 } 193 193 mpu->timer_invoked |= input ? MPU401_MODE_INPUT_TIMER : 194 194 MPU401_MODE_OUTPUT_TIMER; -
GPL/branches/uniaud32-next/alsa-kernel/drivers/opl3/opl3_seq.c
r629 r637 101 101 if (use_internal_drums) { 102 102 /* Percussion mode */ 103 opl3->voices[6].state = opl3->voices[7].state = 103 opl3->voices[6].state = opl3->voices[7].state = 104 104 opl3->voices[8].state = SNDRV_OPL3_ST_NOT_AVAIL; 105 105 snd_opl3_load_drums(opl3); … … 242 242 #else 243 243 init_timer(&opl3->tlist); 244 opl3->tlist.function = snd_opl3_timer_func;244 opl3->tlist.function = (void(*)(unsigned long))snd_opl3_timer_func; 245 245 opl3->tlist.data = (unsigned long) opl3; 246 246 #endif -
GPL/branches/uniaud32-next/alsa-kernel/hda/hdac_bus.c
r629 r637 14 14 #include "trace.h" 15 15 #else 16 #define trace_hda_send_cmd {}17 #define trace_hda_unsol_event {}18 #define trace_hda_bus_reset {}19 #define trace_hda_get_response {}16 #define trace_hda_send_cmd(...) 17 #define trace_hda_unsol_event(...) 18 #define trace_hda_bus_reset(...) 19 #define trace_hda_get_response(...) 20 20 #endif 21 21 … … 172 172 } 173 173 174 #ifdef NOT_USED 174 175 /* 175 176 * process queued unsolicited events … … 202 203 spin_unlock_irq(&bus->reg_lock); 203 204 } 205 #endif /* NOT_USED */ 204 206 205 207 /** -
GPL/branches/uniaud32-next/alsa-kernel/hda/hdac_controller.c
r636 r637 244 244 unsigned long timeout; 245 245 unsigned long loopcounter; 246 wait_queue_entry_t wait;246 //NOT_USED wait_queue_entry_t wait; 247 247 bool warned = false; 248 248 -
GPL/branches/uniaud32-next/alsa-kernel/hda/hdac_stream.c
r629 r637 15 15 #include "trace.h" 16 16 #else 17 #define trace_snd_hdac_stream_start 18 #define trace_snd_hdac_stream_stop 17 #define trace_snd_hdac_stream_start(...) 18 #define trace_snd_hdac_stream_stop(...) 19 19 #endif 20 20 -
GPL/branches/uniaud32-next/alsa-kernel/pci/ac97/ac97_codec.c
r629 r637 146 146 { 0x49434511, 0xffffffff, "ICE1232", NULL, NULL }, // alias VIA VT1611A? 147 147 { 0x49434514, 0xffffffff, "ICE1232A", NULL, NULL }, 148 { 0x49434551, 0xffffffff, "VT1616", patch_vt1616, NULL }, 148 { 0x49434551, 0xffffffff, "VT1616", patch_vt1616, NULL }, 149 149 { 0x49434552, 0xffffffff, "VT1616i", patch_vt1616, NULL }, // VT1616 compatible (chipset integrated) 150 150 { 0x49544520, 0xffffffff, "IT2226E", NULL, NULL }, … … 152 152 { 0x4e534300, 0xffffffff, "LM4540,43,45,46,48", NULL, NULL }, // only guess --jk 153 153 { 0x4e534331, 0xffffffff, "LM4549", NULL, NULL }, 154 { 0x4e534350, 0xffffffff, "LM4550", patch_lm4550, NULL }, // volume wrap fix 154 { 0x4e534350, 0xffffffff, "LM4550", patch_lm4550, NULL }, // volume wrap fix 155 155 { 0x50534304, 0xffffffff, "UCB1400", patch_ucb1400, NULL }, 156 156 { 0x53494c20, 0xffffffe0, "Si3036,8", mpatch_si3036, mpatch_si3036, AC97_MODEM_PATCH }, … … 209 209 dev_dbg((ac97)->bus->card->dev, fmt, ##args) 210 210 #else 211 #define ac97_err(ac97, fmt ) \212 dev_err((ac97)->bus->card->dev, fmt )213 #define ac97_warn(ac97, fmt ) \214 dev_warn((ac97)->bus->card->dev, fmt )215 #define ac97_dbg(ac97, fmt ) \216 dev_dbg((ac97)->bus->card->dev, fmt )211 #define ac97_err(ac97, fmt, ...) \ 212 dev_err((ac97)->bus->card->dev, fmt, ##__VA_ARGS__) 213 #define ac97_warn(ac97, fmt, ...) \ 214 dev_warn((ac97)->bus->card->dev, fmt, ##__VA_ARGS__) 215 #define ac97_dbg(ac97, fmt, ...) \ 216 dev_dbg((ac97)->bus->card->dev, fmt, ##__VA_ARGS__) 217 217 #endif 218 218 /* … … 294 294 /** 295 295 * snd_ac97_read - read a value from the given register 296 * 296 * 297 297 * @ac97: the ac97 instance 298 298 * @reg: the register to read … … 631 631 }; 632 632 633 static const struct snd_kcontrol_new snd_ac97_control_capture_src = 634 AC97_ENUM("Capture Source", std_enum[0]); 633 static const struct snd_kcontrol_new snd_ac97_control_capture_src = 634 AC97_ENUM("Capture Source", std_enum[0]); 635 635 636 636 static const struct snd_kcontrol_new snd_ac97_control_capture_vol = … … 699 699 return 0; 700 700 } 701 701 702 702 static int snd_ac97_spdif_cmask_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) 703 703 { … … 711 711 return 0; 712 712 } 713 713 714 714 static int snd_ac97_spdif_pmask_get(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) 715 715 { … … 734 734 return 0; 735 735 } 736 736 737 737 static int snd_ac97_spdif_default_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol) 738 738 { … … 786 786 v = new & (IEC958_AES0_CON_EMPHASIS_5015|IEC958_AES0_CON_NOT_COPYRIGHT) ? 0 : AC97_CXR_COPYRGT; 787 787 v |= new & IEC958_AES0_NONAUDIO ? AC97_CXR_SPDIF_AC3 : AC97_CXR_SPDIF_PCM; 788 change |= snd_ac97_update_bits_nolock(ac97, AC97_CXR_AUDIO_MISC, 788 change |= snd_ac97_update_bits_nolock(ac97, AC97_CXR_AUDIO_MISC, 789 789 AC97_CXR_SPDIF_MASK | AC97_CXR_COPYRGT, 790 790 v); … … 1378 1378 1379 1379 /* build center controls */ 1380 if ((snd_ac97_try_volume_mix(ac97, AC97_CENTER_LFE_MASTER)) 1380 if ((snd_ac97_try_volume_mix(ac97, AC97_CENTER_LFE_MASTER)) 1381 1381 && !(ac97->flags & AC97_AD_MULTI)) { 1382 1382 if ((err = snd_ctl_add(card, snd_ac97_cnew(&snd_ac97_controls_center[0], ac97))) < 0) … … 1406 1406 1407 1407 /* build surround controls */ 1408 if ((snd_ac97_try_volume_mix(ac97, AC97_SURROUND_MASTER)) 1408 if ((snd_ac97_try_volume_mix(ac97, AC97_SURROUND_MASTER)) 1409 1409 && !(ac97->flags & AC97_AD_MULTI)) { 1410 1410 /* Surround Master (0x38) is with stereo mutes */ … … 1446 1446 1447 1447 /* build Beep controls */ 1448 if (!(ac97->flags & AC97_HAS_NO_PC_BEEP) && 1448 if (!(ac97->flags & AC97_HAS_NO_PC_BEEP) && 1449 1449 ((ac97->flags & AC97_HAS_PC_BEEP) || 1450 1450 snd_ac97_try_volume_mix(ac97, AC97_PC_BEEP))) { … … 1844 1844 (! modem && ! (pid->flags & AC97_MODEM_PATCH))) 1845 1845 pid->patch(ac97); 1846 } 1846 } 1847 1847 1848 1848 pid = look_for_codec_id(snd_ac97_codec_ids, id); … … 1932 1932 * The ops table must include valid callbacks (at least read and 1933 1933 * write). The other callbacks, wait and reset, are not mandatory. 1934 * 1934 * 1935 1935 * The clock is set to 48000. If another clock is needed, set 1936 1936 * ``(*rbus)->clock`` manually. … … 2037 2037 * The template must include the codec number (num) and address (addr), 2038 2038 * and the private data (private_data). 2039 * 2039 * 2040 2040 * The ac97 instance is registered as a low-level device, so you don't 2041 2041 * have to release it manually. … … 2777 2777 } 2778 2778 2779 static const struct snd_kcontrol_new snd_ac97_alc_jack_detect = 2779 static const struct snd_kcontrol_new snd_ac97_alc_jack_detect = 2780 2780 AC97_SINGLE("Jack Detect", AC97_ALC650_CLOCK, 5, 1, 0); 2781 2781 -
GPL/branches/uniaud32-next/alsa-kernel/pci/hda/hda_generic.c
r629 r637 1887 1887 #else 1888 1888 #ifdef DEBUG_BADNESS 1889 #define debug_badness(fmt ) codec_dbg(codec, fmt)1889 #define debug_badness(fmt, ...) codec_dbg(codec, fmt, ##__VA_ARGS__) 1890 1890 #else 1891 1891 #define debug_badness(...) -
GPL/branches/uniaud32-next/include/dbgos2.h
r615 r637 67 67 #endif 68 68 69 void DevInt3(void); 70 #pragma aux DevInt3 = "int 3"; 71 69 72 #endif //__COMMDBG_H__ 70 73 -
GPL/branches/uniaud32-next/include/linux/bitops.h
r615 r637 41 41 * Undefined if no bit exists, so code should check against 0 first. 42 42 */ 43 static unsigned long __ffs(unsigned long word)43 static inline unsigned long __ffs(unsigned long word) 44 44 { 45 45 int num = 0; … … 78 78 * Undefined if no set bit exists, so code should check against 0 first. 79 79 */ 80 static unsigned long __fls(unsigned long word)80 static inline unsigned long __fls(unsigned long word) 81 81 { 82 82 int num = BITS_PER_LONG - 1; -
GPL/branches/uniaud32-next/include/linux/kernel.h
r615 r637 97 97 int strict_strtoul(const char *, unsigned int, unsigned long *); 98 98 99 #define BUG_ON(condition) 100 #define WARN_ON(condition) 0101 #define WARN_ON_ONCE(condition) 099 #define BUG_ON(condition) 100 #define WARN_ON(condition) (void)0 101 #define WARN_ON_ONCE(condition) (void)0 102 102 #define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d)) 103 103 #define SIZE_MAX (~(size_t)0) -
GPL/branches/uniaud32-next/include/linux/platform_device.h
r305 r637 94 94 drv->driver.remove = snd_platform_driver_remove; 95 95 if (drv->suspend) 96 drv->driver.suspend = snd_platform_driver_suspend;96 drv->driver.suspend = (int(*)(struct device *,unsigned int))snd_platform_driver_suspend; 97 97 if (drv->resume) 98 98 drv->driver.resume = snd_platform_driver_resume; -
GPL/branches/uniaud32-next/include/linux/printk.h
r615 r637 8 8 #define pr_warn pr_warning 9 9 #else 10 #define pr_debug 11 #define pr_err 10 #define pr_debug(...) 11 #define pr_err(...) 12 12 #define pr_info printk 13 13 #define pr_warning printk -
GPL/branches/uniaud32-next/lib32/pci.c
r635 r637 506 506 int iTableIx; 507 507 508 rprintf(( "pci_register_driver: query_device found %x %x:%x class=%x checking %s",508 rprintf((__func__": query_device found %x %x:%x class=%x checking %s", 509 509 ulLast, pcidev->vendor, pcidev->device, pcidev->class, driver->name)); 510 510 … … 525 525 usDevice = pcidev->device; 526 526 527 rprintf(( "pci_register_driver: matched %d %x:%x/%x with %x:%x/%x %x (%s)", iTableIx,527 rprintf((__func__": matched %d %x:%x/%x with %x:%x/%x %x (%s)", iTableIx, 528 528 pcidev->vendor, pcidev->device, pcidev->class, 529 529 pDriverId->vendor, pDriverId->device, pDriverId->class, pDriverId->class_mask, driver->name)); … … 531 531 if ((iAdapterNumber >= 0) && (iAdapter < iAdapterNumber)) 532 532 { 533 rprintf(( "iAdapterNumber=%x skipping iAdapter=%x", iAdapterNumber, iAdapter));533 rprintf((__func__": AdapterNumber=%x skipping Adapter=%x", iAdapterNumber, iAdapter)); 534 534 iAdapter++; 535 535 continue; -
GPL/branches/uniaud32-next/tools/AddToFile.cmd
r615 r637 3 3 * Written by and Copyright (c) 2010-2018 David Azarewicz http://88watts.net 4 4 * 5 * @#D Azarewicz:1.0 2#@##1## 15 Nov 2018 DAZAR1 ::::::@@AddToFile.cmd (c) David Azarewicz 20185 * @#D Azarewicz:1.04#@##1## 02 Jan 2021 DAZAR1 ::::::@@AddToFile.cmd (c) David Azarewicz 2021 6 6 * V1.01 16-Sep-2016 First official release 7 7 * V1.02 02-Jun-2017 Added Asd to bldlevel, added DATE1 8 * V1.03 02-Mar-2020 Added STRING function 9 * V1.04 02-Jan-2021 Added FILESIZE function 8 10 * 9 11 * The following line is for the help sample code for the VAR function: … … 27 29 Say ' VERSIONMINOR - Adds the minor portion of the provided version number.'; 28 30 Say ' VERSIONREVISION - Adds the revision portion of the provided version number.'; 31 Say ' STRING - Adds the string with %Y substitution.'; 29 32 Say ' VAR - Adds the value of the specified variable from a specified file.'; 33 Say ' FILESIZE - Adds the file size.'; 30 34 Say ' FILE - Adds the contents of a file.'; 31 35 Say 'Examples:'; … … 53 57 rc=LineOut(MyFile, '--- AddToFile.cmd '||MyCmd); 54 58 call 'AddToFile.cmd' MyCmd; 55 MyCmd=MyFile||',#define DVMAJ,VERSIONMAJOR,1.2.3'; 56 rc=LineOut(MyFile, '--- AddToFile.cmd '||MyCmd); 57 call 'AddToFile.cmd' MyCmd; 58 MyCmd=MyFile||',#define DVMIN,VERSIONMINOR,1.2.3'; 59 rc=LineOut(MyFile, '--- AddToFile.cmd '||MyCmd); 60 call 'AddToFile.cmd' MyCmd; 61 MyCmd=MyFile||',#define DVREV,VERSIONREVISION,1.2.3'; 59 MyCmd=MyFile||',#define DVMAJ,VERSIONMAJOR,1.02.03'; 60 rc=LineOut(MyFile, '--- AddToFile.cmd '||MyCmd); 61 call 'AddToFile.cmd' MyCmd; 62 MyCmd=MyFile||',#define DVMIN,VERSIONMINOR,1.02.03'; 63 rc=LineOut(MyFile, '--- AddToFile.cmd '||MyCmd); 64 call 'AddToFile.cmd' MyCmd; 65 MyCmd=MyFile||',#define DVREV,VERSIONREVISION,1.02.03'; 66 rc=LineOut(MyFile, '--- AddToFile.cmd '||MyCmd); 67 call 'AddToFile.cmd' MyCmd; 68 MyCmd=MyFile||',#define DSTRING,STRING,The year is %Y'; 62 69 rc=LineOut(MyFile, '--- AddToFile.cmd '||MyCmd); 63 70 call 'AddToFile.cmd' MyCmd; 64 71 MyCmd=MyFile||',#define XYZ "%A",VAR,EXAMPLEVAR=,AddToFile.cmd'; 72 rc=LineOut(MyFile, '--- AddToFile.cmd '||MyCmd); 73 call 'AddToFile.cmd' MyCmd; 74 MyCmd=MyFile||',#define FSIZE,FILESIZE,addtofile.cmd'; 65 75 rc=LineOut(MyFile, '--- AddToFile.cmd '||MyCmd); 66 76 call 'AddToFile.cmd' MyCmd; … … 87 97 88 98 when (LEFT(Function,8)='BLDLEVEL') then do 99 /* option description,BLDLEVEL,Vendor,1.2.3,Description,Fixpack,Asd'; 100 * String ,Function,Parm1 ,Parm2,Parm3 ,Parm4 ,Parm5 101 */ 89 102 Type=SUBSTR(Function,9,1); 90 103 … … 106 119 end 107 120 121 /* Vendor TextVersion Date/Time/Host ASD Revision Fixpack Desc */ 108 122 NewStr='@#'||Parm1||':'||Parm2||'#@##1## '||ProjString||':'||Parm5||':::'||ProjVersion||'::'||Parm4||'@@'||Parm3; 109 123 if (Type='2') then do … … 183 197 if (RepLoc>0) then OutStr=Substr(String,1,RepLoc-1)||NewStr||Substr(String,RepLoc+2); 184 198 else OutStr=String||' '||NewStr; 199 rc=lineout(OutFile, OutStr); 200 rc=lineout(OutFile); 201 end 202 203 when (Function="STRING") then do 204 RepLoc=Pos('%Y', Parm1); 205 if (RepLoc>0) then do 206 Parm1=Substr(Parm1,1,RepLoc-1)||FORMAT(SUBSTR(DATE('S'), 1, 4))||Substr(Parm1,RepLoc+2); 207 end 208 RepLoc=Pos('%A', String); 209 if (RepLoc>0) then OutStr=Substr(String,1,RepLoc-1)||Parm1||Substr(String,RepLoc+2); 210 else OutStr=String||' '||Parm1; 185 211 rc=lineout(OutFile, OutStr); 186 212 rc=lineout(OutFile); … … 192 218 end; 193 219 rc=stream(String,'c','close'); 220 rc=lineout(OutFile); 221 end 222 223 when (Function="FILESIZE") then do 224 NewStr=stream(Parm1,'c','query size'); 225 RepLoc=Pos('%A', String); 226 if (RepLoc>0) then OutStr=Substr(String,1,RepLoc-1)||NewStr||Substr(String,RepLoc+2); 227 else OutStr=String||' '||NewStr; 228 rc=lineout(OutFile, OutStr); 194 229 rc=lineout(OutFile); 195 230 end -
GPL/branches/uniaud32-next/tools/mkversion.cmd
r587 r637 69 69 parse value versionIn with major'.'minor'.'projVersion 70 70 71 if fixpack="" then72 projVers = versionIn;73 else74 projVers = versionIn||'-'||fixpack;75 76 71 projVers2 = major||minor||projVersion; 77 72 … … 93 88 say 'alsalevel='||alsalevel; 94 89 say 'ProjVersion='||ProjVersion; 95 say 'projVers='||projVers;96 90 say 'projVers2='||projVers2; 97 91 say 'Fixpack='||Fixpack; … … 140 134 call lineout versHdr, '#define VENDOR_NAME "'||projVendor||'"'; 141 135 call lineout versHdr, '#define PRODUCT_TIMESTAMP '||projDate2||' // YYYYMMDD'; 142 call lineout versHdr, '#define UNIAUD_VERSION "'|| projVers||'"';136 call lineout versHdr, '#define UNIAUD_VERSION "'||versionIn||'"'; 143 137 call lineout versHdr, '#define ALSA_VERSION "'||alsalevel||'"'; 144 138 call lineout versHdr, ' ' -
GPL/branches/uniaud32-next/uniaud.inc
r615 r637 7 7 # BUILDVERSION must be 3 parts, and only numbers like 5.44.108 8 8 # The second and third numbers must be 2 digits 9 BUILDVERSION = 2.02.059 BUILDVERSION = 3.01.01 10 10 11 11 # Fixpack version
Note:
See TracChangeset
for help on using the changeset viewer.