23 lines
365 B
C
23 lines
365 B
C
#include "include.h"
|
|
#include "api.h"
|
|
#include "app_variable.h"
|
|
|
|
#if !BT_A2DP_RECON_EN
|
|
void a2dp_recon_hook(void)
|
|
{
|
|
}
|
|
#endif
|
|
|
|
uint a2dp_get_vol(void)
|
|
{
|
|
uint vol;
|
|
printf("a2dp_get_vol vol = %d\n",SysVariable.vol);
|
|
vol = ((u32)SysVariable.vol * 1280L /VOL_MAX) /10;
|
|
if(vol > 0x7f) {
|
|
vol = 0x7f;
|
|
}
|
|
|
|
return vol;
|
|
}
|
|
|