[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.76 and 1.77

version 1.76, 2020/07/19 11:07:14 version 1.77, 2020/07/19 11:13:35
Line 1235 
Line 1235 
                     NULL, -1, 127, d->slot[i].vol);                      NULL, -1, 127, d->slot[i].vol);
         }          }
   
         for (a = d->alt_list; a != NULL; a = a->next) {          /* if there are multiple alt devs, add server.device knob */
                 snprintf(name, sizeof(name), "%d", a->idx);          if (d->alt_list->next != NULL) {
                 dev_addctl(d, "", CTL_SEL,                  for (a = d->alt_list; a != NULL; a = a->next) {
                     CTLADDR_ALT_SEL + a->idx,                          snprintf(name, sizeof(name), "%d", a->idx);
                     "server", -1, "device",                          dev_addctl(d, "", CTL_SEL,
                     name, -1, 1, a->idx == d->alt_num);                              CTLADDR_ALT_SEL + a->idx,
                               "server", -1, "device",
                               name, -1, 1, a->idx == d->alt_num);
                   }
         }          }
   
         d->pstate = DEV_INIT;          d->pstate = DEV_INIT;

Legend:
Removed from v.1.76  
changed lines
  Added in v.1.77