Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aaf5ace8 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "audio: hal: update proper return value"

parents 0759f034 a597a96c
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -33,6 +33,8 @@
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
 */

#define LOG_TAG "audio_hw_primary"
@@ -1909,7 +1911,7 @@ static snd_device_t derive_playback_snd_device(void * platform,

    snd_device_t d1 = uc->out_snd_device;
    snd_device_t d2 = new_snd_device;
    snd_device_t ret = 0;
    int ret = 0;

    list_init(&a1);
    list_init(&a2);
@@ -1930,7 +1932,7 @@ static snd_device_t derive_playback_snd_device(void * platform,
         compare_devices_for_any_match(&a1 ,&a2)) {
        snd_device_t d3[2];
        int num_devices = 0;
        int ret = platform_split_snd_device(platform,
        ret = platform_split_snd_device(platform,
                                            list_length(&a1) > 1 ? d1 : d2,
                                            &num_devices,
                                            d3);
@@ -1976,9 +1978,6 @@ static snd_device_t derive_playback_snd_device(void * platform,
        }
    }

    clear_devices(&a1);
    clear_devices(&a2);

end:
    clear_devices(&a1);
    clear_devices(&a2);