Skip to content

ipc: align stream.h with kernel - #1592

Merged
jajanusz merged 2 commits into
thesofproject:masterfrom
mrajwa:kernel_allign
Jul 24, 2019
Merged

jajanusz merged 2 commits into
thesofproject:masterfrom
mrajwa:kernel_allign

Conversation

@mrajwa

@mrajwa mrajwa commented Jun 26, 2019 •

Copy link
Copy Markdown
Contributor

This change is to align sof_ipc_stream_params with its
kernel equivalent. The change is needed in both kernel
and FW because FW needs to use host_period_bytes which
where previously used to inform host about period IRQ.
Therefore now we introduce new member for it period_irq
and let host_period_bytes keep the proper value.

Corresponding Kernel PR is here thesofproject/linux#1037

Signed-off-by: Marcin Rajwa <marcin.rajwa@linux.intel.com>

Comment thread src/include/ipc/stream.h 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.

It will look nicer if we merge them together.

@mrajwa mrajwa Jun 27, 2019 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sure I can define reserved as uint16_t and make it uint16_t reserved[3]; then remove not_used competely.

Comment thread src/audio/host.c Resolved

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

Comment thread src/include/ipc/stream.h 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.

you also have a comment that needs to be fixed line 93 and in general it helps when you add more details on a boolean. in other places we use no_irq, here it's period_irq so 50% of people will get it wrong :-)

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.

@mrajwa is this now resolved ? We can merge if resolved.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@lgirdwood yes I think we can merge both sides simultaneously.

Comment thread src/audio/host.c Resolved
Comment thread src/audio/host.c Resolved
Comment thread src/include/ipc/stream.h Resolved
mrajwa added 2 commits June 28, 2019 10:34
This change is to align sof_ipc_stream_params with its
kernel equivalent. The change is needed in both kernel
and FW because FW needs to use host_period_bytes which
where previously used to inform host about period IRQ.
Therefore now we introduce new member for it period_irq
and let host_period_bytes keep the proper value.

Signed-off-by: Marcin Rajwa <marcin.rajwa@linux.intel.com>
This patch fixes the incorrect check of period irq in
host_period_bytes.

Signed-off-by: Marcin Rajwa <marcin.rajwa@linux.intel.com>
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.

6 participants