-
Notifications
You must be signed in to change notification settings - Fork 140
fixup! ASoC: sof_sdw_rt1308/sof_sdw_rt1316/rt1308-sdw/rt1316-sdw: fix distorted sound #3945
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
fixup! ASoC: sof_sdw_rt1308/sof_sdw_rt1316/rt1308-sdw/rt1316-sdw: fix distorted sound #3945
Conversation
plbossart
left a comment
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.
thanks @shumingfan, I have a couple of nit-picks but also concerns on the error flows, see below.
sound/soc/codecs/rt1308-sdw.h
Outdated
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.
u16
@plbossart Thanks for your review, I will update the PR. |
16aed2d to
f94c98f
Compare
f94c98f to
7e15a7d
Compare
plbossart
left a comment
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.
looks good @shumingfan, now we need to do this for all other SKUs with 4 speakers...
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.
nit-pick: I would have used u8 for consistency with the device property definition but that works.
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.
also maybe move this table to a new file which will only contain coefficients. The C file should be more about the programming sequences, the binary data should be in a separate file IMHO.
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.
Sure, will move it to a separate .h file.
@plbossart I will collect the information from our hardware engineer. If other models need to set BQ parameters, I will add them to PR. |
7e15a7d to
b40a1a7
Compare
|
@plbossart I got the settings of all 4-speakers cases from the Windows team. Some models don't have BQ parameters. |
Makes sense, and that makes our life simpler, we just need to add the quirks for the relevant skus and point to the same table. Thanks for looking into this! |
b40a1a7 to
dec7140
Compare
plbossart
left a comment
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.
Missing SKUs @shumingfan ?
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.
this list needs to be aligned with what we already have in sof_sdw.c, e.g. 0AFF is not listed here.
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.
@plbossart I got the list from the agents. The 0AFF is used in the ADL platform and the model name is Stradale ADL.
The 0BDA/0BDB should be new models. They are used in the RPL platform and the model name is Stradale RPL.
If you want to remove those models for now, it will be ok for me.
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.
I don't think that's quite right @shumingfan, we have not added any RPL devices just yet. @gongjun-song is working on RPL support with PR #3978
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.
@plbossart Yeah, I know. I just follow the list information and the settings of the Windows driver to add those models.
The agents give me the latest list and the Windows team goes faster than Linux.
dec7140 to
3762b34
Compare
If the machine driver level sets the BQ params into the device property, the codec driver will get the BQ params and apply them. Signed-off-by: Shuming Fan <shumingf@realtek.com>
If the machine driver level sets the BQ params into the device property, the codec driver will get the BQ params and apply them. Signed-off-by: Shuming Fan <shumingf@realtek.com>
The Dell SKU 0A5D/0A5E/0990/098F model needs the BQ params for the tweeter/woofer. Signed-off-by: Shuming Fan <shumingf@realtek.com>
The Dell SKU 0B00/0B01/0AFE/0AFF model needs the BQ params for the tweeter/woofer. Signed-off-by: Shuming Fan <shumingf@realtek.com>
3762b34 to
43a60be
Compare
plbossart
left a comment
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.
LGTM @shumingfan can you send this upstream? Feel free to add my
Reviewed-by: Pierre-Louis Bossart pierre-louis.bossart@linux.intel.com
|
closing, this should go upstream now |
@plbossart OK, thanks. I will send this upstream today. |
|
Hi, how could I apply this patch? I tried copying only the modifications and also downloading the modified files but when I compile my kernel, it always fails. Thanks in advance. |
|
Has it already been published? On which version of the kernel? |
|
@JuanFcoMiranda I am not sure what you mean by "published", all patches first go to the ASoC maintainer tree, and they will flow into Linus Torvalds' tree during the merge window. this patch will be in 6.2 which will tentatively be released in 10 weeks or so. |
|
@plbossart I was meant when it would be available in the final release of the kernel. I'll be waiting for that version. Thank you very much. |
Add BQ params into the device property at the machine driver level, then the codec driver will get the BQ params and apply them.
The Dell XPS 17 9710 model needs the BQ params for the tweeter/woofer.
Issue #3896