Lines Matching refs:slots
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()
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()
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()
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()