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

Commit a328301a authored by Ramjee Singh's avatar Ramjee Singh
Browse files

hal: Fix compiler enforced warning.

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

LOCAL_CFLAGS += -Wall -Werror

LOCAL_COPY_HEADERS_TO   := mm-audio
LOCAL_COPY_HEADERS      := audio_extn/audio_defs.h

+0 −1
Original line number Diff line number Diff line
@@ -447,7 +447,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));
+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
@@ -102,7 +102,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__);
@@ -141,7 +141,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__);
+1 −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.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are
@@ -130,7 +130,6 @@ int audio_hw_call_back(sound_trigger_event_type_t event,

void audio_extn_sound_trigger_stop_lab(struct stream_in *in)
{
    int status = 0;
    struct sound_trigger_info  *st_ses_info = NULL;
    audio_event_info_t event;

@@ -300,7 +299,6 @@ int audio_extn_sound_trigger_init(struct audio_device *adev)
{
    int status = 0;
    char sound_trigger_lib[100];
    void *lib_handle;

    ALOGI("%s: Enter", __func__);

Loading