Lines Matching refs:mask
250 static int lola_mixer_set_src_gains(struct lola *chip, unsigned int mask,
255 if ((chip->mixer.src_mask & mask) != mask)
258 if (mask & (1 << i)) {
263 writel(mask, &chip->mixer.array->src_gain_enable);
272 if (mask & (1 << i)) {
305 unsigned int mask, unsigned short *gains)
310 (chip->mixer.src_mask & mask) != mask)
313 if (mask & (1 << i)) {
318 writel(mask, &chip->mixer.array->dest_mix_gain_enable[id]);
435 unsigned int mask = 3U << n; /* handle the stereo case */ in lola_set_src_config() local
437 if (!(chip->input_src_caps_mask & mask)) in lola_set_src_config()
440 new_src = (src_mask & mask) != 0; in lola_set_src_config()
442 src_state = (chip->input_src_mask & mask) != 0; in lola_set_src_config()
639 unsigned int mask; in lola_input_src_put() local
641 mask = 0; in lola_input_src_put()
644 mask |= 1 << i; in lola_input_src_put()
645 return lola_set_src_config(chip, mask, true); in lola_input_src_put()
690 unsigned int mask, i; in lola_src_gain_get() local
692 mask = readl(&chip->mixer.array->src_gain_enable); in lola_src_gain_get()
698 if (mask & (1 << idx)) in lola_src_gain_get()
772 unsigned int dst, mask, i;
775 mask = readl(&chip->mixer.array->dest_mix_gain_enable[dst]);
781 if (mask & (1 << dst))
797 unsigned int dst, mask;
801 mask = 0;
807 mask |= 1 << i;
810 mask <<= src_ofs;
812 return lola_mixer_set_dest_gains(chip, dst, mask, gains);