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

Commit ac99132b authored by Divya Narayanan Poojary's avatar Divya Narayanan Poojary
Browse files

hal: Fix compiler enforced warning.

Change-Id: Iba01c73568e341c97bf628271fdade1459127838
parent 1c13f2c0
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -243,6 +243,8 @@ ifeq ($(strip $(AUDIO_FEATURE_ENABLED_AUXPCM_BT)),true)
    LOCAL_CFLAGS += -DAUXPCM_BT_ENABLED
endif

LOCAL_CFLAGS += -Wall -Werror

ifeq ($(strip $(AUDIO_FEATURE_ENABLED_PM_SUPPORT)),true)
    LOCAL_CFLAGS += -DPM_SUPPORT_ENABLED
    LOCAL_SRC_FILES += audio_extn/pm.c
+1 −2
Original line number Diff line number Diff line
/*
 * Copyright (c) 2013-2015, The Linux Foundation. All rights reserved.
 * Copyright (c) 2013-2016 The Linux Foundation. All rights reserved.
 * Not a Contribution.
 *
 * Copyright (C) 2013 The Android Open Source Project
@@ -392,7 +392,6 @@ int audio_extn_get_afe_proxy_parameters(struct str_parms *query,
{
    int ret, val;
    char value[32]={0};
    char *str = NULL;

    ret = str_parms_get_str(query, AUDIO_PARAMETER_CAN_OPEN_PROXY, value,
                            sizeof(value));
+2 −2
Original line number Diff line number Diff line
/*
 * Copyright (c) 2013-2015, The Linux Foundation. All rights reserved.
 * Copyright (c) 2013-2016, The Linux Foundation. All rights reserved.
 * Not a Contribution.
 *
 * Copyright (C) 2013 The Android Open Source Project
@@ -399,7 +399,7 @@ void audio_extn_ds2_set_parameters(struct audio_device *adev,
typedef enum {
    DAP_STATE_ON = 0,
    DAP_STATE_BYPASS,
};
} dap_state;
#ifndef AUDIO_FORMAT_E_AC3_JOC
#define AUDIO_FORMAT_E_AC3_JOC  0x19000000UL
#endif
+3 −3
Original line number Diff line number Diff line
/*
 * Copyright (c) 2013-2014, The Linux Foundation. All rights reserved.
 * Copyright (c) 2013-2014, 2016 The Linux Foundation. All rights reserved.
 * Not a Contribution.
 *
 * Copyright (C) 2013 The Android Open Source Project
@@ -103,7 +103,7 @@ static int32_t fm_set_volume(struct audio_device *adev, float value)

static int32_t fm_stop(struct audio_device *adev)
{
    int32_t i, ret = 0;
    int32_t ret = 0;
    struct audio_usecase *uc_info;

    ALOGD("%s: enter", __func__);
@@ -142,7 +142,7 @@ static int32_t fm_stop(struct audio_device *adev)

static int32_t fm_start(struct audio_device *adev)
{
    int32_t i, ret = 0;
    int32_t ret = 0;
    struct audio_usecase *uc_info;
    int32_t pcm_dev_rx_id, pcm_dev_tx_id;

+3 −3
Original line number Diff line number Diff line
/* hfp.c
Copyright (c) 2012-2014, The Linux Foundation. All rights reserved.
Copyright (c) 2012-2014, 2016 The Linux Foundation. All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
@@ -129,7 +129,7 @@ static int32_t hfp_set_volume(struct audio_device *adev, float value)
static int32_t start_hfp(struct audio_device *adev,
                         struct str_parms *parms __unused)
{
    int32_t i, ret = 0;
    int32_t ret = 0;
    struct audio_usecase *uc_info;
    int32_t pcm_dev_rx_id, pcm_dev_tx_id, pcm_dev_asm_rx_id, pcm_dev_asm_tx_id;

@@ -239,7 +239,7 @@ exit:

static int32_t stop_hfp(struct audio_device *adev)
{
    int32_t i, ret = 0;
    int32_t ret = 0;
    struct audio_usecase *uc_info;

    ALOGD("%s: enter", __func__);
Loading