/sound/core/ |
D | control.c | 127 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 …]
|
D | control_led.c | 218 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 …]
|
D | vmaster.c | 259 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/ |
D | sigmadsp.c | 142 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/ |
D | wm8776.c | 36 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/ |
D | dummy.c | 839 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/ |
D | cs8427.c | 567 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/ |
D | au88x0_pcm.c | 118 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/ |
D | oxygen_pcm.c | 178 chip->controls[CONTROL_SPDIF_PCM]->vd[0].access &= in oxygen_open() 227 chip->controls[CONTROL_SPDIF_PCM]->vd[0].access |= in oxygen_close()
|
D | xonar_wm87x6.c | 881 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/ |
D | fsl_xcvr.c | 179 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/ |
D | mixer_scarlett_gen2.c | 2074 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()
|
D | mixer_quirks.c | 100 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()
|
D | midi.c | 1094 ctl->vd[0].access |= in substream_open() 1111 ctl->vd[0].access &= in substream_open()
|
D | mixer.c | 1393 kcontrol->vd[0].access &= in mixer_ctl_feature_info() 1798 kctl->vd[0].access |= in __build_feature_ctl()
|
/sound/pci/ymfpci/ |
D | ymfpci_main.c | 402 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/ |
D | trident_main.c | 1881 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/ |
D | rme32.c | 879 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()
|
D | rme96.c | 1213 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()
|
D | via82xx.c | 1254 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()
|
D | cmipci.c | 1129 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/ |
D | hdmi_chmap.c | 842 kctl->vd[i].access |= SNDRV_CTL_ELEM_ACCESS_WRITE; in snd_hdac_add_chmap_ctls()
|
/sound/pci/emu10k1/ |
D | emupcm.c | 1038 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/ |
D | rme9652.c | 2292 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/ |
D | hda_codec.c | 1928 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()
|