Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

[NOt to Merge] Enable LOGS #4

Open
wants to merge 1 commit into
base: celadon/r/mr0/stable
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions sound/hda/intel-dsp-config.c
Original file line number Diff line number Diff line change
Expand Up @@ -381,12 +381,13 @@ static int snd_intel_dsp_check_soundwire(struct pci_dev *pci)
int snd_intel_dsp_driver_probe(struct pci_dev *pci)
{
const struct config_entry *cfg;

printk("LOGS_ENABLE Entered func %s\n", __func__);
/* Intel vendor only */
if (pci->vendor != 0x8086)
return SND_INTEL_DSP_DRIVER_ANY;

printk("LOGS_ENABLE dsp_driver value is %d\n", dsp_driver);
if (dsp_driver > 0 && dsp_driver <= SND_INTEL_DSP_DRIVER_LAST)
printk("LOGS_ENABLE dsp_driver IF CASE value is %d\n", dsp_driver);
return dsp_driver;

/*
Expand All @@ -400,9 +401,10 @@ int snd_intel_dsp_driver_probe(struct pci_dev *pci)
return SND_INTEL_DSP_DRIVER_LEGACY;
if (pci->class != 0x040100 && pci->class != 0x040380) {
dev_err(&pci->dev, "Unknown PCI class/subclass/prog-if information (0x%06x) found, selecting HDAudio legacy driver\n", pci->class);
printk("LOGS_ENABLE Entered1 function %s\n", __func__);
return SND_INTEL_DSP_DRIVER_LEGACY;
}

printk("LOGS_ENABLE Entered2 function %s\n", __func__);
dev_info(&pci->dev, "DSP detected with PCI class/subclass/prog-if info 0x%06x\n", pci->class);

/* find the configuration for the specific device */
Expand Down
2 changes: 2 additions & 0 deletions sound/hda/intel-nhlt.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ struct nhlt_acpi_table *intel_nhlt_init(struct device *dev)

status = acpi_get_table(ACPI_SIG_NHLT, 0,
(struct acpi_table_header **)&nhlt);
printk("LOGS_ENABLE Entered function %s\n", __func__);
if (ACPI_FAILURE(status)) {
printk("LOGS_ENABLE Entered1 function %s\n", __func__);
dev_warn(dev, "NHLT table not found\n");
return NULL;
}
Expand Down
1 change: 1 addition & 0 deletions sound/pci/hda/hda_auto_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,7 @@ int snd_hda_parse_pin_defcfg(struct hda_codec *codec,
/*
* debug prints of the parsed results
*/
printk("LOGS_ENABLE Entered func %s\n", __func__);
codec_info(codec, "autoconfig for %s: line_outs=%d (0x%x/0x%x/0x%x/0x%x/0x%x) type:%s\n",
codec->core.chip_name, cfg->line_outs, cfg->line_out_pins[0],
cfg->line_out_pins[1], cfg->line_out_pins[2],
Expand Down
1 change: 1 addition & 0 deletions sound/pci/hda/hda_intel.c
Original file line number Diff line number Diff line change
Expand Up @@ -2122,6 +2122,7 @@ static const struct hda_controller_ops pci_hda_ops = {
static int azx_probe(struct pci_dev *pci,
const struct pci_device_id *pci_id)
{
printk("LOGS_ENABLE Entered func %s\n", __func__);
static int dev;
struct snd_card *card;
struct hda_intel *hda;
Expand Down
1 change: 1 addition & 0 deletions sound/soc/sof/intel/hda.c
Original file line number Diff line number Diff line change
Expand Up @@ -757,6 +757,7 @@ int hda_dsp_probe(struct snd_sof_dev *sdev)
dev_err(sdev->dev, "error: unknown PCI class/subclass/prog-if 0x%06x found, aborting probe\n", pci->class);
return -ENODEV;
}
printk("LOGS_ENABLE Entered function %s\n", __func__);
dev_info(sdev->dev, "DSP detected with PCI class/subclass/prog-if 0x%06x\n", pci->class);

chip = get_chip_info(sdev->pdata);
Expand Down
1 change: 1 addition & 0 deletions sound/soc/sof/sof-pci-dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ static void sof_pci_probe_complete(struct device *dev)
static int sof_pci_probe(struct pci_dev *pci,
const struct pci_device_id *pci_id)
{
printk("LOGS_ENABLE Entered function %s\n", __func__);
struct device *dev = &pci->dev;
const struct sof_dev_desc *desc =
(const struct sof_dev_desc *)pci_id->driver_data;
Expand Down