Skip to content

Topology: BYT: Adjust SRC pipeline for lower RAM consumption - #2555

Merged
lgirdwood merged 1 commit into
thesofproject:masterfrom
singalsu:byt_tplg_src_lower_ram
Mar 16, 2020
Merged

lgirdwood merged 1 commit into
thesofproject:masterfrom
singalsu:byt_tplg_src_lower_ram

Conversation

@singalsu

@singalsu singalsu commented Mar 16, 2020 •

Copy link
Copy Markdown
Collaborator

This patch removes support for over 48 kHz sample rates and changes
scheduling to every 1 ms to save in buffers sizes. In pipe-pcm-media.m4
the buffers in the pipeline are reduced by one period from 4 to 3.
These changes should allow the media PCM to work in BYT platform.

Signed-off-by: Seppo Ingalsuo seppo.ingalsuo@linux.intel.com

@paulstelian97

Copy link
Copy Markdown
Collaborator

I assume you meant "reduced from 4 to 3" in the commit and PR description, right?

@singalsu

Copy link
Copy Markdown
Collaborator Author

@paulstelian97 Yep. need to re-post this!

@singalsu
singalsu force-pushed the byt_tplg_src_lower_ram branch from ba61211 to 3741d56 Compare March 16, 2020 13:18
@singalsu

Copy link
Copy Markdown
Collaborator Author

I assume you meant "reduced from 4 to 3" in the commit and PR description, right?

Thanks, it's fixed now!

@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.

Some questions below @singalsu

Comment thread tools/topology/sof/pipe-pcm-media.m4 Outdated

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.

comment above seems inconsistent?

@singalsu singalsu Mar 16, 2020 •

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.

I think there was a mistake in topology originally.

There's similar for W_PGA() above but I didn't change it yet. It could be 3, 3 since the buffers are anyway allocated such way. Maybe I should change it too?

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.

yep, please change comment.

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.

It's fixed now. I also changed B0 to 2 periods, no need for 3, and changed for volume component sink to 3 periods to match B1.

Comment thread tools/topology/sof-byt-codec.m4 Outdated

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.

humm, how does removing 96kHz -> 48kHz reduce RAM consumption. It's rather straightforward with a 1/2 ratio and subsampling?
Or did you mean that this included 88.2->48kHz which is indeed useless?
Wondering if the range is the problem, and if we need a discrete set of frequencies instead.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@plbossart I guess because buffering is always 1ms so 96000 -> bigger buffers after src...

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

before src I meant...

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.

Yep, the macro to compute buffer sizes handles this.

Comment thread tools/topology/sof/pipe-pcm-media.m4 Outdated

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.

yep, please change comment.

This patch removes support for over 48 kHz sample rates and changes
scheduling to every 1 ms to save in buffers sizes. In pipe-pcm-media.m4
the buffers in the pipeline are reduced from 4 to 2 or 3 periods.
These changes should allow the media PCM to work in BYT platform.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
@singalsu
singalsu force-pushed the byt_tplg_src_lower_ram branch from 3741d56 to d0e1837 Compare March 16, 2020 16:44
@singalsu
singalsu requested a review from lgirdwood March 16, 2020 16:48

@juimonen juimonen left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

@lgirdwood
lgirdwood merged commit df6c637 into thesofproject:master Mar 16, 2020
@singalsu
singalsu deleted the byt_tplg_src_lower_ram branch August 26, 2022 11:41
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.

5 participants