• Home
  • Raw
  • Download

Lines Matching refs:core

27 #define codec_in_pm(codec)		snd_hdac_is_in_pm(&codec->core)
28 #define hda_codec_is_power_on(codec) snd_hdac_is_power_on(&codec->core)
30 ((codec)->core.power_caps & AC_PWRST_EPSS)
32 ((codec)->core.power_caps & AC_PWRST_CLKSTOP)
40 struct hda_codec *codec = container_of(dev, struct hda_codec, core); in codec_exec_verb()
49 mutex_lock(&bus->core.cmd_mutex); in codec_exec_verb()
52 err = snd_hdac_bus_exec_verb_unlocked(&bus->core, codec->core.addr, in codec_exec_verb()
55 mutex_unlock(&bus->core.cmd_mutex); in codec_exec_verb()
309 parm = snd_hdac_read_parm_uncached(&codec->core, nid, AC_PAR_DEVLIST_LEN); in snd_hda_get_num_devices()
341 if (snd_hdac_read(&codec->core, nid, in snd_hda_get_devices()
421 codec->wcaps = kmalloc_array(codec->core.num_nodes, 4, GFP_KERNEL); in read_widget_caps()
424 nid = codec->core.start_nid; in read_widget_caps()
425 for (i = 0; i < codec->core.num_nodes; i++, nid++) in read_widget_caps()
426 codec->wcaps[i] = snd_hdac_read_parm_uncached(&codec->core, in read_widget_caps()
783 snd_hdac_regmap_exit(&codec->core); in snd_hda_codec_cleanup_for_unbind()
793 snd_hdac_display_power(&codec->bus->core, codec->addr, enable); in codec_display_power()
826 if (codec->core.type == HDA_DEV_LEGACY) in snd_hda_codec_dev_free()
827 snd_hdac_device_unregister(&codec->core); in snd_hda_codec_dev_free()
834 if (codec->core.type == HDA_DEV_LEGACY) in snd_hda_codec_dev_free()
845 snd_hdac_device_exit(&codec->core); in snd_hda_codec_dev_release()
854 if (codec->core.type == HDA_DEV_LEGACY) in snd_hda_codec_dev_release()
879 err = snd_hdac_device_init(&codec->core, &bus->core, name, codec_addr); in snd_hda_codec_device_init()
885 codec->core.type = HDA_DEV_LEGACY; in snd_hda_codec_device_init()
930 codec->core.dev.release = snd_hda_codec_dev_release; in snd_hda_codec_device_new()
931 codec->core.exec_verb = codec_exec_verb; in snd_hda_codec_device_new()
967 fg = codec->core.afg ? codec->core.afg : codec->core.mfg; in snd_hda_codec_device_new()
977 codec->core.dev.power.power_state = PMSG_ON; in snd_hda_codec_device_new()
983 sprintf(component, "HDA:%08x,%08x,%08x", codec->core.vendor_id, in snd_hda_codec_device_new()
984 codec->core.subsystem_id, codec->core.revision_id); in snd_hda_codec_device_new()
1011 err = snd_hdac_refresh_widgets(&codec->core); in snd_hda_codec_update_widgets()
1019 fg = codec->core.afg ? codec->core.afg : codec->core.mfg; in snd_hda_codec_update_widgets()
1217 nid = codec->core.afg; in query_amp_caps()
1266 return snd_hdac_override_parm(&codec->core, nid, parm, caps); in snd_hda_override_amp_caps()
1291 return snd_hdac_regmap_update_raw(&codec->core, cmd, mask, val); in snd_hda_codec_amp_update()
1340 if (!codec->core.regmap) in snd_hda_codec_amp_init()
1342 regcache_cache_only(codec->core.regmap, true); in snd_hda_codec_amp_init()
1344 regcache_cache_only(codec->core.regmap, false); in snd_hda_codec_amp_init()
1788 snd_hdac_device_unregister(&codec->core); in snd_hda_codec_reset()
2279 snd_hdac_regmap_update(&codec->core, nid, AC_VERB_SET_DIGI_CONVERT_1, in set_dig_out()
2285 snd_hdac_regmap_update(&codec->core, *d, in set_dig_out()
2483 snd_hdac_regmap_read(&codec->core, cvt_nid, in snd_hda_create_dig_out_ctls()
2633 snd_hdac_regmap_write(&codec->core, nid, in snd_hda_spdif_in_switch_put()
2648 snd_hdac_regmap_read(&codec->core, nid, in snd_hda_spdif_in_status_get()
2759 if (nid == codec->core.afg || nid == codec->core.mfg) in snd_hda_codec_eapd_power_filter()
2779 hda_nid_t fg = codec->core.afg ? codec->core.afg : codec->core.mfg; in hda_set_power_state()
2878 snd_hdac_enter_pm(&codec->core); in hda_call_codec_suspend()
2884 snd_hdac_leave_pm(&codec->core); in hda_call_codec_suspend()
2893 snd_hdac_enter_pm(&codec->core); in hda_call_codec_resume()
2894 if (codec->core.regmap) in hda_call_codec_resume()
2895 regcache_mark_dirty(codec->core.regmap); in hda_call_codec_resume()
2908 if (codec->core.regmap) in hda_call_codec_resume()
2909 regcache_sync(codec->core.regmap); in hda_call_codec_resume()
2916 codec->core.dev.power.power_state = PMSG_ON; in hda_call_codec_resume()
2917 snd_hdac_leave_pm(&codec->core); in hda_call_codec_resume()
2930 snd_hdac_codec_link_down(&codec->core); in hda_codec_runtime_suspend()
2940 snd_hdac_codec_link_up(&codec->core); in hda_codec_runtime_resume()
3258 codec->core.addr, err); in snd_hda_codec_parse_pcms()
3312 dev, codec->core.addr); in snd_hda_codec_build_pcms()
3355 if (!addr && codec->core.addr) in snd_hda_add_new_ctls()
3356 addr = codec->core.addr; in snd_hda_add_new_ctls()