• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/sound/core/

Lines Matching refs:id

124  * find a timer instance from the given timer id
171 * look for a master instance matching with the slave id of the given slave.
199 * look for slave instances matching with the slave id of the given master.
226 * when opening a master, the slave id must be here given.
746 int snd_timer_new(struct snd_card *card, char *id, struct snd_timer_id *tid,
769 if (id)
770 strlcpy(timer->id, id, sizeof(timer->id));
902 int snd_timer_global_new(char *id, int device, struct snd_timer **rtimer)
911 return snd_timer_new(NULL, id, &tid, rtimer);
1261 static void snd_timer_user_zero_id(struct snd_timer_id *id)
1263 id->dev_class = SNDRV_TIMER_CLASS_NONE;
1264 id->dev_sclass = SNDRV_TIMER_SCLASS_NONE;
1265 id->card = -1;
1266 id->device = -1;
1267 id->subdevice = -1;
1270 static void snd_timer_user_copy_id(struct snd_timer_id *id, struct snd_timer *timer)
1272 id->dev_class = timer->tmr_class;
1273 id->dev_sclass = SNDRV_TIMER_SCLASS_NONE;
1274 id->card = timer->card ? timer->card->number : -1;
1275 id->device = timer->tmr_device;
1276 id->subdevice = timer->tmr_subdevice;
1281 struct snd_timer_id id;
1285 if (copy_from_user(&id, _tid, sizeof(id)))
1288 if (id.dev_class < 0) { /* first item */
1290 snd_timer_user_zero_id(&id);
1294 snd_timer_user_copy_id(&id, timer);
1297 switch (id.dev_class) {
1299 id.device = id.device < 0 ? 0 : id.device + 1;
1303 snd_timer_user_copy_id(&id, timer);
1306 if (timer->tmr_device >= id.device) {
1307 snd_timer_user_copy_id(&id, timer);
1312 snd_timer_user_zero_id(&id);
1316 if (id.card < 0) {
1317 id.card = 0;
1319 if (id.card < 0) {
1320 id.card = 0;
1322 if (id.device < 0) {
1323 id.device = 0;
1325 if (id.subdevice < 0) {
1326 id.subdevice = 0;
1328 id.subdevice++;
1335 if (timer->tmr_class > id.dev_class) {
1336 snd_timer_user_copy_id(&id, timer);
1339 if (timer->tmr_class < id.dev_class)
1341 if (timer->card->number > id.card) {
1342 snd_timer_user_copy_id(&id, timer);
1345 if (timer->card->number < id.card)
1347 if (timer->tmr_device > id.device) {
1348 snd_timer_user_copy_id(&id, timer);
1351 if (timer->tmr_device < id.device)
1353 if (timer->tmr_subdevice > id.subdevice) {
1354 snd_timer_user_copy_id(&id, timer);
1357 if (timer->tmr_subdevice < id.subdevice)
1359 snd_timer_user_copy_id(&id, timer);
1363 snd_timer_user_zero_id(&id);
1366 snd_timer_user_zero_id(&id);
1370 if (copy_to_user(_tid, &id, sizeof(*_tid)))
1400 strlcpy(ginfo->id, t->id, sizeof(ginfo->id));
1504 if (tselect.id.dev_class != SNDRV_TIMER_CLASS_SLAVE)
1505 tselect.id.dev_sclass = SNDRV_TIMER_SCLASS_APPLICATION;
1506 err = snd_timer_open(&tu->timeri, str, &tselect.id, current->pid);
1561 strlcpy(info->id, t->id, sizeof(info->id));