| /linux/sound/hda/core/ |
| H A D | sysfs.c | 15 struct kobject *afg; member 44 CODEC_ATTR(afg); 190 if (nid == codec->afg || nid == codec->mfg) in has_pcm_cap() 222 if (nid != codec->afg && !(snd_hdac_get_wcaps(codec, nid) & AC_WCAP_IN_AMP)) in amp_in_caps_show() 231 if (nid != codec->afg && !(snd_hdac_get_wcaps(codec, nid) & AC_WCAP_OUT_AMP)) in amp_out_caps_show() 240 if (nid != codec->afg && !(snd_hdac_get_wcaps(codec, nid) & AC_WCAP_POWER)) in power_caps_show() 327 free_widget_node(tree->afg, &widget_afg_group); in widget_tree_free() 388 if (codec->afg) { in widget_tree_create() 389 err = add_widget_node(tree->root, codec->afg, in widget_tree_create() 390 &widget_afg_group, &tree->afg); in widget_tree_create()
|
| /linux/sound/hda/codecs/ |
| H A D | senarytech.c | 124 snd_hda_codec_write(codec, codec->core.afg, 0, AC_VERB_SET_GPIO_MASK, in senary_init_gpio_led() 126 snd_hda_codec_write(codec, codec->core.afg, 0, AC_VERB_SET_GPIO_DIRECTION, in senary_init_gpio_led() 128 snd_hda_codec_write(codec, codec->core.afg, 0, AC_VERB_SET_GPIO_DATA, in senary_init_gpio_led()
|
| H A D | sigmatel.c | 293 hda_nid_t fg = codec->core.afg; in stac_gpio_set() 367 if (nid == codec->core.afg && power_state == AC_PWRST_D3) in stac_vref_led_power_filter() 415 !(snd_hda_codec_read(codec, codec->core.afg, 0, in stac_update_outputs() 459 snd_hda_codec_write(codec, codec->core.afg, 0, in stac_toggle_power_map() 491 snd_hda_codec_write(codec, codec->core.afg, 0, in jack_update_power() 501 data = snd_hda_codec_read(codec, codec->core.afg, 0, in stac_vref_event() 504 snd_hda_codec_write(codec, codec->core.afg, 0, 0x7e0, in stac_vref_event() 606 dac_mode = snd_hda_codec_read(codec, codec->core.afg, 0, in stac_aloopback_put() 618 snd_hda_codec_write_cache(codec, codec->core.afg, 0, in stac_aloopback_put() 718 gpio = snd_hda_param_read(codec, codec->core.afg, AC_PAR_GPIO_CAP); in set_hp_led_gpio() [all …]
|
| H A D | ca0132.c | 3838 snd_hda_codec_write(codec, codec->core.afg, 0, in r3di_gpio_mic_set() 3853 snd_hda_codec_write(codec, codec->core.afg, 0, in r3di_gpio_dsp_status_set() 3860 snd_hda_codec_write(codec, codec->core.afg, 0, in r3di_gpio_dsp_status_set() 3867 snd_hda_codec_write(codec, codec->core.afg, 0, in r3di_gpio_dsp_status_set() 4659 gpio_data = snd_hda_codec_read(codec, codec->core.afg, 0, in ca0132_alt_select_out_quirk_set() 4667 snd_hda_codec_write(codec, codec->core.afg, 0, in ca0132_alt_select_out_quirk_set() 8732 snd_hda_codec_write(codec, codec->core.afg, 0, in ca0132_init_chip() 8734 snd_hda_codec_write(codec, codec->core.afg, 0, in ca0132_init_chip()
|
| H A D | via.c | 359 snd_hda_codec_write(codec, codec->core.afg, 0, verb, parm); in __analog_low_current_mode()
|
| H A D | generic.c | 638 if (nid == codec->core.afg) in is_active_nid() 834 if (nid == codec->core.afg) in path_power_update() 4903 if (power_state != AC_PWRST_D0 || nid == codec->core.afg) in snd_hda_gen_path_power_filter()
|
| /linux/sound/hda/common/ |
| H A D | proc.c | 642 param_read(codec, codec->core.afg, AC_PAR_GPIO_CAP); in print_gpio() 757 if (codec->afg) in print_codec_core_info() 781 fg = codec->core.afg; in print_codec_info()
|
| H A D | codec.c | 1000 fg = codec->core.afg ? codec->core.afg : codec->core.mfg; in snd_hda_codec_device_new() 1060 fg = codec->core.afg ? codec->core.afg : codec->core.mfg; in snd_hda_codec_update_widgets() 1259 nid = codec->core.afg; in query_amp_caps() 2726 if (nid == codec->core.afg || nid == codec->core.mfg) in snd_hda_codec_eapd_power_filter() 2747 hda_nid_t fg = codec->core.afg ? codec->core.afg : codec->core.mfg; in hda_set_power_state()
|
| /linux/sound/soc/codecs/ |
| H A D | hdac_hdmi.c | 1531 num_nodes = snd_hdac_get_sub_nodes(hdev, hdev->afg, &nid); in hdac_hdmi_parse_and_map_nid() 1533 dev_warn(&hdev->dev, "HDMI: failed to get afg sub nodes\n"); in hdac_hdmi_parse_and_map_nid() 1948 * Power down afg. in hdac_hdmi_runtime_suspend() 1954 snd_hdac_codec_read(hdev, hdev->afg, 0, AC_VERB_SET_POWER_STATE, in hdac_hdmi_runtime_suspend() 1997 /* Power up afg */ in hdac_hdmi_runtime_resume() 1998 snd_hdac_codec_read(hdev, hdev->afg, 0, AC_VERB_SET_POWER_STATE,
|
| /linux/sound/hda/codecs/realtek/ |
| H A D | realtek.c | 133 snd_hda_codec_write(codec, codec->core.afg, 0, in alc_write_gpio() 135 snd_hda_codec_write(codec, codec->core.afg, 0, in alc_write_gpio()
|
| H A D | alc662.c | 61 if (nid == codec->core.afg && power_state == AC_PWRST_D3 && spec->gpio_data) in gpio_led_power_filter()
|
| H A D | alc269.c | 2123 snd_hda_codec_write_cache(codec, codec->core.afg, 0, in alc280_fixup_hp_gpio2_mic_hotkey() 2125 snd_hda_jack_detect_enable_callback(codec, codec->core.afg, in alc280_fixup_hp_gpio2_mic_hotkey() 2156 snd_hda_codec_write_cache(codec, codec->core.afg, 0, in alc233_fixup_lenovo_gpio2_mic_hotkey() 2158 snd_hda_jack_detect_enable_callback(codec, codec->core.afg, in alc233_fixup_lenovo_gpio2_mic_hotkey()
|
| /linux/include/sound/ |
| H A D | hdaudio.h | 59 hda_nid_t afg; /* AFG node id */ member
|
| /linux/sound/hda/codecs/hdmi/ |
| H A D | hdmi.c | 1574 nodes = snd_hda_get_sub_nodes(codec, codec->core.afg, &start_nid); in snd_hda_hdmi_parse_codec()
|