Skip to content

ASoC: Intel: sof_sdw: add amp number in components string for ucm - #2006

Merged
plbossart merged 1 commit into
thesofproject:topic/sof-devfrom
RanderWang:cfg-amp
Apr 14, 2020
Merged

ASoC: Intel: sof_sdw: add amp number in components string for ucm#2006
plbossart merged 1 commit into
thesofproject:topic/sof-devfrom
RanderWang:cfg-amp

Conversation

@RanderWang

@RanderWang RanderWang commented Apr 10, 2020

Copy link
Copy Markdown

The number of amp codec is different on each sdw platform. Ucm
needs to check amp number to include different config file.

Signed-off-by: randerwang rander.wang@linux.intel.com

bardliao
bardliao previously approved these changes Apr 10, 2020

@bardliao bardliao left a comment

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.

Thanks @RanderWang LGTM.

@plbossart

Copy link
Copy Markdown
Member

@RanderWang do we actually need to add a quirk?
We do need a quirk to figure out if there are 2 or 4 speakers, but the number of amps could come from the code itself. We know that based on the ACPI information.

@RanderWang

Copy link
Copy Markdown
Author

@RanderWang do we actually need to add a quirk?
We do need a quirk to figure out if there are 2 or 4 speakers, but the number of amps could come from the code itself. We know that based on the ACPI information.

yes, good idea! Update my PR, thanks!

@plbossart plbossart left a comment

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.

minor nit-pick on the commit message - but good otherwise

Comment thread sound/soc/intel/boards/sof_sdw.c
The number of speaker amplifiers may vary between platforms. Ucm
needs to check amp number to include different configuration files.
This patch keeps track of the number of speaker amplifiers and
stores it in components string of the card.

Tested on Comet Lake platforms.

Signed-off-by: randerwang <rander.wang@linux.intel.com>
@RanderWang RanderWang changed the title ASoC: Intel: sof_sdw: add amp number in components for ucm ASoC: Intel: sof_sdw: add amp number in components string for ucm Apr 14, 2020
@RanderWang

Copy link
Copy Markdown
Author

@plbossart thanks, update my comments.

@bardliao bardliao left a comment

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.

LGTM

@plbossart plbossart left a comment

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.

thanks @RanderWang

@plbossart
plbossart merged commit a6922c3 into thesofproject:topic/sof-dev Apr 14, 2020
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