Repository navigation
ASoC: SOF: implement polling mode on snd_hdac_bus_get_response and force polling mode on CFL/CNL #963
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
ASoC: SOF: implement polling mode on snd_hdac_bus_get_response and force polling mode on CFL/CNL #963
Changes from all commits
be428f4
1d83d3d
b3db8ee
0fb4128
ab71b50
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -375,6 +375,7 @@ enum { | |
|
|
||
|
Member
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. fix typos/grammar in commit message. We observed the same issue as reported by commit.... |
||
| #define IS_BXT(pci) ((pci)->vendor == 0x8086 && (pci)->device == 0x5a98) | ||
| #define IS_CFL(pci) ((pci)->vendor == 0x8086 && (pci)->device == 0xa348) | ||
| #define IS_CNL(pci) ((pci)->vendor == 0x8086 && (pci)->device == 0x9dc8) | ||
|
|
||
| static char *driver_short_names[] = { | ||
| [AZX_DRIVER_ICH] = "HDA Intel", | ||
|
|
@@ -1700,17 +1701,17 @@ static int azx_create(struct snd_card *card, struct pci_dev *pci, | |
| else | ||
| chip->bdl_pos_adj = bdl_pos_adj[dev]; | ||
|
|
||
| /* Workaround for a communication error on CFL (bko#199007) */ | ||
| if (IS_CFL(pci)) | ||
| chip->polling_mode = 1; | ||
|
|
||
|
Member
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. you should move this first in a separate patch to allow for bisects. |
||
| err = azx_bus_init(chip, model[dev], &pci_hda_io_ops); | ||
| if (err < 0) { | ||
| kfree(hda); | ||
| pci_disable_device(pci); | ||
| return err; | ||
| } | ||
|
|
||
| /* Workaround for a communication error on CFL (bko#199007) and CNL */ | ||
| if (IS_CFL(pci) || IS_CNL(pci)) | ||
| azx_bus(chip)->polling_mode = 1; | ||
|
|
||
| if (chip->driver_type == AZX_DRIVER_NVIDIA) { | ||
| dev_dbg(chip->card->dev, "Enable delay in RIRB handling\n"); | ||
| chip->bus.needs_damn_long_delay = 1; | ||
|
|
||
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.
should be separate patch to mirror the functionality in the legacy code.