From 271adfeb17fc72eaf5453dc949f4d29a277a5caa Mon Sep 17 00:00:00 2001 From: thanushreevani <157587255+thanushreevani@users.noreply.github.com> Date: Thu, 12 Dec 2024 14:52:27 +0530 Subject: [PATCH] gh #272 change the correct value for bitwise operation --- src/test_l1_dsAudio.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test_l1_dsAudio.c b/src/test_l1_dsAudio.c index 5acfdaf2..4e44affb 100644 --- a/src/test_l1_dsAudio.c +++ b/src/test_l1_dsAudio.c @@ -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 @@ -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); } @@ -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); }