Changeset 717 for GPL/trunk/alsa-kernel/hda/hdac_stream.c
- Timestamp:
- Aug 7, 2022, 6:11:12 PM (3 years ago)
- Location:
- GPL/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/trunk
- Property svn:mergeinfo changed
/GPL/branches/uniaud32-next merged: 710-716
- Property svn:mergeinfo changed
-
GPL/trunk/alsa-kernel/hda/hdac_stream.c
r695 r717 302 302 (substream->stream + 1); 303 303 304 spin_lock_irq(&bus->reg_lock); 304 305 list_for_each_entry(azx_dev, &bus->stream_list, list, struct hdac_stream) { 305 306 if (azx_dev->direction != substream->stream) … … 315 316 } 316 317 if (res) { 317 spin_lock_irq(&bus->reg_lock);318 318 res->opened = 1; 319 319 res->running = 0; 320 320 res->assigned_key = key; 321 321 res->substream = substream; 322 spin_unlock_irq(&bus->reg_lock);323 }322 } 323 spin_unlock_irq(&bus->reg_lock); 324 324 return res; 325 325 } … … 539 539 cc->mask = CLOCKSOURCE_MASK(32); 540 540 541 #ifndef TARGET_OS2 542 /* 543 * Calculate the optimal mult/shift values. The counter wraps 544 * around after ~178.9 seconds. 545 */ 546 clocks_calc_mult_shift(&cc->mult, &cc->shift, 24000000, 547 NSEC_PER_SEC, 178); 548 #else 541 549 /* 542 550 * Converting from 24 MHz to ns means applying a 125/3 factor. … … 551 559 cc->mult = 125; /* saturation after 195 years */ 552 560 cc->shift = 0; 553 561 #endif 554 562 nsec = 0; /* audio time is elapsed time since trigger */ 555 563 timecounter_init(tc, cc, nsec);
Note:
See TracChangeset
for help on using the changeset viewer.