Ignore:
Timestamp:
Nov 6, 2009, 11:24:20 PM (16 years ago)
Author:
vladest
Message:

Fixed Uniaud API support. Please, take in account this diffs when making updates from ALSA tree for following files: pcm.c and pcm_lib.c

File:
1 edited

Legend:

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

    r362 r470  
    3030 */
    3131struct snd_pcm_substream *substream_int[8*256] = {0}; // interrupted substream
     32
    3233int control_id_changed = 0;
    3334int card_id_changed = 0;
     
    3637void FillCaps(ULONG deviceid);
    3738int pcm_instances(int card_id);
     39
     40int uniaud_set_interrupted_substream(struct snd_pcm_substream *substream)
     41{
     42    int i;
     43
     44    for (i=0; i < 8*256; i++)
     45    {
     46        if (substream_int[i] == 0)
     47        {
     48            substream_int[i] = substream; // interrupted substream
     49            //                printk("added %x to %i\n", substream, i);
     50            break;
     51        }
     52        if (substream_int[i] == substream)
     53        {
     54            //                printk("already exist %x at %i\n", substream, i);
     55            break;
     56        }
     57    }
     58}
    3859
    3960int WaitForControlChange(int card_id, int timeout)
Note: See TracChangeset for help on using the changeset viewer.