Skip to content

Commit

Permalink
Merge pull request #273 from rdkcentral/feature/issue272_dsAudio_L1_b…
Browse files Browse the repository at this point in the history
…ug_dsSetVolumeLeveller

gh #272 change the correct value for bitwise operation
  • Loading branch information
hari22yuva authored Dec 17, 2024
2 parents 35f6069 + 271adfe commit 6ee4eae
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit 6ee4eae

Please sign in to comment.