Lines Matching full:hda
78 /* Defines for Nvidia HDA support */
85 /* Defines for Intel SCH HDA snoop control */
156 MODULE_PARM_DESC(beep_mode, "Select HDA Beep registration mode "
211 MODULE_DESCRIPTION("Intel HDA driver");
340 [AZX_DRIVER_ICH] = "HDA Intel",
341 [AZX_DRIVER_PCH] = "HDA Intel PCH",
342 [AZX_DRIVER_SCH] = "HDA Intel MID",
343 [AZX_DRIVER_SKL] = "HDA Intel PCH", /* kept old name for compatibility */
344 [AZX_DRIVER_HDMI] = "HDA Intel HDMI",
345 [AZX_DRIVER_ATI] = "HDA ATI SB",
346 [AZX_DRIVER_ATIHDMI] = "HDA ATI HDMI",
347 [AZX_DRIVER_ATIHDMI_NS] = "HDA ATI HDMI",
348 [AZX_DRIVER_GFHDMI] = "HDA GF HDMI",
349 [AZX_DRIVER_VIA] = "HDA VIA VT82xx",
350 [AZX_DRIVER_SIS] = "HDA SIS966",
351 [AZX_DRIVER_ULI] = "HDA ULI M5461",
352 [AZX_DRIVER_NVIDIA] = "HDA NVidia",
353 [AZX_DRIVER_TERA] = "HDA Teradici",
354 [AZX_DRIVER_CTX] = "HDA Creative",
355 [AZX_DRIVER_CTHDA] = "HDA Creative",
356 [AZX_DRIVER_CMEDIA] = "HDA C-Media",
357 [AZX_DRIVER_ZHAOXIN] = "HDA Zhaoxin",
358 [AZX_DRIVER_LOONGSON] = "HDA Loongson",
406 /* For NVIDIA HDA, enable snoop */ in azx_init_pci()
614 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in azx_position_check() local
624 schedule_work(&hda->irq_pending_work); in azx_position_check()
687 "hda-intel: zero azx_dev->period_bytes")) in azx_position_ok()
720 struct hda_intel *hda = container_of(work, struct hda_intel, irq_pending_work); in azx_irq_pending_work() local
721 struct azx *chip = &hda->chip; in azx_irq_pending_work()
726 if (!hda->irq_pending_warned) { in azx_irq_pending_work()
730 hda->irq_pending_warned = 1; in azx_irq_pending_work()
916 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in azx_add_card_list() local
918 list_add(&hda->list, &card_list); in azx_add_card_list()
924 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in azx_del_card_list() local
926 list_del_init(&hda->list); in azx_del_card_list()
933 struct hda_intel *hda; in param_set_xint() local
945 list_for_each_entry(hda, &card_list, list) { in param_set_xint()
946 chip = &hda->chip; in param_set_xint()
947 if (!hda->probe_continued || chip->disabled || in param_set_xint()
948 hda->runtime_pm_disabled) in param_set_xint()
962 struct hda_intel *hda; in azx_is_pm_ready() local
967 hda = container_of(chip, struct hda_intel, chip); in azx_is_pm_ready()
968 if (chip->disabled || hda->init_failed || !chip->running) in azx_is_pm_ready()
975 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in __azx_runtime_resume() local
981 if (hda->need_i915_power) in __azx_runtime_resume()
1002 if (!hda->need_i915_power) in __azx_runtime_resume()
1020 /* HDA controller always requires different WAKEEN for runtime suspend in azx_prepare()
1139 struct hda_intel *hda; in azx_runtime_idle() local
1145 hda = container_of(chip, struct hda_intel, chip); in azx_runtime_idle()
1146 if (chip->disabled || hda->init_failed) in azx_runtime_idle()
1180 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in azx_vs_set_state() local
1184 wait_for_completion(&hda->probe_wait); in azx_vs_set_state()
1185 if (hda->init_failed) in azx_vs_set_state()
1192 if (!hda->probe_continued) { in azx_vs_set_state()
1234 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in azx_vs_can_switch() local
1236 wait_for_completion(&hda->probe_wait); in azx_vs_can_switch()
1237 if (hda->init_failed) in azx_vs_can_switch()
1239 if (chip->disabled || !hda->probe_continued) in azx_vs_can_switch()
1248 * The discrete GPU cannot power down unless the HDA controller runtime
1253 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in setup_vga_switcheroo_runtime_pm() local
1256 if (hda->use_vga_switcheroo && !needs_eld_notify_link(chip)) { in setup_vga_switcheroo_runtime_pm()
1278 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in init_vga_switcheroo() local
1284 hda->use_vga_switcheroo = 1; in init_vga_switcheroo()
1304 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in register_vga_switcheroo() local
1308 if (!hda->use_vga_switcheroo) in register_vga_switcheroo()
1317 hda->vga_switcheroo_registered = 1; in register_vga_switcheroo()
1334 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in azx_free() local
1337 if (hda->freed) in azx_free()
1350 hda->init_failed = 1; /* to be sure */ in azx_free()
1351 complete_all(&hda->probe_wait); in azx_free()
1353 if (use_vga_switcheroo(hda)) { in azx_free()
1354 if (chip->disabled && hda->probe_continued) in azx_free()
1356 if (hda->vga_switcheroo_registered) { in azx_free()
1394 hda->freed = 1; in azx_free()
1726 struct hda_intel *hda = container_of(work, struct hda_intel, probe_work.work); in azx_probe_work() local
1727 azx_probe_continue(&hda->chip); in azx_probe_work()
1771 struct hda_intel *hda; in azx_create() local
1781 hda = devm_kzalloc(&pci->dev, sizeof(*hda), GFP_KERNEL); in azx_create()
1782 if (!hda) in azx_create()
1785 chip = &hda->chip; in azx_create()
1797 INIT_WORK(&hda->irq_pending_work, azx_irq_pending_work); in azx_create()
1798 INIT_LIST_HEAD(&hda->list); in azx_create()
1800 init_completion(&hda->probe_wait); in azx_create()
1839 INIT_DELAYED_WORK(&hda->probe_work, azx_probe_work); in azx_create()
2021 strcpy(card->driver, "HDA-Intel"); in azx_first_init()
2079 { PCI_DEVICE_SUB(0x10de, 0x0bea, 0x0000, 0x0000) }, /* NVIDIA GF108 HDA */
2089 /* No HDA in NVIDIA DGPU. BIOS disables it, but quirk_nvidia_hda() reenables. */
2111 struct hda_intel *hda; in azx_probe() local
2160 hda = container_of(chip, struct hda_intel, chip); in azx_probe()
2190 hda->need_i915_power = true; in azx_probe()
2225 schedule_delayed_work(&hda->probe_work, 0); in azx_probe()
2229 complete_all(&hda->probe_wait); in azx_probe()
2256 /* Note the P55A-UD3 and Z87-D3HP share the subsys id for the HDA dev */
2284 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in set_default_power_save() local
2295 hda->runtime_pm_disabled = 1; in set_default_power_save()
2312 struct hda_intel *hda = container_of(chip, struct hda_intel, chip); in azx_probe_continue() local
2318 if (chip->disabled || hda->init_failed) in azx_probe_continue()
2320 if (hda->probe_retry) in azx_probe_continue()
2324 hda->probe_continued = 1; in azx_probe_continue()
2326 /* Request display power well for the HDA controller or codec. For in azx_probe_continue()
2327 * Haswell/Broadwell, both the display HDA controller and codec need in azx_probe_continue()
2364 ++hda->probe_retry < 60) { in azx_probe_continue()
2365 schedule_delayed_work(&hda->probe_work, in azx_probe_continue()
2398 if (!hda->need_i915_power) in azx_probe_continue()
2400 complete_all(&hda->probe_wait); in azx_probe_continue()
2402 hda->probe_retry = 0; in azx_probe_continue()
2410 struct hda_intel *hda; in azx_remove() local
2415 hda = container_of(chip, struct hda_intel, chip); in azx_remove()
2428 cancel_delayed_work_sync(&hda->probe_work); in azx_remove()