aboutsummaryrefslogtreecommitdiff
path: root/udrv
diff options
context:
space:
mode:
authorPavlin Radoslavov <pavlin@google.com>2017-04-04 11:31:29 -0700
committerAndre Eisenbach <eisenbach@google.com>2017-04-05 00:21:57 +0000
commitb32704f424e0ab4cd33ad670173997f8e3a0a31c (patch)
treeb8615dca2168f1293d3793fd03afa3d9113b5598 /udrv
parente59cbd20e14618888908547d58767aa5fc3b35d7 (diff)
downloadbt-b32704f424e0ab4cd33ad670173997f8e3a0a31c.tar.gz
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
Diffstat (limited to 'udrv')
-rw-r--r--udrv/ulinux/uipc_linux.h34
1 files changed, 0 insertions, 34 deletions
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_ */