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

Peter/sof/pr/fw loader min two dble 01 #5180

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion sound/soc/sof/intel/hda-stream.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,14 @@ int hda_dsp_stream_setup_bdl(struct snd_sof_dev *sdev,

period_bytes = hstream->period_bytes;
dev_dbg(sdev->dev, "period_bytes:0x%x\n", period_bytes);
/*
* HDA spec demands at least two 'periods' for the DMA to work correctly
* Note: period_bytes == 0 can only happen for firmware or library
* loading, the binary sizes have the necessary alignment requirements
* met
*/
if (!period_bytes)
period_bytes = hstream->bufsize;
period_bytes = hstream->bufsize / 2;

periods = hstream->bufsize / period_bytes;

Expand Down
Loading