From 67d3cb6f893219492ce321194255163c7dd82ac0 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Mon, 23 Apr 2018 14:39:58 +0200 Subject: [PATCH] ALSA: Add debug statements --- sound/pci/hda/hda_intel.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index 827834b9c07d..8ebbd4204038 100644 --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c @@ -2138,6 +2138,7 @@ static int azx_probe(struct pci_dev *pci, return -ENOENT; } + pr_info("1"); err = snd_card_new(&pci->dev, index[dev], id[dev], THIS_MODULE, 0, &card); if (err < 0) { @@ -2145,12 +2146,14 @@ static int azx_probe(struct pci_dev *pci, return err; } + pr_info("2"); err = azx_create(card, pci, dev, pci_id->driver_data, &chip); if (err < 0) goto out_free; card->private_data = chip; hda = container_of(chip, struct hda_intel, chip); + pr_info("3"); pci_set_drvdata(pci, card); err = register_vga_switcheroo(chip); @@ -2159,6 +2162,7 @@ static int azx_probe(struct pci_dev *pci, goto out_free; } + pr_info("4"); if (check_hdmi_disabled(pci)) { dev_info(card->dev, "VGA controller is disabled\n"); dev_info(card->dev, "Delaying initialization\n"); @@ -2166,6 +2170,7 @@ static int azx_probe(struct pci_dev *pci, } schedule_probe = !chip->disabled; + pr_info("5"); #ifdef CONFIG_SND_HDA_PATCH_LOADER if (patch[dev] && *patch[dev]) { @@ -2178,6 +2183,8 @@ static int azx_probe(struct pci_dev *pci, goto out_free; schedule_probe = false; /* continued in azx_firmware_cb() */ } + + pr_info("6"); #endif /* CONFIG_SND_HDA_PATCH_LOADER */ #ifndef CONFIG_SND_HDA_I915 @@ -2185,12 +2192,15 @@ static int azx_probe(struct pci_dev *pci, dev_err(card->dev, "Haswell/Broadwell HDMI/DP must build in CONFIG_SND_HDA_I915\n"); #endif + pr_info("7"); if (schedule_probe) schedule_work(&hda->probe_work); dev++; + pr_info("8"); if (chip->disabled) complete_all(&hda->probe_wait); + pr_info("9"); return 0; out_free: -- 2.16.2