Ignore:
Timestamp:
Jan 8, 2018, 2:07:36 AM (8 years ago)
Author:
David Azarewicz
Message:

Incorporated changes from Andy.
Added limited MSI support.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk/lib32/sound.c

    r598 r604  
    976976        _snd_pcm_hw_param_set(&params, SNDRV_PCM_HW_PARAM_RATE,
    977977                                                   pHwParams->ulSampleRate, 0);
     978                                               
     979  /* Change from Andy. If statement added around 5 statements.
     980   * Andy says: TODO:  determine why small buffers are a problem for this code
     981   * DAZ: This change is questionable.
     982   */
     983  if (periodsize > 6 * minperiodsize)
     984  {
    978985        _snd_pcm_hw_param_set(&params, SNDRV_PCM_HW_PARAM_PERIOD_SIZE,
    979986                                                   periodsize, 0);
     
    986993        _snd_pcm_hw_param_set(&params, SNDRV_PCM_HW_PARAM_BUFFER_BYTES,
    987994                                                   periodbytes*nrperiods, 0);
    988 
     995  }
    989996
    990997        dprintf(("HWP: SR rate %ld, BPS %ld, CH %ld, PRSZ %lx, periods %lx",
Note: See TracChangeset for help on using the changeset viewer.