From patchwork Fri Feb 7 01:01:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Stultz X-Patchwork-Id: 183134 Delivered-To: patches@linaro.org Received: by 2002:a92:1f12:0:0:0:0:0 with SMTP id i18csp104315ile; Thu, 6 Feb 2020 17:01:57 -0800 (PST) X-Received: by 2002:a17:90a:9416:: with SMTP id r22mr750000pjo.2.1581037317593; Thu, 06 Feb 2020 17:01:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581037317; cv=none; d=google.com; s=arc-20160816; b=MlH68/H3FiXgMJQzYNSjJ66Ij9mBJZaIKmuXPBk7HJEPqqzEZxCmuCk7ySNvmL+KQu aBdptBkB0U/kLgPy8a+Vcmp8v1y4vBKQgm2vJz5h8f6UT3BLeD5fFE126o8uOEgHcj2i VBz8BMiDBtC6WbK3y1zcnO8EgGwYWjJVIMQ6tJPRk70ePWwx2qNEqgOKj1DJF94FGgFH /8tb1nZT2a2gC8+YFfNMQ7j1XAhuBVOhftiUIQe0DjmYAn58WpFTPE5icdJRHDOrWbHv ksM2lgnehalDxWRnI+j1ksUVK6nVzH9wA3isncVTQpJO8vKbMn79LutBi1aBf7XYkir7 FWxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:dkim-signature; bh=wgOZgt2lXigNC+SerNrxS4s5NmhZwjDG5LXm11huy9M=; b=uoVWyc3FT6M4VCNr6Flz0S2RHHy4ZyUSrPQo3lnNxZ54R2c5cGQhCLAanviyYbWD5L 5+GYMicbB/7d+nlJq3KJv+ZkJtJvBF9O2DmFzAIRqr3kPdBqMLCWnaaoR/OXo6ZSxHoT t7mXtkiKbYdcahD/3Q0hOFoCv7p4yaUWTVzNaf/5/RpNs2bPBYW2ovd01Vv6wZKCtuKv I16JLSWAm6J7tYEdc4PjVN7FfRNlZQCeOTE6lBi7eFH+Lsw/7u8xIuQo4QZGj6Omwqb6 nztSoJ0ti9g7tord/YVLf2rgDnf24tPPaAtM1j+mGI95UqmiI+WkJKCOhIhE0dEZIDBT ebvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=g3YlWKn7; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id u22sor5510824pjx.17.2020.02.06.17.01.57 for (Google Transport Security); Thu, 06 Feb 2020 17:01:57 -0800 (PST) Received-SPF: pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=g3YlWKn7; spf=pass (google.com: domain of john.stultz@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=john.stultz@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=wgOZgt2lXigNC+SerNrxS4s5NmhZwjDG5LXm11huy9M=; b=g3YlWKn76MMAaNtgDUP/Va+FEJkDIjeQb59NTLYaftv/FT+uqBT13vO83dAMEstKqA 6xWr+Adk6+QjLWkt2ccLZikeWJiQ6VPzwuurOh8XXzWDSugPvWriCrRpVW6iy3Efckau TmFTnI3AfdTiN4PIvdUdS0DLDb54+mE0vEcVk62+IbTWbYBNbtd9CX1mtXwPRHsBnUp+ GX724l0ZzJE6trZQX1GaYFmaPAlKz40oyqSEvrBJQeED9k6rTt7LaFYoijHFMeWk2lr1 umM1xGmUbtvQxDyFgpKBVYNRsX/00GxK7w0ov0wn3CFrs+qrTmQsfYhoDQ6BSkqxEszn GpVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=wgOZgt2lXigNC+SerNrxS4s5NmhZwjDG5LXm11huy9M=; b=Wu/29CLFGEQZKfhmYNXVY3C9jHAAR6qQCK9H2XRq2Y8oaWLrxljyZA1BjNgzlF06Hh M5aVBCWPGSndlPF+wORy67IWhX7n9Z3apqL6f+ZJDVbYSIOSwuWs8cMDdueZ6iZ3ytU5 4Ldy2vQKM0CBCmtJnyUllpXx9AarKWxtudNANls/dYdNLN7Jj6l/v/bIhamC5YWYqRAe rFV2L/NmqcLof6L+6pMoNufLVvWDB3+QBBP+Ep3p48g2F1RH3CIBCikL1/J4MDHVjPrq T6Xi+e/5UVmdlirFtX+O+HUu7WTej2xP61+OPk1wrkBDREygfQMeYfC3MyZ1RR2jrjT5 OV/g== X-Gm-Message-State: APjAAAXmS1hyC3uKCz4XOtUAvlkm9fdvo8HmBr+fISIeNwfrbRyrgH3a h/hLv/mGoxNdGXGAOFJhSSDIkpFcI0KcJg== X-Google-Smtp-Source: APXvYqzMTJs1kbdZ3p7aKC8m/MT1Ptv8iCidjmc1k5tJ8oiRr7aNMnL8AlkCU6UEQwGz8vHYmU7oFw== X-Received: by 2002:a17:90a:ca12:: with SMTP id x18mr715201pjt.66.1581037317124; Thu, 06 Feb 2020 17:01:57 -0800 (PST) Return-Path: Received: from localhost.localdomain ([2601:1c2:680:1319:692:26ff:feda:3a81]) by smtp.gmail.com with ESMTPSA id y2sm571912pff.139.2020.02.06.17.01.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Feb 2020 17:01:56 -0800 (PST) From: John Stultz To: Amit Pundir Cc: John Stultz Subject: [PATCH] WIP: Trying to align audio config with hikey for btaudio Date: Fri, 7 Feb 2020 01:01:54 +0000 Message-Id: <20200207010154.101101-1-john.stultz@linaro.org> X-Mailer: git-send-email 2.17.1 So far doesn't work Change-Id: Ic195d4a360fb2ef9d4bd68c14d2c213b6a28bc9e Signed-off-by: John Stultz --- audio/Android.mk | 3 +-- audio/audio_hw.c | 2 +- etc/audio_policy_configuration.xml | 3 +++ ...udio_policy_configuration_bluetooth_legacy_hal.xml | 3 --- manifest.xml | 11 ++++++++++- 5 files changed, 15 insertions(+), 7 deletions(-) -- 2.17.1 diff --git a/audio/Android.mk b/audio/Android.mk index afa804f..108985a 100644 --- a/audio/Android.mk +++ b/audio/Android.mk @@ -24,8 +24,7 @@ include $(CLEAR_VARS) LOCAL_HEADER_LIBRARIES += libhardware_headers LOCAL_MODULE := audio.primary.$(TARGET_BOARD_PLATFORM) -LOCAL_MODULE_PATH_32 := $(TARGET_OUT_VENDOR)/lib/hw -LOCAL_MODULE_PATH_64 := $(TARGET_OUT_VENDOR)/lib64/hw +LOCAL_MODULE_RELATIVE_PATH := hw LOCAL_VENDOR_MODULE := true LOCAL_SRC_FILES := audio_hw.c diff --git a/audio/audio_hw.c b/audio/audio_hw.c index d601ea8..689e112 100644 --- a/audio/audio_hw.c +++ b/audio/audio_hw.c @@ -52,7 +52,7 @@ /* number of frames per short period (low latency) */ #define PERIOD_SIZE (CODEC_BASE_FRAME_COUNT * PERIOD_MULTIPLIER) /* number of pseudo periods for low latency playback */ -#define PLAYBACK_PERIOD_COUNT 2 +#define PLAYBACK_PERIOD_COUNT 4 #define PLAYBACK_PERIOD_START_THRESHOLD 2 #define CODEC_SAMPLING_RATE 48000 #define CHANNEL_STEREO 2 diff --git a/etc/audio_policy_configuration.xml b/etc/audio_policy_configuration.xml index c94718e..114db1a 100644 --- a/etc/audio_policy_configuration.xml +++ b/etc/audio_policy_configuration.xml @@ -83,6 +83,9 @@ + + + diff --git a/etc/audio_policy_configuration_bluetooth_legacy_hal.xml b/etc/audio_policy_configuration_bluetooth_legacy_hal.xml index 2d2eca8..7bbcb34 100644 --- a/etc/audio_policy_configuration_bluetooth_legacy_hal.xml +++ b/etc/audio_policy_configuration_bluetooth_legacy_hal.xml @@ -86,9 +86,6 @@ - - - diff --git a/manifest.xml b/manifest.xml index 2342860..de4e622 100644 --- a/manifest.xml +++ b/manifest.xml @@ -63,7 +63,7 @@ android.hardware.soundtrigger - hwbinder + passthrough 2.0 ISoundTriggerHw @@ -97,6 +97,15 @@ default + + android.hardware.bluetooth.audio + hwbinder + 2.0 + + IBluetoothAudioProvidersFactory + default + + android.hardware.wifi.supplicant hwbinder