From 84abafaf65eecaea8209be9ba7249afc95e82fe4 Mon Sep 17 00:00:00 2001 From: Iliyan Malchev Date: Mon, 9 Nov 2009 15:53:30 -0800 Subject: [PATCH] libaudio-qsd8k: update a1026.h header and improve firmware-loading code -- new a1026.h kernel header that contains just the user-space API and is sanitized through bionic/libc/kernel/tools/clean_header.py -- AudioHardware.cpp: -- replace vr_mode with vr_mode_enabled, and use 0 and 1 instead of A1026_VR_MODE_DISABLED/ENABLED, which is not defined in the kernel header; -- in doA1026_init(), replace a fread() of 1 byte with a read that as much as possible from the firmware file in as few as possible passes before we call into the kernel -- Replace the size of the on-stack f/w buffer with A1026_MAX_FW_SIZE, which now comes from the kernel header -- Fix up some signed-unsigned comparison warnings on mBluetoothIdTx Signed-off-by: Iliyan Malchev