• Home
  • Raw
  • Download

Lines Matching refs:tid

132 static struct snd_timer *snd_timer_find(struct snd_timer_id *tid)  in snd_timer_find()  argument
137 if (timer->tmr_class != tid->dev_class) in snd_timer_find()
142 timer->card->number != tid->card)) in snd_timer_find()
144 if (timer->tmr_device != tid->device) in snd_timer_find()
146 if (timer->tmr_subdevice != tid->subdevice) in snd_timer_find()
155 static void snd_timer_request(struct snd_timer_id *tid) in snd_timer_request() argument
157 switch (tid->dev_class) { in snd_timer_request()
159 if (tid->device < timer_limit) in snd_timer_request()
160 request_module("snd-timer-%i", tid->device); in snd_timer_request()
164 if (tid->card < snd_ecards_limit) in snd_timer_request()
165 request_module("snd-card-%i", tid->card); in snd_timer_request()
235 char *owner, struct snd_timer_id *tid, in snd_timer_open() argument
241 if (tid->dev_class == SNDRV_TIMER_CLASS_SLAVE) { in snd_timer_open()
243 if (tid->dev_sclass <= SNDRV_TIMER_SCLASS_NONE || in snd_timer_open()
244 tid->dev_sclass > SNDRV_TIMER_SCLASS_OSS_SEQUENCER) { in snd_timer_open()
245 snd_printd("invalid slave class %i\n", tid->dev_sclass); in snd_timer_open()
254 timeri->slave_class = tid->dev_sclass; in snd_timer_open()
255 timeri->slave_id = tid->device; in snd_timer_open()
266 timer = snd_timer_find(tid); in snd_timer_open()
270 snd_timer_request(tid); in snd_timer_open()
272 timer = snd_timer_find(tid); in snd_timer_open()
292 timeri->slave_class = tid->dev_sclass; in snd_timer_open()
770 int snd_timer_new(struct snd_card *card, char *id, struct snd_timer_id *tid, in snd_timer_new() argument
781 if (snd_BUG_ON(!tid)) in snd_timer_new()
790 timer->tmr_class = tid->dev_class; in snd_timer_new()
792 timer->tmr_device = tid->device; in snd_timer_new()
793 timer->tmr_subdevice = tid->subdevice; in snd_timer_new()
932 struct snd_timer_id tid; in snd_timer_global_new() local
934 tid.dev_class = SNDRV_TIMER_CLASS_GLOBAL; in snd_timer_global_new()
935 tid.dev_sclass = SNDRV_TIMER_SCLASS_NONE; in snd_timer_global_new()
936 tid.card = -1; in snd_timer_global_new()
937 tid.device = device; in snd_timer_global_new()
938 tid.subdevice = 0; in snd_timer_global_new()
939 return snd_timer_new(NULL, id, &tid, rtimer); in snd_timer_global_new()
1420 struct snd_timer_id tid; in snd_timer_user_ginfo() local
1429 tid = ginfo->tid; in snd_timer_user_ginfo()
1431 ginfo->tid = tid; in snd_timer_user_ginfo()
1433 t = snd_timer_find(&tid); in snd_timer_user_ginfo()
1468 t = snd_timer_find(&gparams.tid); in snd_timer_user_gparams()
1491 struct snd_timer_id tid; in snd_timer_user_gstatus() local
1497 tid = gstatus.tid; in snd_timer_user_gstatus()
1499 gstatus.tid = tid; in snd_timer_user_gstatus()
1501 t = snd_timer_find(&tid); in snd_timer_user_gstatus()