Lines Matching refs:cidx

144 static unsigned char get_slot_reg(struct ac97_pcm *pcm, unsigned short cidx,  in get_slot_reg()  argument
154 return rate_reg_tables[dbl][pcm->r[dbl].rate_table[cidx]][slot - 3]; in get_slot_reg()
393 static unsigned int get_rates(struct ac97_pcm *pcm, unsigned int cidx, unsigned short slots, int db… in get_rates() argument
402 reg = get_slot_reg(pcm, cidx, i, dbl); in get_rates()
411 rates &= pcm->r[dbl].codec[cidx]->rates[idx]; in get_rates()
559 int i, cidx, r, ok_flag; in snd_ac97_pcm_open() local
567 for (cidx = 0; cidx < 4; cidx++) in snd_ac97_pcm_open()
568 if (bus->codec[cidx] && (bus->codec[cidx]->ext_id & AC97_EI_SPDIF)) { in snd_ac97_pcm_open()
569 err = set_spdif_rate(bus->codec[cidx], rate); in snd_ac97_pcm_open()
579 for (cidx = 0; cidx < 4; cidx++) { in snd_ac97_pcm_open()
580 if (bus->used_slots[pcm->stream][cidx] & (1 << i)) { in snd_ac97_pcm_open()
585 if (pcm->r[r].rslots[cidx] & (1 << i)) { in snd_ac97_pcm_open()
586 bus->used_slots[pcm->stream][cidx] |= (1 << i); in snd_ac97_pcm_open()
604 for (cidx = 0; cidx < 4; cidx++) { in snd_ac97_pcm_open()
605 if (pcm->r[r].rslots[cidx] & (1 << i)) { in snd_ac97_pcm_open()
606 reg = get_slot_reg(pcm, cidx, i, r); in snd_ac97_pcm_open()
612 if (reg_ok[cidx] & (1 << (reg - AC97_PCM_FRONT_DAC_RATE))) in snd_ac97_pcm_open()
617 err = snd_ac97_set_rate(pcm->r[r].codec[cidx], reg, rate); in snd_ac97_pcm_open()
621 cidx, reg, rate, err); in snd_ac97_pcm_open()
623 reg_ok[cidx] |= (1 << (reg - AC97_PCM_FRONT_DAC_RATE)); in snd_ac97_pcm_open()
650 int i, cidx; in snd_ac97_pcm_close() local
657 for (cidx = 0; cidx < 4; cidx++) { in snd_ac97_pcm_close()
658 if (pcm->r[r].rslots[cidx] & (1 << i)) { in snd_ac97_pcm_close()
659 int reg = get_slot_reg(pcm, cidx, i, r); in snd_ac97_pcm_close()
660 snd_ac97_update_power(pcm->r[r].codec[cidx], in snd_ac97_pcm_close()
672 for (cidx = 0; cidx < 4; cidx++) in snd_ac97_pcm_close()
673 bus->used_slots[pcm->stream][cidx] &= ~(1 << i); in snd_ac97_pcm_close()