Skip to content

smart_amp: fix smart amplifier tplg - #3142

Merged
lgirdwood merged 1 commit into
thesofproject:masterfrom
bkokoszx:fix-smart-amp-tplg
Jul 21, 2020
Merged

lgirdwood merged 1 commit into
thesofproject:masterfrom
bkokoszx:fix-smart-amp-tplg

Conversation

@bkokoszx

@bkokoszx bkokoszx commented Jul 7, 2020 •

Copy link
Copy Markdown
Collaborator

This commit changes SSP bclk rate from 9600000 to
12288000 ind ssp container to 32 bits order to fix
glitch issue.

fixes #3092

Signed-off-by: Bartosz Kokoszko bartoszx.kokoszko@linux.intel.com

@bkokoszx
bkokoszx requested review from keqiaozhang and keyonjie July 7, 2020 13:01
@bkokoszx
bkokoszx requested review from ranj063 and xiulipan as code owners July 7, 2020 13:01
@bkokoszx
bkokoszx force-pushed the fix-smart-amp-tplg branch from 4820ff9 to 43ac7af Compare July 7, 2020 13:15
@bkokoszx bkokoszx changed the title smart_amp: fix smart amp amplifier tplg smart_amp: fix smart amplifier tplg Jul 7, 2020
Comment thread tools/topology/sof-smart-amplifier.m4 Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

if we change bitclk to 12.288M, the container size should be changed to 32 correspondingly, @RDharageswari can you help to confirm with @ryans-lee what format should we use?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@keyonjie
One question: if we have 12.288M clock, then we have 12.288M/48k = 256 available bits in frame. If we will use 25 container, we will have: 25 * 8 = 200 bits per frame, so SSP could be configured with 256-200=56 frame end padding. Are you sure that we should change also container size? Why we cannot use configuration with frame end padding?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@keyonjie
I've updated this PR and changed bclk to 12288000 and container to 32 bits. Now, I think, configuration meets codec requirements: bclk/fclk = 256, container is 32 bit.

@lgirdwood
lgirdwood requested a review from plbossart July 8, 2020 12:51
This commit changes SSP bclk rate from 9600000 to
12288000 ind ssp container to 32 bits order to fix
glitch issue.

Signed-off-by: Bartosz Kokoszko <bartoszx.kokoszko@linux.intel.com>
@lgirdwood

Copy link
Copy Markdown
Member

@plbossart any comments on the clock changes ?

@plbossart

Copy link
Copy Markdown
Member

@plbossart any comments on the clock changes ?

Sorry, I didn't see yesterday's comment in #3092 (comment) that this is a hardware requirement, so yes this should be merged.

@lgirdwood

Copy link
Copy Markdown
Member

Lets rerun CI again now that device busy should be fixed.

@lgirdwood

Copy link
Copy Markdown
Member

SOFCI TEST

1 similar comment
@bkokoszx

Copy link
Copy Markdown
Collaborator Author

SOFCI TEST

@lgirdwood

Copy link
Copy Markdown
Member

@aiChaoSONG CI look like a gain issue again. This time too low that resulting in a fail. Again difficult to tell from sof-logger to find the PGAs. https://sof-ci.01.org/sofpr/PR3142/build6658/devicetest/ alsabat on CML fails.

[752494297.500000] (   304956.156250) c0 pga          1.2   ../audio/volume/volume.c:557  volume_ctrl_set_cmd(), channel = 0, value = 13075
[752494303.802083] (        6.302083) c0 pga          1.2   ../audio/volume/volume.c:557  volume_ctrl_set_cmd(), channel = 1, value = 13075
[752538360.989583] (    44057.187500) c0 pga          3.20  ../audio/volume/volume.c:557  volume_ctrl_set_cmd(), channel = 0, value = 13075
[752538367.343750] (        6.354167) c0 pga          3.20  ../audio/volume/volume.c:557  volume_ctrl_set_cmd(), channel = 1, value = 13075
[752542059.479167] (     3692.135498) c0 pga          7.42  ../audio/volume/volume.c:557  volume_ctrl_set_cmd(), channel = 0, value = 13075
[752542065.729167] (        6.250000) c0 pga          7.42  ../audio/volume/volume.c:557  volume_ctrl_set_cmd(), channel = 1, value = 13075
[752545030.937500] (     2965.208252) c0 pga          8.50  ../audio/volume/volume.c:557  volume_ctrl_set_cmd(), channel = 0, value = 13075
[752545037.187500] (        6.250000) c0 pga          8.50  ../audio/volume/volume.c:557  volume_ctrl_set_cmd(), channel = 1, value = 13075

@lgirdwood
lgirdwood merged commit 97377c3 into thesofproject:master Jul 21, 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.

[BUG][TGL]Arecord0,0 sound wav files is not smooth.

4 participants