24 lines
410 B
C
24 lines
410 B
C
#ifndef _LINEIN_DEV_H_
|
|
#define _LINEIN_DEV_H_
|
|
|
|
#include "typedef.h"
|
|
#include "device/device.h"
|
|
|
|
struct linein_dev_data {
|
|
u8 enable;
|
|
u8 port;
|
|
u8 up : 1;
|
|
u8 down : 1;
|
|
u32 ad_channel;
|
|
u16 ad_vol;
|
|
};
|
|
|
|
u8 linein_is_online(void);
|
|
void linein_set_online(u8 online);
|
|
void linein_detect_timer_add();
|
|
void linein_detect_timer_del();
|
|
|
|
extern const struct device_operations linein_dev_ops;
|
|
|
|
#endif
|