diff options
author | Glenn Kasten <gkasten@google.com> | 2012-11-02 11:16:13 -0700 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2012-11-02 11:16:13 -0700 |
commit | 430ac66690359b85ae1b606d12cdc4c22c0d2f61 (patch) | |
tree | 58aef9ac2318294f57fd8206a18b1888032e141c /modules/audio_remote_submix | |
parent | 32450ba903c601b4f024d33c51e243b1e6605507 (diff) | |
download | hardware_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-x | modules/audio_remote_submix/audio_hw.cpp | 3 |
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. |