audio: Updates to comply with standard libhardware_legacy audio hal
Revert back to original libhardware_legacy audio hal headers from AOSP.
This makes corresponding code changes to disable features to match
audio hal implementation with standard libhardware_legacy audio hal.
Change-Id: Ibf1e50d3fffc8280ba417a26172c0f04206474e3
diff --git a/libalsa-intf/aplay.c b/libalsa-intf/aplay.c
index 738ad24..c060277 100644
--- a/libalsa-intf/aplay.c
+++ b/libalsa-intf/aplay.c
@@ -202,6 +202,7 @@
return -EBADFD;
}
+#ifdef QCOM_COMPRESSED_AUDIO_ENABLED
if (compressed) {
struct snd_compr_caps compr_cap;
struct snd_compr_params compr_params;
@@ -229,6 +230,7 @@
return -errno;
}
}
+#endif
pcm->channels = channels;
pcm->rate = rate;
pcm->flags = flags;
@@ -372,6 +374,7 @@
fprintf(stderr, "Aplay:sync_ptr->s.status.hw_ptr %ld sync_ptr->c.control.appl_ptr %ld\n",
pcm->sync_ptr->s.status.hw_ptr,
pcm->sync_ptr->c.control.appl_ptr);
+#ifdef QCOM_COMPRESSED_AUDIO_ENABLED
if (compressed && start) {
struct snd_compr_tstamp tstamp;
if (ioctl(pcm->fd, SNDRV_COMPRESS_TSTAMP, &tstamp))
@@ -379,6 +382,7 @@
else
fprintf(stderr, "timestamp = %lld\n", tstamp.timestamp);
}
+#endif
}
/*
* If we have reached start threshold of buffer prefill,