summaryrefslogtreecommitdiff
Diffstat
-rw-r--r--audio_hw.c166
-rw-r--r--audio_hw_utils.c4
-rw-r--r--audio_hw_utils.h2
-rw-r--r--audio_hwsync.c83
-rw-r--r--audio_hwsync.h11
5 files changed, 146 insertions, 120 deletions
diff --git a/audio_hw_utils.c b/audio_hw_utils.c
index 5dc53ca..39441af 100644
--- a/audio_hw_utils.c
+++ b/audio_hw_utils.c
@@ -30,11 +30,11 @@
#else
#define LOGFUNC(...) (ALOGD(__VA_ARGS__))
#endif
-int get_sysfs_int16(const char *path, int *value)
+int get_sysfs_uint(const char *path, uint *value)
{
int fd;
char valstr[64];
- int val = 0;
+ uint val = 0;
fd = open(path, O_RDONLY);
if (fd >= 0) {
memset(valstr, 0, 64);