Lines Matching refs:dvc

45 #define rsnd_dvc_get(priv, id) ((struct rsnd_dvc *)(priv->dvc) + id)
54 ((pos) = (struct rsnd_dvc *)(priv)->dvc + i); \
69 #define rsnd_dvc_get_vrpdr(dvc) (rsnd_kctrl_vals(dvc->rup) << 8 | \ argument
70 rsnd_kctrl_vals(dvc->rdown))
71 #define rsnd_dvc_get_vrdbr(dvc) (0x3ff - (rsnd_kctrl_valm(dvc->volume, 0) >> 13)) argument
76 struct rsnd_dvc *dvc = rsnd_mod_to_dvc(mod); in rsnd_dvc_volume_parameter() local
81 if (rsnd_kctrl_vals(dvc->ren)) in rsnd_dvc_volume_parameter()
83 val[i] = rsnd_kctrl_max(dvc->volume); in rsnd_dvc_volume_parameter()
86 val[i] = rsnd_kctrl_valm(dvc->volume, i); in rsnd_dvc_volume_parameter()
96 struct rsnd_dvc *dvc = rsnd_mod_to_dvc(mod); in rsnd_dvc_volume_init() local
110 if (rsnd_kctrl_vals(dvc->ren)) { in rsnd_dvc_volume_init()
120 vrpdr = rsnd_dvc_get_vrpdr(dvc); in rsnd_dvc_volume_init()
121 vrdbr = rsnd_dvc_get_vrdbr(dvc); in rsnd_dvc_volume_init()
146 struct rsnd_dvc *dvc = rsnd_mod_to_dvc(mod); in rsnd_dvc_volume_update() local
152 for (i = 0; i < rsnd_kctrl_size(dvc->mute); i++) in rsnd_dvc_volume_update()
153 zcmcr |= (!!rsnd_kctrl_valm(dvc->mute, i)) << i; in rsnd_dvc_volume_update()
155 if (rsnd_kctrl_vals(dvc->ren)) { in rsnd_dvc_volume_update()
156 vrpdr = rsnd_dvc_get_vrpdr(dvc); in rsnd_dvc_volume_update()
157 vrdbr = rsnd_dvc_get_vrdbr(dvc); in rsnd_dvc_volume_update()
219 struct rsnd_dvc *dvc = rsnd_mod_to_dvc(mod); in rsnd_dvc_pcm_new() local
231 &dvc->volume, channels, in rsnd_dvc_pcm_new()
242 &dvc->mute, channels, in rsnd_dvc_pcm_new()
253 &dvc->ren, 1); in rsnd_dvc_pcm_new()
262 &dvc->rup, in rsnd_dvc_pcm_new()
273 &dvc->rdown, in rsnd_dvc_pcm_new()
329 struct rsnd_dvc *dvc; in rsnd_dvc_probe() local
348 dvc = devm_kcalloc(dev, nr, sizeof(*dvc), GFP_KERNEL); in rsnd_dvc_probe()
349 if (!dvc) { in rsnd_dvc_probe()
355 priv->dvc = dvc; in rsnd_dvc_probe()
360 dvc = rsnd_dvc_get(priv, i); in rsnd_dvc_probe()
372 ret = rsnd_mod_init(priv, rsnd_mod_get(dvc), &rsnd_dvc_ops, in rsnd_dvc_probe()
390 struct rsnd_dvc *dvc; in rsnd_dvc_remove() local
393 for_each_rsnd_dvc(dvc, priv, i) { in rsnd_dvc_remove()
394 rsnd_mod_quit(rsnd_mod_get(dvc)); in rsnd_dvc_remove()