summaryrefslogtreecommitdiffstats
path: root/modules/audio_remote_submix
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2012-11-02 11:16:13 -0700
committerGlenn Kasten <gkasten@google.com>2012-11-02 11:16:13 -0700
commit430ac66690359b85ae1b606d12cdc4c22c0d2f61 (patch)
tree58aef9ac2318294f57fd8206a18b1888032e141c /modules/audio_remote_submix
parent32450ba903c601b4f024d33c51e243b1e6605507 (diff)
downloadhardware_libhardware-430ac66690359b85ae1b606d12cdc4c22c0d2f61.zip
hardware_libhardware-430ac66690359b85ae1b606d12cdc4c22c0d2f61.tar.gz
hardware_libhardware-430ac66690359b85ae1b606d12cdc4c22c0d2f61.tar.bz2
Fix build
Change-Id: I17094052b67f2069d80ea140442e5a969bd4e96f
Diffstat (limited to 'modules/audio_remote_submix')
-rwxr-xr-xmodules/audio_remote_submix/audio_hw.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/audio_remote_submix/audio_hw.cpp b/modules/audio_remote_submix/audio_hw.cpp
index 3756274..e9759e5 100755
--- a/modules/audio_remote_submix/audio_hw.cpp
+++ b/modules/audio_remote_submix/audio_hw.cpp
@@ -571,8 +571,7 @@ static int adev_open_output_stream(struct audio_hw_device *dev,
// initialize pipe
{
ALOGV(" initializing pipe");
- const NBAIO_Format format =
- config->sample_rate == 48000 ? Format_SR48_C2_I16 : Format_SR44_1_C2_I16;
+ const NBAIO_Format format = Format_from_SR_C(config->sample_rate, 2);
const NBAIO_Format offers[1] = {format};
size_t numCounterOffers = 0;
// creating a MonoPipe with optional blocking set to true.