Minor improvements in the audio HAL
Bug: 157158109
Test: presubmit
Signed-off-by: Roman Kiryanov <rkir@google.com>
Change-Id: I2c7c5e545cef6f37a8a1fc4f3407cec7fd9091f3
Merged-In: I2c7c5e545cef6f37a8a1fc4f3407cec7fd9091f3
diff --git a/audio/device_factory.cpp b/audio/device_factory.cpp
index ccbd7d0..d4e34b6 100644
--- a/audio/device_factory.cpp
+++ b/audio/device_factory.cpp
@@ -14,11 +14,11 @@
* limitations under the License.
*/
+#include <system/audio.h>
+#include <log/log.h>
#include "device_factory.h"
#include "primary_device.h"
#include "debug.h"
-#include <system/audio.h>
-#include <log/log.h>
namespace android {
namespace hardware {
diff --git a/audio/device_port_sink.cpp b/audio/device_port_sink.cpp
index ffc6816..0a34eb2 100644
--- a/audio/device_port_sink.cpp
+++ b/audio/device_port_sink.cpp
@@ -146,6 +146,7 @@
return NullSink::create(cfg, frames);
default:
+ ALOGE("%s:%d unsupported device: %x", __func__, __LINE__, address.device);
return FAILURE(nullptr);
}
}
diff --git a/audio/device_port_source.cpp b/audio/device_port_source.cpp
index 24c3f70..a82d281 100644
--- a/audio/device_port_source.cpp
+++ b/audio/device_port_source.cpp
@@ -269,6 +269,7 @@
RepeatGenerator(generateSinePattern(cfg.sampleRateHz, 440.0, 1.0)));
default:
+ ALOGE("%s:%d unsupported device: %x", __func__, __LINE__, address.device);
return FAILURE(nullptr);
}
}
diff --git a/audio/talsa.cpp b/audio/talsa.cpp
index 29b15ee..12c22b0 100644
--- a/audio/talsa.cpp
+++ b/audio/talsa.cpp
@@ -14,9 +14,9 @@
* limitations under the License.
*/
+#include <log/log.h>
#include "talsa.h"
#include "debug.h"
-#include <log/log.h>
namespace android {
namespace hardware {