Lines Matching +full:mute +full:- +full:enable

1 // SPDX-License-Identifier: GPL-2.0
3 // Renesas R-Car DVC support
15 * Playback Mute
16 * amixer set "DVC Out Mute" on
18 * Capture Mute
19 * amixer set "DVC In Mute" on
39 struct rsnd_kctrl_cfg_m mute; member
40 struct rsnd_kctrl_cfg_s ren; /* Ramp Enable */
45 #define rsnd_dvc_get(priv, id) ((struct rsnd_dvc *)(priv->dvc) + id)
46 #define rsnd_dvc_nr(priv) ((priv)->dvc_nr)
54 ((pos) = (struct rsnd_dvc *)(priv)->dvc + i); \
69 #define rsnd_dvc_get_vrpdr(dvc) (rsnd_kctrl_vals(dvc->rup) << 8 | \
70 rsnd_kctrl_vals(dvc->rdown))
71 #define rsnd_dvc_get_vrdbr(dvc) (0x3ff - (rsnd_kctrl_valm(dvc->volume, 0) >> 13))
80 /* Enable Ramp */ in rsnd_dvc_volume_parameter()
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()
88 /* Enable Digital Volume */ in rsnd_dvc_volume_parameter()
106 /* Enable Digital Volume, Zero Cross Mute Mode */ in rsnd_dvc_volume_init()
109 /* Enable Ramp */ in rsnd_dvc_volume_init()
110 if (rsnd_kctrl_vals(dvc->ren)) { in rsnd_dvc_volume_init()
115 * use scale-downed Digital Volume in rsnd_dvc_volume_init()
117 * 7F FFFF -> 3FF in rsnd_dvc_volume_init()
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()
163 /* Zero Cross Mute Function */ in rsnd_dvc_volume_update()
174 /* Enable DVC Register access */ in rsnd_dvc_volume_update()
231 &dvc->volume, channels, in rsnd_dvc_pcm_new()
232 0x00800000 - 1); in rsnd_dvc_pcm_new()
236 /* Mute */ in rsnd_dvc_pcm_new()
239 "DVC Out Mute Switch" : "DVC In Mute Switch", 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()
340 ret = -EINVAL; in rsnd_dvc_probe()
346 ret = -ENOMEM; in rsnd_dvc_probe()
350 priv->dvc_nr = nr; in rsnd_dvc_probe()
351 priv->dvc = dvc; in rsnd_dvc_probe()