[BACK]Return to dev.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / sndiod

Diff for /src/usr.bin/sndiod/dev.c between version 1.70 and 1.71

version 1.70, 2020/04/16 12:26:55 version 1.71, 2020/04/24 11:33:28
Line 1269 
Line 1269 
 dev_reopen(struct dev *d)  dev_reopen(struct dev *d)
 {  {
         struct slot *s;          struct slot *s;
         struct ctl *c, **pc;  
         long long pos;          long long pos;
         unsigned int pstate;          unsigned int pstate;
         int delta;          int delta;
Line 1323 
Line 1322 
                 }                  }
         }          }
   
         /* remove controls of old device */          /* remove old controls and add new ones */
         pc = &d->ctl_list;          dev_sioctl_close(d);
         while ((c = *pc) != NULL) {  
                 if (c->addr >= CTLADDR_END) {  
                         c->refs_mask &= ~CTL_DEVMASK;  
                         if (c->refs_mask == 0) {  
                                 *pc = c->next;  
                                 xfree(c);  
                                 continue;  
                         }  
                         c->type = CTL_NONE;  
                         c->desc_mask = ~0;  
                 }  
                 pc = &c->next;  
         }  
   
         /* add new device controls */  
         dev_sioctl_open(d);          dev_sioctl_open(d);
   
         /* start the device if needed */          /* start the device if needed */

Legend:
Removed from v.1.70  
changed lines
  Added in v.1.71