OSDN Git Service
(root)
/
android-x86
/
hardware-libhardware.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32450ba
)
Fix build
author
Glenn Kasten
<gkasten@google.com>
Fri, 2 Nov 2012 18:16:13 +0000
(11:16 -0700)
committer
Glenn Kasten
<gkasten@google.com>
Fri, 2 Nov 2012 18:16:13 +0000
(11:16 -0700)
Change-Id: I17094052b67f2069d80ea140442e5a969bd4e96f
modules/audio_remote_submix/audio_hw.cpp
patch
|
blob
|
history
diff --git
a/modules/audio_remote_submix/audio_hw.cpp
b/modules/audio_remote_submix/audio_hw.cpp
index
3756274
..
e9759e5
100755
(executable)
--- 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.