Lines Matching defs:tid

174 static struct snd_timer *snd_timer_find(struct snd_timer_id *tid)
179 if (timer->tmr_class != tid->dev_class)
184 timer->card->number != tid->card))
186 if (timer->tmr_device != tid->device)
188 if (timer->tmr_subdevice != tid->subdevice)
197 static void snd_timer_request(struct snd_timer_id *tid)
199 switch (tid->dev_class) {
201 if (tid->device < timer_limit)
202 request_module("snd-timer-%i", tid->device);
206 if (tid->card < snd_ecards_limit)
207 request_module("snd-card-%i", tid->card);
290 struct snd_timer_id *tid,
298 if (tid->dev_class == SNDRV_TIMER_CLASS_SLAVE) {
300 if (tid->dev_sclass <= SNDRV_TIMER_SCLASS_NONE ||
301 tid->dev_sclass > SNDRV_TIMER_SCLASS_OSS_SEQUENCER) {
303 tid->dev_sclass);
311 timeri->slave_class = tid->dev_sclass;
312 timeri->slave_id = tid->device;
321 timer = snd_timer_find(tid);
325 snd_timer_request(tid);
327 timer = snd_timer_find(tid);
366 timeri->slave_class = tid->dev_sclass;
934 int snd_timer_new(struct snd_card *card, char *id, struct snd_timer_id *tid,
945 if (snd_BUG_ON(!tid))
947 if (tid->dev_class == SNDRV_TIMER_CLASS_CARD ||
948 tid->dev_class == SNDRV_TIMER_CLASS_PCM) {
957 timer->tmr_class = tid->dev_class;
959 timer->tmr_device = tid->device;
960 timer->tmr_subdevice = tid->subdevice;
1107 struct snd_timer_id tid;
1109 tid.dev_class = SNDRV_TIMER_CLASS_GLOBAL;
1110 tid.dev_sclass = SNDRV_TIMER_SCLASS_NONE;
1111 tid.card = -1;
1112 tid.device = device;
1113 tid.subdevice = 0;
1114 return snd_timer_new(NULL, id, &tid, rtimer);
1645 struct snd_timer_id tid;
1654 tid = ginfo->tid;
1656 ginfo->tid = tid;
1658 t = snd_timer_find(&tid);
1689 t = snd_timer_find(&gparams->tid);
1722 struct snd_timer_id tid;
1728 tid = gstatus.tid;
1730 gstatus.tid = tid;
1732 t = snd_timer_find(&tid);