36#ifndef __INCLUDE_AUDIOLITE_AUDIODRV_H
37#define __INCLUDE_AUDIOLITE_AUDIODRV_H
43#include <nuttx/config.h>
47#include <mossfw/mossfw_lock.h>
53#define ALDRV_MODE_OUTPUT (1)
54#define ALDRV_MODE_INPUT (2)
68 virtual void on_pusheddata(FAR
struct ap_buffer_s *apb) = 0;
69 virtual void on_popeddata(FAR
struct ap_buffer_s *apb) = 0;
70 virtual void on_stopped(
void) = 0;
71 virtual void on_overflowed(
void) = 0;
72 virtual void on_underflowed(
void) = 0;
98 void cleanup_messageq();
99 int update_audioparam();
100 int stop_thread(
void);
102 int set_volume_nolock(
int vol);
103 int single_ioctl(
int ioc);
104 int set_audioparam(
int fs,
int bps,
int chnum);
108 const char *mqpath,
int maxch);
112 int set_volume(
int vol);
114 int enqueue_buffer(FAR
struct ap_buffer_s *apb);
115 int start(
int fs,
int bps,
int chnum);
122 static void *message_thread(
void *arg);
Definition: al_audiodrv.h:80
Definition: al_audiodrv.h:65