• Home
  • Raw
  • Download

Lines Matching refs:id

887 int snd_timer_new(struct snd_card *card, char *id, struct snd_timer_id *tid,  in snd_timer_new()  argument
909 if (id) in snd_timer_new()
910 strlcpy(timer->id, id, sizeof(timer->id)); in snd_timer_new()
1058 int snd_timer_global_new(char *id, int device, struct snd_timer **rtimer) in snd_timer_global_new() argument
1067 return snd_timer_new(NULL, id, &tid, rtimer); in snd_timer_global_new()
1475 static void snd_timer_user_zero_id(struct snd_timer_id *id) in snd_timer_user_zero_id() argument
1477 id->dev_class = SNDRV_TIMER_CLASS_NONE; in snd_timer_user_zero_id()
1478 id->dev_sclass = SNDRV_TIMER_SCLASS_NONE; in snd_timer_user_zero_id()
1479 id->card = -1; in snd_timer_user_zero_id()
1480 id->device = -1; in snd_timer_user_zero_id()
1481 id->subdevice = -1; in snd_timer_user_zero_id()
1484 static void snd_timer_user_copy_id(struct snd_timer_id *id, struct snd_timer *timer) in snd_timer_user_copy_id() argument
1486 id->dev_class = timer->tmr_class; in snd_timer_user_copy_id()
1487 id->dev_sclass = SNDRV_TIMER_SCLASS_NONE; in snd_timer_user_copy_id()
1488 id->card = timer->card ? timer->card->number : -1; in snd_timer_user_copy_id()
1489 id->device = timer->tmr_device; in snd_timer_user_copy_id()
1490 id->subdevice = timer->tmr_subdevice; in snd_timer_user_copy_id()
1495 struct snd_timer_id id; in snd_timer_user_next_device() local
1499 if (copy_from_user(&id, _tid, sizeof(id))) in snd_timer_user_next_device()
1502 if (id.dev_class < 0) { /* first item */ in snd_timer_user_next_device()
1504 snd_timer_user_zero_id(&id); in snd_timer_user_next_device()
1508 snd_timer_user_copy_id(&id, timer); in snd_timer_user_next_device()
1511 switch (id.dev_class) { in snd_timer_user_next_device()
1513 id.device = id.device < 0 ? 0 : id.device + 1; in snd_timer_user_next_device()
1517 snd_timer_user_copy_id(&id, timer); in snd_timer_user_next_device()
1520 if (timer->tmr_device >= id.device) { in snd_timer_user_next_device()
1521 snd_timer_user_copy_id(&id, timer); in snd_timer_user_next_device()
1526 snd_timer_user_zero_id(&id); in snd_timer_user_next_device()
1530 if (id.card < 0) { in snd_timer_user_next_device()
1531 id.card = 0; in snd_timer_user_next_device()
1533 if (id.device < 0) { in snd_timer_user_next_device()
1534 id.device = 0; in snd_timer_user_next_device()
1536 if (id.subdevice < 0) in snd_timer_user_next_device()
1537 id.subdevice = 0; in snd_timer_user_next_device()
1538 else if (id.subdevice < INT_MAX) in snd_timer_user_next_device()
1539 id.subdevice++; in snd_timer_user_next_device()
1544 if (timer->tmr_class > id.dev_class) { in snd_timer_user_next_device()
1545 snd_timer_user_copy_id(&id, timer); in snd_timer_user_next_device()
1548 if (timer->tmr_class < id.dev_class) in snd_timer_user_next_device()
1550 if (timer->card->number > id.card) { in snd_timer_user_next_device()
1551 snd_timer_user_copy_id(&id, timer); in snd_timer_user_next_device()
1554 if (timer->card->number < id.card) in snd_timer_user_next_device()
1556 if (timer->tmr_device > id.device) { in snd_timer_user_next_device()
1557 snd_timer_user_copy_id(&id, timer); in snd_timer_user_next_device()
1560 if (timer->tmr_device < id.device) in snd_timer_user_next_device()
1562 if (timer->tmr_subdevice > id.subdevice) { in snd_timer_user_next_device()
1563 snd_timer_user_copy_id(&id, timer); in snd_timer_user_next_device()
1566 if (timer->tmr_subdevice < id.subdevice) in snd_timer_user_next_device()
1568 snd_timer_user_copy_id(&id, timer); in snd_timer_user_next_device()
1572 snd_timer_user_zero_id(&id); in snd_timer_user_next_device()
1575 snd_timer_user_zero_id(&id); in snd_timer_user_next_device()
1579 if (copy_to_user(_tid, &id, sizeof(*_tid))) in snd_timer_user_next_device()
1606 strlcpy(ginfo->id, t->id, sizeof(ginfo->id)); in snd_timer_user_ginfo()
1715 if (tselect.id.dev_class != SNDRV_TIMER_CLASS_SLAVE) in snd_timer_user_tselect()
1716 tselect.id.dev_sclass = SNDRV_TIMER_SCLASS_APPLICATION; in snd_timer_user_tselect()
1717 err = snd_timer_open(&tu->timeri, str, &tselect.id, current->pid); in snd_timer_user_tselect()
1753 strlcpy(info->id, t->id, sizeof(info->id)); in snd_timer_user_info()