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

gh #272 change the correct value for bitwise operation #273

Merged
Merged
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
6 changes: 3 additions & 3 deletions src/test_l1_dsAudio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1851,7 +1851,7 @@ void test_l1_dsAudio_positive_dsSetVolumeLeveller(void)
UT_ASSERT_EQUAL(result, dsERR_NONE);
UT_ASSERT_NOT_EQUAL(handle, null_handle);

if (gDSAudioPortConfiguration[i].ms12_capabilites & 0x04)
if (gDSAudioPortConfiguration[i].ms12_capabilites & 0x08)
{
// Step 03: Set Volume Leveller with valid mode and level for each audio port
// Assuming dsVolumeLeveller_t is a struct or similar with mode and level fields
Expand Down Expand Up @@ -1948,7 +1948,7 @@ void test_l1_dsAudio_negative_dsSetVolumeLeveller(void)
volLeveller.mode = invalid_mode;
volLeveller.level = valid_level;
result = dsSetVolumeLeveller(handle, volLeveller);
if (gDSAudioPortConfiguration[i].ms12_capabilites & 0x04)
if (gDSAudioPortConfiguration[i].ms12_capabilites & 0x08)
{
UT_ASSERT_EQUAL(result, dsERR_INVALID_PARAM);
}
Expand All @@ -1961,7 +1961,7 @@ void test_l1_dsAudio_negative_dsSetVolumeLeveller(void)
volLeveller.mode = valid_mode;
volLeveller.level = invalid_level;
result = dsSetVolumeLeveller(handle, volLeveller);
if (gDSAudioPortConfiguration[i].ms12_capabilites & 0x04)
if (gDSAudioPortConfiguration[i].ms12_capabilites & 0x08)
{
UT_ASSERT_EQUAL(result, dsERR_INVALID_PARAM);
}
Expand Down