Skip to content

Conversation

@MrChangMM
Copy link

…ould be a logical AND operation, not a bitwise AND.

…ould be a logical AND operation, not a bitwise AND.
@MrChangMM MrChangMM requested review from a team January 22, 2026 07:01
@quic-aditrath
Copy link
Contributor

quic-aditrath commented Jan 23, 2026

Thanks @MrChangMM for raising the Pull Request and proposing the change 🙌

Please add a Developer Certificate of Origin DCO sign-off line to your commit by committing with the -s or --signoff options.

To keep history readable, it would be really helpful to limit the commit title/subject to ~72 characters and put additional context in the body.

@quic-plai quic-plai changed the title Deep buffer and offload should not be enabled simultaneously; this sh… pal: correct stream type check logic when setting the gain Jan 24, 2026
@quic-plai quic-plai changed the title pal: correct stream type check logic when setting the gain pal: correct logic of stream type check when setting the gain Jan 24, 2026
Copy link

@quic-plai quic-plai left a comment

Choose a reason for hiding this comment

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

Thanks for submitting the fix. It looks good. At the same time, can you edit the commit text like the following. Github does not allow me to edit the commit text.

pal: correct logic of stream type check when setting the gain

Current condition is always evaluated to be true because PAL_STREAM_PCM_OFFLOAD is a non-zero value. Update the condition to ensure gain is set only when stream type is PAL_STREAM_PCM_OFFLOAD or PAL_STREAM_DEEP_BUFFER

… this should be a logical AND operation, not a bitwise AND."

This reverts commit 129ad02.
Change condition to use && and compare PAL_STREAM_PCM_OFFLOAD with sAttr.type so the branch only runs when sAttr.direction is output and sAttr.type is DEEP_BUFFER or PCM_OFFLOAD.
Copy link

@quic-plai quic-plai left a comment

Choose a reason for hiding this comment

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

謝謝新的補丁 但是要通過系統檢查
麻煩您加上 DCO (Developer Certificate of Origin), 請參照以下指令
git commit --amend --signoff

Commit text 每一行最多72個字 格式參照以下
pal: <總結>
<解釋遇見的問題 然後解釋改動>

麻煩 git squash 4個commits成1個commit

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