summaryrefslogtreecommitdiff
authorZhe Wang <zhe.wang@amlogic.com>2017-02-24 11:16:14 (GMT)
committer Zhe Wang <zhe.wang@amlogic.com>2017-02-24 11:17:52 (GMT)
commit34d62d4d4e1de910e4d56b0dc2f8f0ff8fdb5910 (patch)
treea200bc11b20d60283a59f2cd810b67abaf7772c3
parent0c1272476ffbbdc20c5238ddf22b12ebc917651e (diff)
downloadaudio-34d62d4d4e1de910e4d56b0dc2f8f0ff8fdb5910.zip
audio-34d62d4d4e1de910e4d56b0dc2f8f0ff8fdb5910.tar.gz
audio-34d62d4d4e1de910e4d56b0dc2f8f0ff8fdb5910.tar.bz2
PD#137760: fixed error merge of 36e70cf30
Change-Id: Ia1097e40f840269ccb08c049b6dd30255c491e07 Signed-off-by: Zhe Wang <zhe.wang@amlogic.com>
Diffstat
-rw-r--r--libTVaudio/audio/android_out.cpp4
-rw-r--r--libTVaudio/audio/android_out.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/libTVaudio/audio/android_out.cpp b/libTVaudio/audio/android_out.cpp
index 9e61156..5ee84a6 100644
--- a/libTVaudio/audio/android_out.cpp
+++ b/libTVaudio/audio/android_out.cpp
@@ -309,3 +309,7 @@ int release_android_audiotrack(void) {
return AudioTrackRelease();
}
+int release_raw_audio_track(void) {
+ amsysfs_set_sysfs_int("/sys/class/audiodsp/digital_codec", 0);
+ return RawAudioTrackRelease();
+}
diff --git a/libTVaudio/audio/android_out.h b/libTVaudio/audio/android_out.h
index 3fbc222..9478d14 100644
--- a/libTVaudio/audio/android_out.h
+++ b/libTVaudio/audio/android_out.h
@@ -8,7 +8,7 @@ extern "C" {
int new_android_audiotrack(void);
int release_android_audiotrack(void);
int amsysfs_get_sysfs_int(const char *path);
-
+int release_raw_audio_track(void);
#ifdef __cplusplus
}