-
Notifications
You must be signed in to change notification settings - Fork 132
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
Conversation
sound/soc/intel/boards/sof_ssp_amp.c
Outdated
/* 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) { |
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.
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.
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.
It's only for code readability and no functional change here. Do you think it's overdesign?
df6ba70
to
6f5d5ca
Compare
upload a new version which only removes dead code |
6f5d5ca
to
cc216b0
Compare
This patch fixes a dead code problem when calculating BE ID for each HDMI-In link. Signed-off-by: Brent Lu <[email protected]>
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.