Skip to content
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: Intel: sof_ssp_amp: remove dead code #4694

Merged
merged 1 commit into from
Nov 10, 2023

Conversation

brentlu
Copy link

@brentlu brentlu commented Nov 9, 2023

To improve code readability, we add a quirk SOF_TOPOLOGY_FIXED_BE_ID for boards which use sof-tgl-rt1308-hdmi-ssp.m4 topology. In the topology, the ID for each BE link is a fixed number.

This also fixes a dead code problem when calulating BE ID for each HDMI-In link.

bardliao
bardliao previously approved these changes Nov 9, 2023
/* this board is using fixed number for each BE ID */
fixed_be = true;
}

/* HDMI-In SSP */
if (sof_ssp_amp_quirk & SOF_SSP_HDMI_CAPTURE_PRESENT) {
Copy link

Choose a reason for hiding this comment

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

Already Based on this condition fixed_be flag has been set and by default it should be false for other platforms. why we need again use one quirk flag to set it. anyhow all HDMI-in capture supported platform uses fixed be because we don't want to change topology and driver for every platform and trying to keep common. Please check and comment.

Copy link
Author

@brentlu brentlu Nov 9, 2023

Choose a reason for hiding this comment

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

It's only for code readability and no functional change here. Do you think it's overdesign?

@brentlu
Copy link
Author

brentlu commented Nov 9, 2023

upload a new version which only removes dead code

@brentlu brentlu changed the title ASoC: Intel: sof_ssp_amp: add quirk for fixed BE ID ASoC: Intel: sof_ssp_amp: remove dead code Nov 9, 2023
@plbossart plbossart requested a review from bardliao November 9, 2023 14:49
This patch fixes a dead code problem when calculating BE ID for each
HDMI-In link.

Signed-off-by: Brent Lu <[email protected]>
@plbossart plbossart merged commit 976fea5 into thesofproject:topic/sof-dev Nov 10, 2023
9 checks passed
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.

4 participants