Lines Matching refs:chip
245 #define azx_get_snoop_type(chip) \
246 (((chip)->driver_caps & AZX_DCAPS_SNOOP_MASK) >> 10)
326 #define use_vga_switcheroo(chip) ((chip)->use_vga_switcheroo)
327 #define needs_eld_notify_link(chip) ((chip)->bus.keep_power)
329 #define use_vga_switcheroo(chip) 0
330 #define needs_eld_notify_link(chip) false
356 static int azx_acquire_irq(struct azx *chip, int do_disconnect);
357 static void set_default_power_save(struct azx *chip);
374 static void azx_init_pci(struct azx *chip)
376 int snoop_type = azx_get_snoop_type(chip);
384 if (!(chip->driver_caps & AZX_DCAPS_NO_TCSEL)) {
385 dev_dbg(chip->card->dev, "Clearing TCSEL\n");
386 update_pci_byte(chip->pci, AZX_PCIREG_TCSEL, 0x07, 0);
393 dev_dbg(chip->card->dev, "Setting ATI snoop: %d\n",
394 azx_snoop(chip));
395 update_pci_byte(chip->pci,
397 azx_snoop(chip) ? ATI_SB450_HDAUDIO_ENABLE_SNOOP : 0);
402 dev_dbg(chip->card->dev, "Setting Nvidia snoop: %d\n",
403 azx_snoop(chip));
404 update_pci_byte(chip->pci,
407 update_pci_byte(chip->pci,
410 update_pci_byte(chip->pci,
418 pci_read_config_word(chip->pci, INTEL_SCH_HDA_DEVC, &snoop);
419 if ((!azx_snoop(chip) && !(snoop & INTEL_SCH_HDA_DEVC_NOSNOOP)) ||
420 (azx_snoop(chip) && (snoop & INTEL_SCH_HDA_DEVC_NOSNOOP))) {
422 if (!azx_snoop(chip))
424 pci_write_config_word(chip->pci, INTEL_SCH_HDA_DEVC, snoop);
425 pci_read_config_word(chip->pci,
428 dev_dbg(chip->card->dev, "SCH snoop: %s\n",
441 static void bxt_reduce_dma_latency(struct azx *chip)
445 val = azx_readl(chip, VS_EM4L);
447 azx_writel(chip, VS_EM4L, val);
459 static int intel_get_lctl_scf(struct azx *chip)
461 struct hdac_bus *bus = azx_bus(chip);
474 dev_warn(chip->card->dev, "set audio clock frequency to 6MHz");
478 static int intel_ml_lctl_set_power(struct azx *chip, int state)
480 struct hdac_bus *bus = azx_bus(chip);
505 static void intel_init_lctl(struct azx *chip)
507 struct hdac_bus *bus = azx_bus(chip);
526 ret = intel_ml_lctl_set_power(chip, 0);
533 val |= intel_get_lctl_scf(chip);
538 intel_ml_lctl_set_power(chip, 1);
542 static void hda_intel_init_chip(struct azx *chip, bool full_reset)
544 struct hdac_bus *bus = azx_bus(chip);
545 struct pci_dev *pci = chip->pci;
549 if (chip->driver_type == AZX_DRIVER_SKL) {
554 azx_init_chip(chip, full_reset);
555 if (chip->driver_type == AZX_DRIVER_SKL) {
565 bxt_reduce_dma_latency(chip);
568 intel_init_lctl(chip);
572 static int azx_get_delay_from_lpib(struct azx *chip, struct azx_dev *azx_dev,
577 unsigned int lpib_pos = azx_get_pos_lpib(chip, azx_dev);
592 dev_info(chip->card->dev,
596 chip->driver_caps &= ~AZX_DCAPS_COUNT_LPIB_DELAY;
597 chip->get_delay[stream] = NULL;
603 static int azx_position_ok(struct azx *chip, struct azx_dev *azx_dev);
606 static int azx_position_check(struct azx *chip, struct azx_dev *azx_dev)
608 struct hda_intel *hda = container_of(chip, struct hda_intel, chip);
611 ok = azx_position_ok(chip, azx_dev);
623 #define display_power(chip, enable) \
624 snd_hdac_display_power(azx_bus(chip), HDA_CODEC_IDX_CONTROLLER, enable)
637 static int azx_position_ok(struct azx *chip, struct azx_dev *azx_dev)
650 if (chip->driver_type == AZX_DRIVER_LOONGSON)
653 wallclk = azx_readl(chip, WALLCLK) - azx_dev->core.start_wallclk;
657 if (chip->get_position[stream])
658 pos = chip->get_position[stream](chip, azx_dev);
660 pos = azx_get_pos_posbuf(chip, azx_dev);
662 dev_info(chip->card->dev,
664 chip->get_position[stream] = azx_get_pos_lpib;
665 if (chip->get_position[0] == azx_get_pos_lpib &&
666 chip->get_position[1] == azx_get_pos_lpib)
667 azx_bus(chip)->use_posbuf = false;
668 pos = azx_get_pos_lpib(chip, azx_dev);
669 chip->get_delay[stream] = NULL;
671 chip->get_position[stream] = azx_get_pos_posbuf;
672 if (chip->driver_caps & AZX_DCAPS_COUNT_LPIB_DELAY)
673 chip->get_delay[stream] = azx_get_delay_from_lpib;
686 return chip->bdl_pos_adj ? 0 : -1;
703 return chip->bdl_pos_adj ? 0 : -1;
715 struct azx *chip = &hda->chip;
716 struct hdac_bus *bus = azx_bus(chip);
721 dev_info(chip->card->dev,
723 chip->card->number);
736 ok = azx_position_ok(chip, azx_dev);
755 static void azx_clear_irq_pending(struct azx *chip)
757 struct hdac_bus *bus = azx_bus(chip);
768 static int azx_acquire_irq(struct azx *chip, int do_disconnect)
770 struct hdac_bus *bus = azx_bus(chip);
772 if (request_irq(chip->pci->irq, azx_interrupt,
773 chip->msi ? 0 : IRQF_SHARED,
774 chip->card->irq_descr, chip)) {
775 dev_err(chip->card->dev,
777 chip->pci->irq);
779 snd_card_disconnect(chip->card);
782 bus->irq = chip->pci->irq;
783 chip->card->sync_irq = bus->irq;
784 pci_intx(chip->pci, !chip->msi);
789 static unsigned int azx_via_get_position(struct azx *chip,
844 static unsigned int azx_get_pos_fifo(struct azx *chip, struct azx_dev *azx_dev)
875 static int azx_get_delay_from_fifo(struct azx *chip, struct azx_dev *azx_dev,
884 static void __azx_shutdown_chip(struct azx *chip, bool skip_link_reset)
886 azx_stop_chip(chip);
888 azx_enter_link_reset(chip);
889 azx_clear_irq_pending(chip);
890 display_power(chip, false);
897 static void azx_shutdown_chip(struct azx *chip)
899 __azx_shutdown_chip(chip, false);
902 static void azx_add_card_list(struct azx *chip)
904 struct hda_intel *hda = container_of(chip, struct hda_intel, chip);
910 static void azx_del_card_list(struct azx *chip)
912 struct hda_intel *hda = container_of(chip, struct hda_intel, chip);
922 struct azx *chip;
931 chip = &hda->chip;
932 if (!hda->probe_continued || chip->disabled)
934 snd_hda_set_power_save(&chip->bus, power_save * 1000);
945 struct azx *chip;
950 chip = card->private_data;
951 hda = container_of(chip, struct hda_intel, chip);
952 if (chip->disabled || hda->init_failed || !chip->running)
957 static void __azx_runtime_resume(struct azx *chip)
959 struct hda_intel *hda = container_of(chip, struct hda_intel, chip);
960 struct hdac_bus *bus = azx_bus(chip);
964 display_power(chip, true);
969 status = azx_readw(chip, STATESTS);
971 azx_init_pci(chip);
972 hda_intel_init_chip(chip, true);
975 if (!chip->pm_prepared) {
976 list_for_each_codec(codec, &chip->bus) {
987 display_power(chip, false);
994 struct azx *chip;
999 chip = card->private_data;
1000 chip->pm_prepared = 1;
1003 flush_work(&azx_bus(chip)->unsol_work);
1014 struct azx *chip;
1019 chip = card->private_data;
1021 chip->pm_prepared = 0;
1027 struct azx *chip;
1033 chip = card->private_data;
1034 bus = azx_bus(chip);
1035 azx_shutdown_chip(chip);
1037 free_irq(bus->irq, chip);
1039 chip->card->sync_irq = -1;
1042 if (chip->msi)
1043 pci_disable_msi(chip->pci);
1045 trace_azx_suspend(chip);
1052 struct azx *chip;
1057 chip = card->private_data;
1058 if (chip->msi)
1059 if (pci_enable_msi(chip->pci) < 0)
1060 chip->msi = 0;
1061 if (azx_acquire_irq(chip, 1) < 0)
1064 __azx_runtime_resume(chip);
1066 trace_azx_resume(chip);
1076 struct azx *chip = card->private_data;
1081 if (chip->driver_type == AZX_DRIVER_SKL)
1090 struct azx *chip = card->private_data;
1095 if (chip->driver_type == AZX_DRIVER_SKL)
1105 struct azx *chip;
1109 chip = card->private_data;
1112 azx_writew(chip, WAKEEN, azx_readw(chip, WAKEEN) | STATESTS_INT_MASK);
1114 azx_shutdown_chip(chip);
1115 trace_azx_runtime_suspend(chip);
1122 struct azx *chip;
1126 chip = card->private_data;
1127 __azx_runtime_resume(chip);
1130 azx_writew(chip, WAKEEN, azx_readw(chip, WAKEEN) & ~STATESTS_INT_MASK);
1132 trace_azx_runtime_resume(chip);
1139 struct azx *chip;
1145 chip = card->private_data;
1146 hda = container_of(chip, struct hda_intel, chip);
1147 if (chip->disabled || hda->init_failed)
1150 if (!power_save_controller || !azx_has_pm_runtime(chip) ||
1151 azx_bus(chip)->codec_powered || !chip->running)
1155 if (needs_eld_notify_link(chip))
1174 #define azx_add_card_list(chip) /* NOP */
1175 #define azx_del_card_list(chip) /* NOP */
1180 static int azx_probe_continue(struct azx *chip);
1189 struct azx *chip = card->private_data;
1190 struct hda_intel *hda = container_of(chip, struct hda_intel, chip);
1199 if (chip->disabled == disabled)
1203 chip->disabled = disabled;
1205 dev_info(chip->card->dev,
1207 if (azx_probe_continue(chip) < 0)
1208 dev_err(chip->card->dev, "initialization error\n");
1211 dev_info(chip->card->dev, "%s via vga_switcheroo\n",
1214 list_for_each_codec(codec, &chip->bus) {
1224 chip->disabled = true;
1225 if (snd_hda_lock_devices(&chip->bus))
1226 dev_warn(chip->card->dev,
1229 snd_hda_unlock_devices(&chip->bus);
1230 chip->disabled = false;
1232 list_for_each_codec(codec, &chip->bus) {
1243 struct azx *chip = card->private_data;
1244 struct hda_intel *hda = container_of(chip, struct hda_intel, chip);
1249 if (chip->disabled || !hda->probe_continued)
1251 if (snd_hda_lock_devices(&chip->bus))
1253 snd_hda_unlock_devices(&chip->bus);
1261 static void setup_vga_switcheroo_runtime_pm(struct azx *chip)
1263 struct hda_intel *hda = container_of(chip, struct hda_intel, chip);
1266 if (hda->use_vga_switcheroo && !needs_eld_notify_link(chip)) {
1267 list_for_each_codec(codec, &chip->bus)
1270 if (chip->running)
1271 set_default_power_save(chip);
1279 struct azx *chip = card->private_data;
1282 chip->bus.keep_power = 0;
1283 setup_vga_switcheroo_runtime_pm(chip);
1286 static void init_vga_switcheroo(struct azx *chip)
1288 struct hda_intel *hda = container_of(chip, struct hda_intel, chip);
1289 struct pci_dev *p = get_bound_vga(chip->pci);
1292 dev_info(chip->card->dev,
1300 chip->bus.keep_power = parent ? !pci_pr3_present(parent) : 1;
1301 chip->driver_caps |= AZX_DCAPS_PM_RUNTIME;
1312 static int register_vga_switcheroo(struct azx *chip)
1314 struct hda_intel *hda = container_of(chip, struct hda_intel, chip);
1321 p = get_bound_vga(chip->pci);
1322 err = vga_switcheroo_register_audio_client(chip->pci, &azx_vs_ops, p);
1332 #define init_vga_switcheroo(chip) /* NOP */
1333 #define register_vga_switcheroo(chip) 0
1335 #define setup_vga_switcheroo_runtime_pm(chip) /* NOP */
1341 static void azx_free(struct azx *chip)
1343 struct pci_dev *pci = chip->pci;
1344 struct hda_intel *hda = container_of(chip, struct hda_intel, chip);
1345 struct hdac_bus *bus = azx_bus(chip);
1350 if (azx_has_pm_runtime(chip) && chip->running) {
1356 chip->running = 0;
1358 azx_del_card_list(chip);
1364 if (chip->disabled && hda->probe_continued)
1365 snd_hda_unlock_devices(&chip->bus);
1367 vga_switcheroo_unregister_client(chip->pci);
1371 azx_clear_irq_pending(chip);
1372 azx_stop_all_streams(chip);
1373 azx_stop_chip(chip);
1377 free_irq(bus->irq, (void*)chip);
1379 azx_free_stream_pages(chip);
1380 azx_free_streams(chip);
1384 release_firmware(chip->fw);
1386 display_power(chip, false);
1388 if (chip->driver_caps & AZX_DCAPS_I915_COMPONENT)
1396 struct azx *chip = device->device_data;
1397 struct hdac_bus *bus = azx_bus(chip);
1399 chip->bus.shutdown = 1;
1526 static int check_position_fix(struct azx *chip, int fix)
1541 q = snd_pci_quirk_lookup(chip->pci, position_fix_list);
1543 dev_info(chip->card->dev,
1550 if (chip->driver_type == AZX_DRIVER_VIA) {
1551 dev_dbg(chip->card->dev, "Using VIACOMBO position fix\n");
1554 if (chip->driver_caps & AZX_DCAPS_AMD_WORKAROUND) {
1555 dev_dbg(chip->card->dev, "Using FIFO position fix\n");
1558 if (chip->driver_caps & AZX_DCAPS_POSFIX_LPIB) {
1559 dev_dbg(chip->card->dev, "Using LPIB position fix\n");
1562 if (chip->driver_type == AZX_DRIVER_SKL) {
1563 dev_dbg(chip->card->dev, "Using SKL position fix\n");
1569 static void assign_position_fix(struct azx *chip, int fix)
1581 chip->get_position[0] = chip->get_position[1] = callbacks[fix];
1585 chip->get_position[1] = NULL;
1588 (chip->driver_caps & AZX_DCAPS_COUNT_LPIB_DELAY)) {
1589 chip->get_delay[0] = chip->get_delay[1] =
1594 chip->get_delay[0] = chip->get_delay[1] =
1623 static void check_probe_mask(struct azx *chip, int dev)
1627 chip->codec_probe_mask = probe_mask[dev];
1628 if (chip->codec_probe_mask == -1) {
1629 q = snd_pci_quirk_lookup(chip->pci, probe_mask_list);
1631 dev_info(chip->card->dev,
1634 chip->codec_probe_mask = q->value;
1639 if (chip->codec_probe_mask != -1 &&
1640 (chip->codec_probe_mask & AZX_FORCE_CODEC_MASK)) {
1641 azx_bus(chip)->codec_mask = chip->codec_probe_mask & 0xff;
1642 dev_info(chip->card->dev, "codec_mask forced to 0x%x\n",
1643 (int)azx_bus(chip)->codec_mask);
1664 static void check_msi(struct azx *chip)
1669 chip->msi = !!enable_msi;
1672 chip->msi = 1; /* enable MSI as default */
1673 q = snd_pci_quirk_lookup(chip->pci, msi_deny_list);
1675 dev_info(chip->card->dev,
1678 chip->msi = q->value;
1683 if (chip->driver_caps & AZX_DCAPS_NO_MSI) {
1684 dev_info(chip->card->dev, "Disabling MSI\n");
1685 chip->msi = 0;
1690 static void azx_check_snoop_available(struct azx *chip)
1695 dev_info(chip->card->dev, "Force to %s mode by module option\n",
1697 chip->snoop = snoop;
1698 chip->uc_buffer = !snoop;
1703 if (azx_get_snoop_type(chip) == AZX_SNOOP_TYPE_NONE &&
1704 chip->driver_type == AZX_DRIVER_VIA) {
1709 pci_read_config_byte(chip->pci, 0x42, &val);
1710 if (!(val & 0x80) && (chip->pci->revision == 0x30 ||
1711 chip->pci->revision == 0x20))
1715 if (chip->driver_caps & AZX_DCAPS_SNOOP_OFF)
1718 chip->snoop = snoop;
1720 dev_info(chip->card->dev, "Force to non-snoop mode\n");
1722 if (chip->driver_type != AZX_DRIVER_CMEDIA)
1723 chip->uc_buffer = true;
1730 azx_probe_continue(&hda->chip);
1733 static int default_bdl_pos_adj(struct azx *chip)
1736 if (chip->pci->vendor == PCI_VENDOR_ID_INTEL) {
1737 switch (chip->pci->device) {
1746 switch (chip->driver_type) {
1775 struct azx *chip;
1788 chip = &hda->chip;
1789 mutex_init(&chip->open_mutex);
1790 chip->card = card;
1791 chip->pci = pci;
1792 chip->ops = &pci_hda_ops;
1793 chip->driver_caps = driver_caps;
1794 chip->driver_type = driver_caps & 0xff;
1795 check_msi(chip);
1796 chip->dev_index = dev;
1798 chip->jackpoll_interval = msecs_to_jiffies(jackpoll_ms[dev]);
1799 INIT_LIST_HEAD(&chip->pcm_list);
1802 init_vga_switcheroo(chip);
1805 assign_position_fix(chip, check_position_fix(chip, position_fix[dev]));
1808 chip->fallback_to_single_cmd = 1;
1810 chip->single_cmd = single_cmd;
1812 azx_check_snoop_available(chip);
1815 chip->bdl_pos_adj = default_bdl_pos_adj(chip);
1817 chip->bdl_pos_adj = bdl_pos_adj[dev];
1819 err = azx_bus_init(chip, model[dev]);
1824 if (!azx_snoop(chip))
1825 azx_bus(chip)->dma_type = SNDRV_DMA_TYPE_DEV_WC_SG;
1827 if (chip->driver_type == AZX_DRIVER_NVIDIA) {
1828 dev_dbg(chip->card->dev, "Enable delay in RIRB handling\n");
1829 chip->bus.core.needs_damn_long_delay = 1;
1832 check_probe_mask(chip, dev);
1834 err = snd_device_new(card, SNDRV_DEV_LOWLEVEL, chip, &ops);
1837 azx_free(chip);
1844 *rchip = chip;
1849 static int azx_first_init(struct azx *chip)
1851 int dev = chip->dev_index;
1852 struct pci_dev *pci = chip->pci;
1853 struct snd_card *card = chip->card;
1854 struct hdac_bus *bus = azx_bus(chip);
1861 if (chip->driver_type == AZX_DRIVER_ULI) {
1872 if (chip->driver_type == AZX_DRIVER_GFHDMI)
1875 if (chip->driver_type == AZX_DRIVER_LOONGSON) {
1888 if (chip->driver_type == AZX_DRIVER_SKL)
1897 chip->gts_present = false;
1901 chip->gts_present = true;
1904 if (chip->msi) {
1905 if (chip->driver_caps & AZX_DCAPS_NO_MSI64) {
1910 chip->msi = 0;
1915 gcap = azx_readw(chip, GCAP);
1919 if (chip->pci->vendor == PCI_VENDOR_ID_AMD)
1923 if (chip->pci->vendor == PCI_VENDOR_ID_ATI) {
1937 if (chip->pci->vendor == PCI_VENDOR_ID_NVIDIA)
1941 if (chip->driver_caps & AZX_DCAPS_NO_64BIT) {
1948 chip->align_buffer_size = !!align_buffer_size;
1950 if (chip->driver_caps & AZX_DCAPS_NO_ALIGN_BUFSIZE)
1951 chip->align_buffer_size = 0;
1953 chip->align_buffer_size = 1;
1966 chip->capture_streams = (gcap >> 8) & 0x0f;
1967 chip->playback_streams = (gcap >> 12) & 0x0f;
1968 if (!chip->playback_streams && !chip->capture_streams) {
1971 switch (chip->driver_type) {
1973 chip->playback_streams = ULI_NUM_PLAYBACK;
1974 chip->capture_streams = ULI_NUM_CAPTURE;
1978 chip->playback_streams = ATIHDMI_NUM_PLAYBACK;
1979 chip->capture_streams = ATIHDMI_NUM_CAPTURE;
1984 chip->playback_streams = ICH6_NUM_PLAYBACK;
1985 chip->capture_streams = ICH6_NUM_CAPTURE;
1989 chip->capture_index_offset = 0;
1990 chip->playback_index_offset = chip->capture_streams;
1991 chip->num_streams = chip->playback_streams + chip->capture_streams;
1994 if (chip->num_streams > 15 &&
1995 (chip->driver_caps & AZX_DCAPS_SEPARATE_STREAM_TAG) == 0) {
1996 dev_warn(chip->card->dev, "number of I/O streams is %d, "
1997 "forcing separate stream tags", chip->num_streams);
1998 chip->driver_caps |= AZX_DCAPS_SEPARATE_STREAM_TAG;
2002 err = azx_init_streams(chip);
2006 err = azx_alloc_stream_pages(chip);
2010 /* initialize chip */
2011 azx_init_pci(chip);
2015 hda_intel_init_chip(chip, (probe_only[dev] & 2) == 0);
2018 if (!azx_bus(chip)->codec_mask) {
2023 if (azx_acquire_irq(chip, 0) < 0)
2027 strscpy(card->shortname, driver_short_names[chip->driver_type],
2041 struct azx *chip = card->private_data;
2044 chip->fw = fw;
2047 if (!chip->disabled) {
2049 azx_probe_continue(chip);
2054 static int disable_msi_reset_irq(struct azx *chip)
2056 struct hdac_bus *bus = azx_bus(chip);
2059 free_irq(bus->irq, chip);
2061 chip->card->sync_irq = -1;
2062 pci_disable_msi(chip->pci);
2063 chip->msi = 0;
2064 err = azx_acquire_irq(chip, 1);
2094 struct azx *chip;
2132 err = azx_create(card, pci, dev, pci_id->driver_data, &chip);
2135 card->private_data = chip;
2136 hda = container_of(chip, struct hda_intel, chip);
2140 err = register_vga_switcheroo(chip);
2149 chip->disabled = true;
2152 schedule_probe = !chip->disabled;
2176 if (chip->disabled)
2229 static void set_default_power_save(struct azx *chip)
2237 q = snd_pci_quirk_lookup(chip->pci, power_save_denylist);
2239 dev_info(chip->card->dev, "device %04x:%04x is on the power_save denylist, forcing power_save to 0\n",
2245 snd_hda_set_power_save(&chip->bus, val * 1000);
2254 static int azx_probe_continue(struct azx *chip)
2256 struct hda_intel *hda = container_of(chip, struct hda_intel, chip);
2257 struct hdac_bus *bus = azx_bus(chip);
2258 struct pci_dev *pci = chip->pci;
2259 int dev = chip->dev_index;
2262 if (chip->disabled || hda->init_failed)
2271 if (chip->driver_caps & AZX_DCAPS_I915_COMPONENT) {
2280 dev_err(chip->card->dev,
2285 chip->driver_caps &= ~AZX_DCAPS_I915_COMPONENT;
2299 display_power(chip, true);
2301 err = azx_first_init(chip);
2306 chip->beep_mode = beep_mode[dev];
2309 chip->ctl_dev_id = ctl_dev_id;
2313 err = azx_probe_codecs(chip, azx_max_codecs[chip->driver_type]);
2319 if (chip->fw) {
2320 err = snd_hda_load_patch(&chip->bus, chip->fw->size,
2321 chip->fw->data);
2325 release_firmware(chip->fw); /* no longer needed */
2326 chip->fw = NULL;
2333 err = azx_codec_configure(chip);
2335 if ((chip->driver_caps & AZX_DCAPS_RETRY_PROBE) &&
2341 dev_err(chip->card->dev, "Cannot probe codecs, giving up\n");
2346 err = snd_card_register(chip->card);
2350 setup_vga_switcheroo_runtime_pm(chip);
2352 chip->running = 1;
2353 azx_add_card_list(chip);
2355 set_default_power_save(chip);
2357 if (azx_has_pm_runtime(chip)) {
2366 snd_card_free(chip->card);
2371 display_power(chip, false);
2381 struct azx *chip;
2386 chip = card->private_data;
2387 hda = container_of(chip, struct hda_intel, chip);
2403 clear_bit(chip->dev_index, probed_devs);
2412 struct azx *chip;
2416 chip = card->private_data;
2417 if (chip && chip->running)
2418 __azx_shutdown_chip(chip, true);
2727 /* this entry seems still valid -- i.e. without emu20kx chip */