Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 150
Refine SOF and hda machine driver to make SOF work with hda machine driver#164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
2fc06d1e17f5222d50582ab851fcFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -229,9 +229,9 @@ static int sof_pci_probe(struct pci_dev *pci, | ||
| if (ret < 0) | ||
| goto release_regions; | ||
| #else | ||
| dev_err(dev, "No matching ASoC machine driver found - aborting probe\n"); | ||
| ret = -ENODEV; | ||
| goto release_regions; | ||
| dev_warn(dev, "No matching ASoC machine driver found - falling back to HDA codec\n"); | ||
| mach = snd_soc_acpi_intel_hda_machines; | ||
| mach->sof_fw_filename = desc->nocodec_fw_filename; | ||
| #endif | ||
| } | ||
| #endif | ||
| @@ -245,23 +245,11 @@ static int sof_pci_probe(struct pci_dev *pci, | ||
| priv->sof_pdata = sof_pdata; | ||
| sof_pdata->dev = &pci->dev; | ||
| sof_pdata->type = SOF_DEVICE_PCI; | ||
| /* register machine driver */ | ||
| sof_pdata->pdev_mach = | ||
| platform_device_register_data(dev, mach->drv_name, -1, | ||
| sof_pdata, sizeof(*sof_pdata)); | ||
| if (IS_ERR(sof_pdata->pdev_mach)) { | ||
| ret = PTR_ERR(sof_pdata->pdev_mach); | ||
| goto release_regions; | ||
| } | ||
| dev_dbg(dev, "created machine %s\n", | ||
| dev_name(&sof_pdata->pdev_mach->dev)); | ||
| sof_pdata->platform = "sof-audio"; | ||
| /* register sof-audio platform driver */ | ||
| ret = sof_create_platform_device(priv); | ||
| if (ret) { | ||
| platform_device_unregister(sof_pdata->pdev_mach); | ||
| dev_err(dev, "error: failed to create platform device!\n"); | ||
| goto release_regions; | ||
| } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. please add machine device register change for sof-spi-dev.c also. Author There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. get it | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better to use SND_SOC_SOF_HDA
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
get it