Repository navigation
ASoC: SDCA: add a function type quirk for TAS2783 on HP OmniBook Ultra 14 (8EB4) #6057
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
base: topic/sof-dev
Are you sure you want to change the base?
Changes from all commits
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 |
|---|---|---|
|
|
@@ -138,8 +138,12 @@ static int find_sdca_function(struct acpi_device *adev, void *data) | |
| fwnode_handle_put(control5); | ||
|
|
||
| if (ret < 0) { | ||
| dev_err(dev, "function type only supported as DisCo constant\n"); | ||
| return ret; | ||
| if (!sdca_device_quirk_match(slave, SDCA_QUIRKS_TAS2783_SMART_AMP_FUNC_TYPE)) { | ||
| dev_err(dev, "function type only supported as DisCo constant\n"); | ||
| return ret; | ||
| } | ||
| dev_warn(dev, FW_BUG "function type not a DisCo constant, assuming SmartAmp\n"); | ||
| function_type = SDCA_FUNCTION_TYPE_SMART_AMP; | ||
|
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. I would be inclined to drop the extra present check and just test for the quirk if the read failed. If it's that laptop we know it needs this, so not sure it really matters if the property is missing or invalid. It would be ideal if we could get HP to push out a firmware fix for this, are the TI guys working on that? But if we really have to do a kernel quirk this is probably the way. 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. @niranjanhyti I think this looks like it needs the same fix as this:
Collaborator
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. +@jimxbj-dot
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. @charleskeepax made the requested code change. |
||
| } | ||
|
|
||
| if (!sdca_device_quirk_match(slave, SDCA_QUIRKS_SKIP_FUNC_TYPE_PATCHING)) { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.