Home
last modified time | relevance | path

Searched refs:vd (Results 1 – 25 of 28) sorted by relevance

12

/sound/core/
Dcontrol.c127 if (control->vd[idx].owner == ctl) in snd_ctl_release()
128 control->vd[idx].owner = NULL; in snd_ctl_release()
238 *kctl = kzalloc(struct_size(*kctl, vd, count), GFP_KERNEL); in snd_ctl_new()
243 (*kctl)->vd[idx].access = access; in snd_ctl_new()
244 (*kctl)->vd[idx].owner = file; in snd_ctl_new()
659 if (!(kctl->vd[0].access & SNDRV_CTL_ELEM_ACCESS_USER)) { in snd_ctl_remove_user_ctl()
664 if (kctl->vd[idx].owner != NULL && kctl->vd[idx].owner != file) { in snd_ctl_remove_user_ctl()
690 struct snd_kcontrol_volatile *vd; in snd_ctl_activate_id() local
701 vd = &kctl->vd[index_offset]; in snd_ctl_activate_id()
704 if (!(vd->access & SNDRV_CTL_ELEM_ACCESS_INACTIVE)) in snd_ctl_activate_id()
[all …]
Dcontrol_led.c218 struct snd_kcontrol_volatile *vd; in snd_ctl_led_notify() local
226 vd = &kctl->vd[ioff]; in snd_ctl_led_notify()
227 access = vd->access & SNDRV_CTL_ELEM_ACCESS_LED_MASK; in snd_ctl_led_notify()
235 vd = &kctl->vd[ioff]; in snd_ctl_led_notify()
236 access = vd->access & SNDRV_CTL_ELEM_ACCESS_LED_MASK; in snd_ctl_led_notify()
247 struct snd_kcontrol_volatile *vd; in snd_ctl_led_set_id() local
257 vd = &kctl->vd[ioff]; in snd_ctl_led_set_id()
258 access = vd->access & SNDRV_CTL_ELEM_ACCESS_LED_MASK; in snd_ctl_led_set_id()
263 new_access = vd->access & ~SNDRV_CTL_ELEM_ACCESS_LED_MASK; in snd_ctl_led_set_id()
266 if (new_access != vd->access) { in snd_ctl_led_set_id()
[all …]
Dvmaster.c259 srec = kzalloc(struct_size(srec, follower.vd, follower->count), in _snd_ctl_add_follower()
265 memcpy(srec->follower.vd, follower->vd, follower->count * sizeof(*follower->vd)); in _snd_ctl_add_follower()
273 if (follower->vd[0].access & SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK) in _snd_ctl_add_follower()
366 memcpy(sctl->vd, follower->follower.vd, in master_free()
367 sctl->count * sizeof(*sctl->vd)); in master_free()
426 kctl->vd[0].access |= SNDRV_CTL_ELEM_ACCESS_TLV_READ; in snd_ctl_make_virtual_master()
/sound/soc/codecs/
Dsigmadsp.c142 if (!(kcontrol->vd[0].access & SNDRV_CTL_ELEM_ACCESS_INACTIVE)) in sigmadsp_ctrl_put()
672 struct snd_kcontrol_volatile *vd; in sigmadsp_activate_ctrl() local
686 vd = &ctrl->kcontrol->vd[0]; in sigmadsp_activate_ctrl()
687 if (active == (bool)(vd->access & SNDRV_CTL_ELEM_ACCESS_INACTIVE)) { in sigmadsp_activate_ctrl()
688 vd->access ^= SNDRV_CTL_ELEM_ACCESS_INACTIVE; in sigmadsp_activate_ctrl()
/sound/pci/ice1712/
Dwm8776.c36 struct snd_kcontrol_volatile *vd; in snd_wm8776_activate_ctl() local
47 vd = &kctl->vd[index_offset]; in snd_wm8776_activate_ctl()
49 vd->access &= ~SNDRV_CTL_ELEM_ACCESS_INACTIVE; in snd_wm8776_activate_ctl()
51 vd->access |= SNDRV_CTL_ELEM_ACCESS_INACTIVE; in snd_wm8776_activate_ctl()
/sound/drivers/
Ddummy.c839 dummy->cd_volume_ctl->vd[0].access &= in snd_dummy_iobox_put()
841 dummy->cd_switch_ctl->vd[0].access &= in snd_dummy_iobox_put()
844 dummy->cd_volume_ctl->vd[0].access |= in snd_dummy_iobox_put()
846 dummy->cd_switch_ctl->vd[0].access |= in snd_dummy_iobox_put()
/sound/i2c/
Dcs8427.c567 chip->playback.pcm_ctl->vd[0].access &= ~SNDRV_CTL_ELEM_ACCESS_INACTIVE; in snd_cs8427_iec958_active()
569 chip->playback.pcm_ctl->vd[0].access |= SNDRV_CTL_ELEM_ACCESS_INACTIVE; in snd_cs8427_iec958_active()
/sound/pci/au88x0/
Dau88x0_pcm.c118 kctl->vd[0].access &= ~SNDRV_CTL_ELEM_ACCESS_INACTIVE; in vortex_notify_pcm_vol_change()
120 kctl->vd[0].access |= SNDRV_CTL_ELEM_ACCESS_INACTIVE; in vortex_notify_pcm_vol_change()
/sound/pci/oxygen/
Doxygen_pcm.c178 chip->controls[CONTROL_SPDIF_PCM]->vd[0].access &= in oxygen_open()
227 chip->controls[CONTROL_SPDIF_PCM]->vd[0].access |= in oxygen_close()
Dxonar_wm87x6.c881 if ((ctl->vd[0].access & SNDRV_CTL_ELEM_ACCESS_INACTIVE) != access) { in activate_control()
882 ctl->vd[0].access ^= SNDRV_CTL_ELEM_ACCESS_INACTIVE; in activate_control()
/sound/soc/fsl/
Dfsl_xcvr.c179 enabled = ((kctl->vd[0].access & SNDRV_CTL_ELEM_ACCESS_WRITE) != 0); in fsl_xcvr_activate_ctl()
184 kctl->vd[0].access |= SNDRV_CTL_ELEM_ACCESS_WRITE; in fsl_xcvr_activate_ctl()
186 kctl->vd[0].access &= ~SNDRV_CTL_ELEM_ACCESS_WRITE; in fsl_xcvr_activate_ctl()
/sound/usb/
Dmixer_scarlett_gen2.c2074 private->sw_hw_ctls[index]->vd[0].access &= in scarlett2_sw_hw_ctl_ro()
2080 private->sw_hw_ctls[index]->vd[0].access |= in scarlett2_sw_hw_ctl_rw()
2113 private->vol_ctls[index]->vd[0].access |= in scarlett2_vol_ctl_set_writable()
2115 private->mute_ctls[index]->vd[0].access |= in scarlett2_vol_ctl_set_writable()
2118 private->vol_ctls[index]->vd[0].access &= in scarlett2_vol_ctl_set_writable()
2120 private->mute_ctls[index]->vd[0].access &= in scarlett2_vol_ctl_set_writable()
Dmixer_quirks.c100 kctl->vd[0].access |= in snd_create_std_mono_ctl_offset()
3558 kctl->vd[0].access |= SNDRV_CTL_ELEM_ACCESS_TLV_READ; in snd_dragonfly_quirk_db_scale()
3559 kctl->vd[0].access &= ~SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK; in snd_dragonfly_quirk_db_scale()
3566 kctl->vd[0].access &= ~SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK; in snd_dragonfly_quirk_db_scale()
Dmidi.c1094 ctl->vd[0].access |= in substream_open()
1111 ctl->vd[0].access &= in substream_open()
Dmixer.c1393 kcontrol->vd[0].access &= in mixer_ctl_feature_info()
1798 kctl->vd[0].access |= in __build_feature_ctl()
/sound/pci/ymfpci/
Dymfpci_main.c402 kctl->vd[0].access |= SNDRV_CTL_ELEM_ACCESS_INACTIVE; in snd_ymfpci_playback_trigger()
679 kctl->vd[0].access &= ~SNDRV_CTL_ELEM_ACCESS_INACTIVE; in snd_ymfpci_playback_prepare()
976 chip->spdif_pcm_ctl->vd[0].access &= ~SNDRV_CTL_ELEM_ACCESS_INACTIVE; in snd_ymfpci_playback_spdif_open()
1076 chip->spdif_pcm_ctl->vd[0].access |= SNDRV_CTL_ELEM_ACCESS_INACTIVE; in snd_ymfpci_playback_spdif_close()
/sound/pci/trident/
Dtrident_main.c1881 trident->spdif_pcm_ctl->vd[0].access &= ~SNDRV_CTL_ELEM_ACCESS_INACTIVE; in snd_trident_spdif_open()
1920 trident->spdif_pcm_ctl->vd[0].access |= SNDRV_CTL_ELEM_ACCESS_INACTIVE; in snd_trident_spdif_close()
2852 kctl->vd[num].access &= ~SNDRV_CTL_ELEM_ACCESS_INACTIVE; in snd_trident_notify_pcm_change1()
2854 kctl->vd[num].access |= SNDRV_CTL_ELEM_ACCESS_INACTIVE; in snd_trident_notify_pcm_change1()
/sound/pci/
Drme32.c879 rme32->spdif_ctl->vd[0].access &= ~SNDRV_CTL_ELEM_ACCESS_INACTIVE; in snd_rme32_playback_spdif_open()
1007 rme32->spdif_ctl->vd[0].access |= SNDRV_CTL_ELEM_ACCESS_INACTIVE; in snd_rme32_playback_close()
Drme96.c1213 rme96->spdif_ctl->vd[0].access &= ~SNDRV_CTL_ELEM_ACCESS_INACTIVE; in snd_rme96_playback_spdif_open()
1336 rme96->spdif_ctl->vd[0].access |= SNDRV_CTL_ELEM_ACCESS_INACTIVE; in snd_rme96_playback_close()
Dvia82xx.c1254 chip->dxs_controls[stream]->vd[0].access &= in snd_via8233_playback_open()
1345 chip->dxs_controls[stream]->vd[0].access |= in snd_via8233_playback_close()
Dcmipci.c1129 ctl->vd[0].access |= SNDRV_CTL_ELEM_ACCESS_INACTIVE; in save_mixer_state()
1158 ctl->vd[0].access &= ~SNDRV_CTL_ELEM_ACCESS_INACTIVE; in restore_mixer_state()
/sound/hda/
Dhdmi_chmap.c842 kctl->vd[i].access |= SNDRV_CTL_ELEM_ACCESS_WRITE; in snd_hdac_add_chmap_ctls()
/sound/pci/emu10k1/
Demupcm.c1038 kctl->vd[idx].access &= ~SNDRV_CTL_ELEM_ACCESS_INACTIVE; in snd_emu10k1_pcm_mixer_notify1()
1040 kctl->vd[idx].access |= SNDRV_CTL_ELEM_ACCESS_INACTIVE; in snd_emu10k1_pcm_mixer_notify1()
/sound/pci/rme9652/
Drme9652.c2292 rme9652->spdif_ctl->vd[0].access &= ~SNDRV_CTL_ELEM_ACCESS_INACTIVE; in snd_rme9652_playback_open()
2309 rme9652->spdif_ctl->vd[0].access |= SNDRV_CTL_ELEM_ACCESS_INACTIVE; in snd_rme9652_playback_release()
/sound/pci/hda/
Dhda_codec.c1928 if (kctl->vd[0].access & SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK) { in init_follower_0dB()
1937 } else if (kctl->vd[0].access & SNDRV_CTL_ELEM_ACCESS_TLV_READ) in init_follower_0dB()
2017 kctl->vd[0].access |= access; in __snd_hda_add_vmaster()

12