From 31ba05b3450555e1ec1c0ece1ee54c4b9c3b7b7b Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Mon, 8 Dec 2014 19:01:39 -0800 Subject: [PATCH] Hdmi: Remove unused variables and functions For build-system CFLAGS clean-up, remove unused variables and functions. Bug: 18632512 Change-Id: Ie76f7c8c2eb0a4eafc638c7ea2c334afabe68b38 --- hdmi/tinyaudio_hw.c | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/hdmi/tinyaudio_hw.c b/hdmi/tinyaudio_hw.c index 23b71cb..4aaf6f7 100644 --- a/hdmi/tinyaudio_hw.c +++ b/hdmi/tinyaudio_hw.c @@ -180,30 +180,15 @@ static enum pcm_format Get_SinkSupported_format() return PCM_FORMAT_S24_LE; } -static int format_to_bits(enum pcm_format pcmformat) -{ - switch (pcmformat) { - case PCM_FORMAT_S32_LE: - return 32; - case PCM_FORMAT_S24_LE: - return 24; - default: - case PCM_FORMAT_S16_LE: - return 16; - }; -} - static int make_sinkcompliant_buffers(void* input, void *output, int ipbytes) { int i = 0,outbytes = 0; - enum pcm_format in_pcmformat; enum pcm_format out_pcmformat; int *src = (int*)input; int *dst = (int*)output; /*by default android currently support only 16 bit signed PCM*/ - in_pcmformat = PCM_FORMAT_S16_LE; out_pcmformat = Get_SinkSupported_format(); switch (out_pcmformat) { @@ -239,7 +224,6 @@ static int make_sinkcompliant_buffers(void* input, void *output, int ipbytes) static int start_output_stream(struct stream_out *out) { struct audio_device *adev = out->dev; - int hdmicard = 0; ALOGV("%s enter",__func__); @@ -396,7 +380,6 @@ static int out_set_parameters(struct audio_stream *stream, const char *kvpairs) struct str_parms *parms; char value[32]; int ret; - int routing = 0; ALOGV("%s enter",__func__); parms = str_parms_create_str(kvpairs); @@ -923,8 +906,6 @@ static int adev_dump(const audio_hw_device_t *device, int fd) static int adev_close(hw_device_t *device) { - struct audio_device *adev = (struct audio_device *)device; - free(device); return 0; } @@ -933,7 +914,6 @@ static int adev_open(const hw_module_t* module, const char* name, hw_device_t** device) { struct audio_device *adev; - int ret; ALOGV("%s enter",__func__); -- 2.11.0