Lines Matching full:slots

295 		 * slots 7+8  in snd_ac97_set_rate()
312 unsigned short slots = 0; in get_pslots() local
326 slots |= (1<<AC97_SLOT_PCM_LEFT)|(1<<AC97_SLOT_PCM_RIGHT); in get_pslots()
328 slots |= (1<<AC97_SLOT_PCM_SLEFT)|(1<<AC97_SLOT_PCM_SRIGHT); in get_pslots()
330 slots |= (1<<AC97_SLOT_PCM_CENTER)|(1<<AC97_SLOT_LFE); in get_pslots()
343 slots |= (1<<AC97_SLOT_PCM_SLEFT)|(1<<AC97_SLOT_PCM_SRIGHT); in get_pslots()
345 slots |= (1<<AC97_SLOT_PCM_CENTER)|(1<<AC97_SLOT_LFE); in get_pslots()
355 slots |= (1<<AC97_SLOT_PCM_CENTER)|(1<<AC97_SLOT_LFE); in get_pslots()
361 return slots; in get_pslots()
363 unsigned short slots; in get_pslots() local
364 slots = (1<<AC97_SLOT_PCM_LEFT)|(1<<AC97_SLOT_PCM_RIGHT); in get_pslots()
366 slots |= (1<<AC97_SLOT_PCM_SLEFT)|(1<<AC97_SLOT_PCM_SRIGHT); in get_pslots()
368 slots |= (1<<AC97_SLOT_PCM_CENTER)|(1<<AC97_SLOT_LFE); in get_pslots()
378 return slots; in get_pslots()
384 unsigned short slots; in get_cslots() local
388 slots = (1<<AC97_SLOT_PCM_LEFT)|(1<<AC97_SLOT_PCM_RIGHT); in get_cslots()
389 slots |= (1<<AC97_SLOT_MIC); in get_cslots()
390 return slots; in get_cslots()
393 static unsigned int get_rates(struct ac97_pcm *pcm, unsigned int cidx, unsigned short slots, int db… in get_rates() argument
400 if (!(slots & (1 << i))) in get_rates()
420 * snd_ac97_pcm_assign - assign AC97 slots to given PCM streams
425 * It assigns available AC97 slots for given PCMs. If none or only
426 * some slots are available, pcm->xxx.slots and pcm->xxx.rslots[] members
440 unsigned short tmp, slots; in snd_ac97_pcm_assign() local
479 slots = pcm->r[0].slots; in snd_ac97_pcm_assign()
480 for (j = 0; j < 4 && slots; j++) { in snd_ac97_pcm_assign()
490 tmp &= slots; in snd_ac97_pcm_assign()
497 tmp &= pcm->r[0].slots; in snd_ac97_pcm_assign()
510 slots &= ~tmp; in snd_ac97_pcm_assign()
511 rpcm->r[0].slots |= tmp; in snd_ac97_pcm_assign()
520 if ((tmp & pcm->r[1].slots) == tmp) { in snd_ac97_pcm_assign()
521 rpcm->r[1].slots = tmp; in snd_ac97_pcm_assign()
549 * @slots: a subset of allocated slots (snd_ac97_pcm_assign) for this pcm
551 * It locks the specified slots and sets the given rate to AC97 registers.
556 enum ac97_pcm_cfg cfg, unsigned short slots) in snd_ac97_pcm_open() argument
576 if (!(slots & (1 << i))) in snd_ac97_pcm_open()
602 if (!(slots & (1 << i))) in snd_ac97_pcm_open()
627 pcm->aslots = slots; in snd_ac97_pcm_open()
631 pcm->aslots = slots; in snd_ac97_pcm_open()
642 * It frees the locked AC97 slots.
649 unsigned short slots = pcm->aslots; in snd_ac97_pcm_close() local
655 if (!(slots & (1 << i))) in snd_ac97_pcm_close()
670 if (!(slots & (1 << i))) in snd_ac97_pcm_close()