Home
last modified time | relevance | path

Searched refs:hook (Results 1 – 9 of 9) sorted by relevance

/sound/core/
Dvmaster.c40 void (*hook)(void *private_data, int); member
131 if (master->hook) in master_init()
132 master->hook(master->hook_private_data, master->val); in master_init()
339 if (master->hook && !err) in master_put()
340 master->hook(master->hook_private_data, master->val); in master_put()
434 void (*hook)(void *private_data, int), in snd_ctl_add_vmaster_hook()
438 master->hook = hook; in snd_ctl_add_vmaster_hook()
458 if (master->hook) in snd_ctl_sync_vmaster_hook()
459 master->hook(master->hook_private_data, master->val); in snd_ctl_sync_vmaster_hook()
/sound/pci/hda/
Dhda_codec.c2735 struct hda_vmaster_mute_hook *hook = snd_kcontrol_chip(kcontrol); in vmaster_mute_mode_get() local
2736 ucontrol->value.enumerated.item[0] = hook->mute_mode; in vmaster_mute_mode_get()
2743 struct hda_vmaster_mute_hook *hook = snd_kcontrol_chip(kcontrol); in vmaster_mute_mode_put() local
2744 unsigned int old_mode = hook->mute_mode; in vmaster_mute_mode_put()
2746 hook->mute_mode = ucontrol->value.enumerated.item[0]; in vmaster_mute_mode_put()
2747 if (hook->mute_mode > HDA_VMUTE_FOLLOW_MASTER) in vmaster_mute_mode_put()
2748 hook->mute_mode = HDA_VMUTE_FOLLOW_MASTER; in vmaster_mute_mode_put()
2749 if (old_mode == hook->mute_mode) in vmaster_mute_mode_put()
2751 snd_hda_sync_vmaster_hook(hook); in vmaster_mute_mode_put()
2769 struct hda_vmaster_mute_hook *hook, in snd_hda_add_vmaster_hook() argument
[all …]
Dhda_local.h165 void (*hook)(void *, int); member
172 struct hda_vmaster_mute_hook *hook,
174 void snd_hda_sync_vmaster_hook(struct hda_vmaster_mute_hook *hook);
Dpatch_realtek.c2764 spec->gen.vmaster_mute.hook = alc269_fixup_mic_mute_hook; in alc269_fixup_hp_mute_led()
2779 spec->gen.vmaster_mute.hook = alc269_fixup_mic_mute_hook; in alc269_fixup_hp_mute_led_mic1()
2791 spec->gen.vmaster_mute.hook = alc269_fixup_mic_mute_hook; in alc269_fixup_hp_mute_led_mic2()
2843 spec->gen.vmaster_mute.hook = alc269_fixup_hp_gpio_mute_hook; in alc269_fixup_hp_gpio_led()
Dhda_generic.c946 return spec->vmaster_mute.hook ? "PCM" : "Master"; in get_line_out_pfx()
953 return spec->vmaster_mute.hook ? "PCM" : "Master"; in get_line_out_pfx()
4386 if (spec->vmaster_mute.hook) in snd_hda_gen_build_controls()
5119 if (spec->vmaster_mute.sw_kctl && spec->vmaster_mute.hook) in snd_hda_gen_init()
Dpatch_analog.c2126 spec->gen.vmaster_mute.hook = ad_vmaster_eapd_hook; in ad1981_fixup_hp_eapd()
3610 spec->gen.vmaster_mute.hook = ad_vmaster_eapd_hook; in ad1884_fixup_hp_eapd()
Dpatch_conexant.c3363 spec->gen.vmaster_mute.hook = cx_auto_vmaster_hook; in patch_conexant_auto()
Dpatch_sigmatel.c3588 spec->gen.vmaster_mute.hook = stac_vmaster_hook; in stac_parse_auto_config()
/sound/soc/codecs/
D88pm860x-codec.c1312 int det, int hook, int hs_shrt, int lo_shrt) in pm860x_hs_jack_detect() argument
1319 pm860x->det.hook_det = hook; in pm860x_hs_jack_detect()