From b32704f424e0ab4cd33ad670173997f8e3a0a31c Mon Sep 17 00:00:00 2001 From: Pavlin Radoslavov Date: Tue, 4 Apr 2017 11:31:29 -0700 Subject: Compute the audio data buffer size based on stream characteristics Use the audio data stream characteristics (sample rate, bits per sample, channel mode) to compute the audio stream output buffer size from the Audio A2DP HAL to the Bluetooth stack. Previously, the buffer size was pre-computed based on the original (44.1kHz, 16 bits per sample, Stereo) PCM audio stream used by SBC. NOTE: We cannot change the buffer size on the receiver side (Bluetooth), because SO_RCVBUF option does not have effect for Domain Sockets. Also, removed uipc_linux.h header file, because it is not used. Test: A2DP streaming and switching the codecs, sample rate, bits per sample Bug: 35849921 Change-Id: Ib6772f7564442ac18a02876a5aa5e3208e5aade1 --- udrv/ulinux/uipc_linux.h | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 udrv/ulinux/uipc_linux.h (limited to 'udrv') diff --git a/udrv/ulinux/uipc_linux.h b/udrv/ulinux/uipc_linux.h deleted file mode 100644 index a205675c3..000000000 --- a/udrv/ulinux/uipc_linux.h +++ /dev/null @@ -1,34 +0,0 @@ -/****************************************************************************** - * - * Copyright (C) 2007-2012 Broadcom Corporation - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at: - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * 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. - * - ******************************************************************************/ -#ifndef _UIPC_LINUX_H_ -#define _UIPC_LINUX_H_ - -typedef int SOCKET; -#define INVALID_SOCKET (SOCKET)(-1) -#define SOCKET_ERROR (-1) - -/* tcp/ip socket configuration */ -typedef struct { - char* p_address; - unsigned int port; -} tUIPC_LINUX_CFG_TCP; - -/* Socket configuration for GLGPS interface */ -extern tUIPC_LINUX_CFG_TCP uipc_linux_cfg_glgps; - -#endif /* _UIPC_LINUX_H_ */ -- cgit v1.2.3