54 lines
1.4 KiB
C
54 lines
1.4 KiB
C
|
/*
|
||
|
* Filename: mpp-aio.h
|
||
|
* Version: 1.0
|
||
|
* Description: Some include file and define used in driver.
|
||
|
* License: GPLv2
|
||
|
*
|
||
|
* Author : zhangjingzhou <zhangjingzhou@allwinnertech.com>
|
||
|
* Date : 2017/07/31
|
||
|
*
|
||
|
* This program is free software; you can redistribute it and/or modify
|
||
|
* it under the terms of the GNU General Public License version 2 as
|
||
|
* published by the Free Software Foundation.
|
||
|
*
|
||
|
* This program is distributed in the hope that it will be useful,
|
||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
* GNU General Public License for more details.
|
||
|
*/
|
||
|
#ifndef MPP_AIO_H
|
||
|
#define MPP_AIO_H
|
||
|
|
||
|
#include <linux/proc_fs.h>
|
||
|
#include <linux/seq_file.h>
|
||
|
#include <linux/debugfs.h>
|
||
|
|
||
|
struct sunxi_audio_mpp_debugfs {
|
||
|
struct dentry *debugfsP;
|
||
|
/* ai dev attr */
|
||
|
char *ai_info;
|
||
|
char ai_devenable[32];
|
||
|
char ai_channelcnt[32];
|
||
|
char ai_cardtype[64];
|
||
|
char ai_samplerate[32];
|
||
|
char ai_bitwidth[32];
|
||
|
char ai_trackcnt[32];
|
||
|
char ai_bMute[32];
|
||
|
char ai_volume[32];
|
||
|
|
||
|
/* ao dev attr */
|
||
|
char *ao_info;
|
||
|
char ao_devenable[32];
|
||
|
char ao_channelcnt[32];
|
||
|
char ao_cardtype[64];
|
||
|
char ao_samplerate[32];
|
||
|
char ao_bitwidth[32];
|
||
|
char ao_trackcnt[32];
|
||
|
char ao_bMute[32];
|
||
|
char ao_volume[32];
|
||
|
};
|
||
|
|
||
|
extern int mpp_aio_info_set(char *dst_ptr, unsigned int size, unsigned int value);
|
||
|
|
||
|
#endif /* MPP_AIO_H */
|