Changeset 521
- Timestamp:
- Jul 21, 2010, 7:13:21 PM (15 years ago)
- Location:
- GPL/trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk/alsa-kernel/include/sound/config.h
r464 r521 83 83 #define CONFIG_PM 84 84 #define CONFIG_PROC_FS 85 #ifdef DEBUG 85 86 #define CONFIG_SND_DEBUG_DETECT 86 87 #define CONFIG_SND_DEBUG_VERBOSE 88 #endif 87 89 #define CONFIG_SND_DMA_SGBUF 88 90 #define CONFIG_SND_HDA_CODEC_ANALOG -
GPL/trunk/alsa-kernel/pci/hda/hda_hwdep.c
r464 r521 99 99 { 100 100 #ifndef CONFIG_SND_DEBUG_VERBOSE 101 if (!capable(CAP_SYS_RAWIO))102 return -EACCES;101 // if (!capable(CAP_SYS_RAWIO)) 102 // return -EACCES; 103 103 #endif 104 104 return 0; -
GPL/trunk/drv32/strategy.c
r518 r521 70 70 RPInit __far* rp = (RPInit __far*)_rp; 71 71 rc = DiscardableInit(rp); 72 dprintf(("StratInit End rc=%d", rc));72 //dprintf(("StratInit End rc=%d", rc)); 73 73 return rc; 74 74 } … … 119 119 #endif 120 120 //PS++ End 121 dprintf(("StratInitComplete"));122 121 //dprintf(("StratInitComplete")); 122 return(RPDONE); 123 123 } 124 124 //****************************************************************************** … … 130 130 RPShutdown __far *rp = (RPShutdown __far *)_rp; 131 131 132 dprintf(("StratShutdown Start%d", rp->Function));132 //dprintf(("StratShutdown %d", rp->Function)); 133 133 if(rp->Function == 1) {//end of shutdown 134 134 OSS32_Shutdown(); 135 135 } 136 dprintf(("StratShutdown End")); 137 return(RPDONE); 136 return(RPDONE); 138 137 } 139 138 //****************************************************************************** -
GPL/trunk/include/dbgos2.h
r518 r521 32 32 extern int wrOffset; 33 33 extern char *szprintBuf; 34 //void _cdecl DPE(char *x, ...) ; /* not debugging: nothing */35 34 int _cdecl printk(const char * fmt, ...); 36 35 #ifdef __cplusplus -
GPL/trunk/lib32/misc.c
r518 r521 409 409 //****************************************************************************** 410 410 //****************************************************************************** 411 #define del_timer_sync(t) del_timer(t) /* FIXME: not quite correct on SMP */ 412 int cancel_delayed_work(struct delayed_work *dwork) 413 { 414 struct work_struct *work = &dwork->work; 415 int ret; 416 417 ret = del_timer_sync(&work->timer); 418 if (ret) 419 clear_bit(0, &work->pending); 420 return ret; 421 } 422 //****************************************************************************** 423 //****************************************************************************** 424 int schedule_work(struct work_struct *works) 425 { 426 #ifndef TARGET_OS2 427 return kernel_thread(work_caller, works, 0) >= 0; 428 #else 429 return 1; 430 #endif 431 } 432 //****************************************************************************** 433 //****************************************************************************** 434 static void delayed_work_timer_fn(unsigned long __data) 435 { 436 struct work_struct *work = (struct work_struct *)__data; 437 struct workqueue_struct *wq = work->wq_data; 438 439 if (wq) 440 __x_queue_work(wq, work); 441 else 442 schedule_work(work); 443 } 444 //****************************************************************************** 445 //****************************************************************************** 446 int queue_delayed_work(struct workqueue_struct *wq, struct delayed_work *dwork, unsigned long delay) 447 { 448 struct work_struct *work = &dwork->work; 449 struct timer_list *timer = &work->timer; 450 451 if (!test_and_set_bit(0, &work->pending)) { 452 work->wq_data = wq; 453 timer->expires = jiffies + delay; 454 timer->data = (unsigned long)work; 455 timer->function = delayed_work_timer_fn; 456 add_timer(timer); 457 return 1; 458 } 459 return 0; 460 } 461 //****************************************************************************** 462 //****************************************************************************** 463 /* Greatest common divisor */ 464 unsigned long gcd(unsigned long a, unsigned long b) 465 { 466 unsigned long r; 467 if (a < b) { 468 r = a; 469 a = b; 470 b = r; 471 } 472 while ((r = a % b) != 0) { 473 a = b; 474 b = r; 475 } 476 return b; 477 } 478 479 //****************************************************************************** 480 //****************************************************************************** 481 int strict_strtoul(const char *cp, unsigned int base, unsigned long *res) 482 { 483 char *tail; 484 unsigned long val; 485 size_t len; 486 487 *res = 0; 488 len = strlen(cp); 489 if (len == 0) 490 return -EINVAL; 491 492 val = simple_strtoul(cp, &tail, base); 493 if (tail == cp) 494 return -EINVAL; 495 496 if ((*tail == '\0') || 497 ((len == (size_t)(tail - cp) + 1) && (*tail == '\n'))) { 498 *res = val; 499 return 0; 500 } 501 502 return -EINVAL; 503 } 411 -
GPL/trunk/lib32/ossidc.cpp
r518 r521 162 162 FillCaps(i); 163 163 } 164 dprintf(("OSS32_Initialize: SUCCESS. Cards=%d", nrCardsDetected));164 rprintf(("OSS32_Initialize: SUCCESS. Cards=%d", nrCardsDetected)); 165 165 return OSSERR_SUCCESS; 166 166 } … … 173 173 OSSRET OSS32_Shutdown() 174 174 { 175 dprintf(("OSS32_Shutdown 1"));176 175 CallOSS16(IDC16_EXIT, 0, 0); 177 dprintf(("OSS32_Shutdown 2"));178 176 179 177 for(int i=0;i<nrCardsDetected;i++) { … … 181 179 } 182 180 183 dprintf(("OSS32_Shutdown 3"));184 181 call_module_exit(alsa_mpu401_uart_exit); 185 dprintf(("OSS32_Shutdown 4"));186 182 call_module_exit(alsa_opl3_seq_exit); 187 dprintf(("OSS32_Shutdown 5"));188 183 call_module_exit(alsa_opl3_exit); 189 dprintf(("OSS32_Shutdown 6"));190 184 call_module_exit(alsa_seq_exit); 191 dprintf(("OSS32_Shutdown 7"));192 185 call_module_exit(alsa_rawmidi_exit); 193 dprintf(("OSS32_Shutdown 8"));194 186 call_module_exit(alsa_timer_exit); 195 dprintf(("OSS32_Shutdown 9"));196 187 call_module_exit(alsa_hwdep_exit); 197 dprintf(("OSS32_Shutdown 10"));198 188 call_module_exit(alsa_pcm_exit); 199 dprintf(("OSS32_Shutdown 11"));200 189 call_module_exit(alsa_sound_exit); 201 dprintf(("OSS32_Shutdown 12"));202 190 203 191 return OSSERR_SUCCESS; -
GPL/trunk/uniaud.inc
r518 r521 13 13 # ex RC3 GA FIXPACK2 beta_47 14 14 # Comment out to avoid a fixpack line in bldlevel 15 FIXPACK = SVN r5 1815 FIXPACK = SVN r520 16 16 17 17 # ALSA BUILD VERSION
Note:
See TracChangeset
for help on using the changeset viewer.