summaryrefslogtreecommitdiffstats
path: root/modules/audio_remote_submix
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2014-03-07 08:26:16 -0800
committerGlenn Kasten <gkasten@google.com>2014-03-07 08:26:16 -0800
commit0538a3e4abac286d94307e9a8a1e20bd9c1d0b64 (patch)
tree25c1cce9f726aec261c84d655dade57d21028e3d /modules/audio_remote_submix
parent84625d92cd645e6167eecde9f70dc3843e41e8c6 (diff)
downloadhardware_libhardware-0538a3e4abac286d94307e9a8a1e20bd9c1d0b64.zip
hardware_libhardware-0538a3e4abac286d94307e9a8a1e20bd9c1d0b64.tar.gz
hardware_libhardware-0538a3e4abac286d94307e9a8a1e20bd9c1d0b64.tar.bz2
NBAIO::Format_from_SR_C requires audio_format_t parameter
Change-Id: I8bdfbd227dbfd4a46eb7ffc82ec7064582a626d0
Diffstat (limited to 'modules/audio_remote_submix')
-rw-r--r--modules/audio_remote_submix/audio_hw.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/audio_remote_submix/audio_hw.cpp b/modules/audio_remote_submix/audio_hw.cpp
index 9df17b6..6b14aa5 100644
--- a/modules/audio_remote_submix/audio_hw.cpp
+++ b/modules/audio_remote_submix/audio_hw.cpp
@@ -566,7 +566,8 @@ static int adev_open_output_stream(struct audio_hw_device *dev,
// initialize pipe
{
ALOGV(" initializing pipe");
- const NBAIO_Format format = Format_from_SR_C(config->sample_rate, 2);
+ const NBAIO_Format format = Format_from_SR_C(config->sample_rate,
+ popcount(config->channel_mask), config->format);
const NBAIO_Format offers[1] = {format};
size_t numCounterOffers = 0;
// creating a MonoPipe with optional blocking set to true.