Lines Matching refs:core
22 struct hda_codec *codec = container_of(dev, struct hda_codec, core); in hda_codec_match()
24 container_of(drv, struct hda_codec_driver, core); in hda_codec_match()
27 u32 id = codec->probe_id ? codec->probe_id : codec->core.vendor_id; in hda_codec_match()
32 if (preset->afg && preset->afg != codec->core.afg) in hda_codec_match()
34 if (preset->mfg && preset->mfg != codec->core.mfg) in hda_codec_match()
39 (!preset->rev || preset->rev == codec->core.revision_id)) { in hda_codec_match()
50 struct hda_codec *codec = container_of(dev, struct hda_codec, core); in hda_codec_unsol_event()
60 kfree(codec->core.chip_name); in codec_refresh_name()
61 codec->core.chip_name = kstrdup(name, GFP_KERNEL); in codec_refresh_name()
63 return codec->core.chip_name ? 0 : -ENOMEM; in codec_refresh_name()
78 err = snd_hdac_regmap_init(&codec->core); in hda_codec_driver_probe()
104 codec->core.lazy_cache = true; in hda_codec_driver_probe()
137 drv->core.driver.name = name; in __hda_codec_driver_register()
138 drv->core.driver.owner = owner; in __hda_codec_driver_register()
139 drv->core.driver.bus = &snd_hda_bus_type; in __hda_codec_driver_register()
140 drv->core.driver.probe = hda_codec_driver_probe; in __hda_codec_driver_register()
141 drv->core.driver.remove = hda_codec_driver_remove; in __hda_codec_driver_register()
142 drv->core.driver.shutdown = hda_codec_driver_shutdown; in __hda_codec_driver_register()
143 drv->core.driver.pm = &hda_codec_driver_pm; in __hda_codec_driver_register()
144 drv->core.type = HDA_DEV_LEGACY; in __hda_codec_driver_register()
145 drv->core.match = hda_codec_match; in __hda_codec_driver_register()
146 drv->core.unsol_event = hda_codec_unsol_event; in __hda_codec_driver_register()
147 return driver_register(&drv->core.driver); in __hda_codec_driver_register()
153 driver_unregister(&drv->core.driver); in hda_codec_driver_unregister()
166 request_module("snd-hda-codec-id:%08x", codec->core.vendor_id); in codec_bind_module()
170 (codec->core.vendor_id >> 16) & 0xffff); in codec_bind_module()
248 err = snd_hdac_device_register(&codec->core); in snd_hda_codec_configure()
263 if (codec->core.afg || !*codec->card->mixername) in snd_hda_codec_configure()
266 codec->core.vendor_name, codec->core.chip_name); in snd_hda_codec_configure()
270 snd_hdac_device_unregister(&codec->core); in snd_hda_codec_configure()