Skip to content

ASoC: Intel: soc-acpi-intel-arl-match: Add rt722 and rt1320 support#5187

Merged
bardliao merged 3 commits into
thesofproject:topic/sof-devfrom
macchian:sof-dev-20240809
Oct 21, 2024
Merged

ASoC: Intel: soc-acpi-intel-arl-match: Add rt722 and rt1320 support#5187
bardliao merged 3 commits into
thesofproject:topic/sof-devfrom
macchian:sof-dev-20240809

Conversation

@macchian
Copy link
Copy Markdown

This patch adds support for the rt722 multi-function codec and the rt1320 amplifier in the ARL board configuration.

Link 0: RT722 codec with three endpoints: Headset, Speaker, and DMIC.
Link 2: RT1320 amplifier.

Note:
The Speaker endpoint on the RT722 codec is not used.

.aggregated = 0,
.group_position = 0,
.group_id = 0,
},
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to remove the Speaker endpoint if it is not used.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, but there's no way to know is the speaker on the RT1320 is the only one in the system, or if it's used as a companion to that of the RT722.

The notion of endpoint was already not super useful and mostly introduced as a way to predict the future with audio composition, but it's already obsolete in that endpoints are now optional.... We'd need to check if the functions are described in ACPI for sure.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@plbossart Can you take a look at #5188?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@charleskeepax has a good suggestion on #5186 that can make a DAI be optional and present by default.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@charleskeepax has a good suggestion on #5186 that can make a DAI be optional and present by default.

@bardliao, thank you for your advice. By referencing @charleskeepax #5186 suggestion on cs42l43, I could apply the quirk_exclude codes into RT722 as a short-term once #5186 merged. In the end, #5188 implementing the "endpoints present by sdca acpi function" will be a final solution afterwards.

@bardliao bardliao requested a review from shumingfan September 23, 2024 11:26
@macchian macchian marked this pull request as ready for review October 11, 2024 09:14
@bardliao
Copy link
Copy Markdown
Collaborator

LGTM. But the commits should re-order. ASoC: sdw_utils: Add quirk to exclude amplifier function should be the first commit. Also, please mention rt721 in the commit message.

@macchian macchian force-pushed the sof-dev-20240809 branch 2 times, most recently from f078921 to 504bfc3 Compare October 14, 2024 04:12
@macchian
Copy link
Copy Markdown
Author

LGTM. But the commits should re-order. ASoC: sdw_utils: Add quirk to exclude amplifier function should be the first commit. Also, please mention rt721 in the commit message.

@bardliao ,thanks for your comments. Done.

@macchian macchian requested a review from bardliao October 15, 2024 02:36
Comment thread sound/soc/sdw_utils/soc_sdw_utils.c Outdated
When SKUs use the multi-function codec, which integrates
Headset, Amplifier and DMIC. The corresponding quirks provide
options to support internal amplifier/DMIC or not.

In the case of RT722, this SKU excludes the internal amplifier and
use an additional amplifier instead.

Signed-off-by: Mac Chiang <mac.chiang@intel.com>
This patch adds a quirk to include the codec amplifier
function for this Dell SKU.

Note: In this SKU '0CF0', the RT722 codec amplifier is
excluded, and an external amplifier is used instead.

Signed-off-by: Mac Chiang <mac.chiang@intel.com>
This patch adds support for the rt722 multi-function codec and the
rt1320 amplifier in the ARL board configuration.

Link 0: RT722 codec with three endpoints: Headset, Speaker, and DMIC.
Link 2: RT1320 amplifier.

Note:
The Speaker endpoint on the RT722 codec is not used.

Signed-off-by: Mac Chiang <mac.chiang@intel.com>
@macchian
Copy link
Copy Markdown
Author

These PRs has been verified on board. We can merge now.

@bardliao bardliao merged commit 9ecba28 into thesofproject:topic/sof-dev Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants