Lines Matching refs:mixer
29 struct mdp5_hw_mixer *mixer = mdp5_kms->hwmixers[i];
31 if (mixer->lm == pair_lm)
32 return mixer->idx;
39 uint32_t caps, struct mdp5_hw_mixer **mixer,
58 * mixer already assigned to this CRTC, it means this call is
59 * a request to get an additional right mixer. Assume that the
60 * existing mixer is the 'left' one, and try to see if we can
97 if (!(*mixer) || cur->caps & MDP_LM_CAP_PAIR)
98 *mixer = cur;
101 if (!(*mixer))
107 DBG("assigning Layer Mixer %d to crtc %s", (*mixer)->lm, crtc->name);
109 new_state->hwmixer_to_crtc[(*mixer)->idx] = crtc;
119 int mdp5_mixer_release(struct drm_atomic_state *s, struct mdp5_hw_mixer *mixer)
124 if (!mixer)
132 if (WARN_ON(!new_state->hwmixer_to_crtc[mixer->idx]))
135 DBG("%s: release from crtc %s", mixer->name,
136 new_state->hwmixer_to_crtc[mixer->idx]->name);
138 new_state->hwmixer_to_crtc[mixer->idx] = NULL;
150 struct mdp5_hw_mixer *mixer;
152 mixer = devm_kzalloc(dev->dev, sizeof(*mixer), GFP_KERNEL);
153 if (!mixer)
156 mixer->name = mixer_names[lm->id];
157 mixer->lm = lm->id;
158 mixer->caps = lm->caps;
159 mixer->pp = lm->pp;
160 mixer->dspp = lm->dspp;
161 mixer->flush_mask = mdp_ctl_flush_mask_lm(lm->id);
163 return mixer;