spark: use proc_tools

This commit is contained in:
Stefan Seyfried
2013-11-02 20:24:56 +01:00
parent 1311c58e35
commit d94e47c757
2 changed files with 5 additions and 53 deletions

View File

@@ -6,6 +6,8 @@
#include <unistd.h>
#include <linux/dvb/audio.h>
#include <proc_tools.h>
#include "audio_hal.h"
#include "audio_priv.h"
#include "lt_debug.h"
@@ -19,19 +21,6 @@
cAudio * audioDecoder = NULL;
ADec *adec = NULL;
static int proc_put(const char *path, const char *value, const int len)
{
int ret, ret2;
int pfd = open(path, O_WRONLY);
if (pfd < 0)
return pfd;
ret = write(pfd, value, len);
ret2 = close(pfd);
if (ret2 < 0)
return ret2;
return ret;
}
cAudio::cAudio(void *, void *, void *)
{
adec = new ADec();