mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 14:58:13 +08:00
boards: arm: cxd56: drivers: audio: nxstyle fixes
nxstyle fixes for cxd56 audio driver Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
This commit is contained in:
@@ -626,27 +626,31 @@ static void poweron_i2s0(void)
|
||||
/* Set I2S mode of SRC1. */
|
||||
|
||||
uint32_t is_master =
|
||||
(CXD56_AUDIO_CFG_I2S1_MODE == CXD56_AUDIO_CFG_I2S_MODE_MASTER) ? 1 : 0;
|
||||
(CXD56_AUDIO_CFG_I2S1_MODE ==
|
||||
CXD56_AUDIO_CFG_I2S_MODE_MASTER) ? 1 : 0;
|
||||
|
||||
write_ac_reg(RI_SD1MASTER, is_master);
|
||||
|
||||
/* Set I2S format of SRC1. */
|
||||
|
||||
uint32_t is_left =
|
||||
(CXD56_AUDIO_CFG_I2S1_FORMAT == CXD56_AUDIO_CFG_I2S_FORMAT_LEFT) ? 1 : 0;
|
||||
(CXD56_AUDIO_CFG_I2S1_FORMAT ==
|
||||
CXD56_AUDIO_CFG_I2S_FORMAT_LEFT) ? 1 : 0;
|
||||
|
||||
write_ac_reg(RI_DIF1, is_left);
|
||||
write_ac_reg(RI_LR_SWAP1, is_left);
|
||||
|
||||
/* Set data rate of SRC1. */
|
||||
|
||||
uint32_t data_rate = get_data_rate(CXD56_AUDIO_CFG_I2S1_DATA_RATE);
|
||||
uint32_t data_rate =
|
||||
get_data_rate(CXD56_AUDIO_CFG_I2S1_DATA_RATE);
|
||||
write_ac_reg(RI_SRC1, data_rate);
|
||||
|
||||
/* Set bypass mode of SRC1. */
|
||||
|
||||
uint32_t is_bypass =
|
||||
(CXD56_AUDIO_CFG_I2S1_BYPASS == CXD56_AUDIO_CFG_I2S_BYPASS_ENABLE) ? 1 : 0;
|
||||
(CXD56_AUDIO_CFG_I2S1_BYPASS ==
|
||||
CXD56_AUDIO_CFG_I2S_BYPASS_ENABLE) ? 1 : 0;
|
||||
|
||||
write_ac_reg(RI_TEST_OUT_SEL0, is_bypass);
|
||||
}
|
||||
@@ -662,13 +666,15 @@ static void poweron_i2s1(void)
|
||||
/* Set I2S mode of SRC2. */
|
||||
|
||||
uint32_t is_master =
|
||||
(CXD56_AUDIO_CFG_I2S2_MODE == CXD56_AUDIO_CFG_I2S_MODE_MASTER) ? 1 : 0;
|
||||
(CXD56_AUDIO_CFG_I2S2_MODE ==
|
||||
CXD56_AUDIO_CFG_I2S_MODE_MASTER) ? 1 : 0;
|
||||
write_ac_reg(RI_SD2MASTER, is_master);
|
||||
|
||||
/* Set I2S format of SRC2. */
|
||||
|
||||
uint32_t is_left =
|
||||
(CXD56_AUDIO_CFG_I2S2_FORMAT == CXD56_AUDIO_CFG_I2S_FORMAT_LEFT) ? 1 : 0;
|
||||
(CXD56_AUDIO_CFG_I2S2_FORMAT ==
|
||||
CXD56_AUDIO_CFG_I2S_FORMAT_LEFT) ? 1 : 0;
|
||||
write_ac_reg(RI_DIF2, is_left);
|
||||
write_ac_reg(RI_LR_SWAP2, is_left);
|
||||
|
||||
@@ -680,7 +686,8 @@ static void poweron_i2s1(void)
|
||||
/* Set bypass mode of SRC2. */
|
||||
|
||||
uint32_t is_bypass =
|
||||
(CXD56_AUDIO_CFG_I2S2_BYPASS == CXD56_AUDIO_CFG_I2S_BYPASS_ENABLE) ? 1 : 0;
|
||||
(CXD56_AUDIO_CFG_I2S2_BYPASS ==
|
||||
CXD56_AUDIO_CFG_I2S_BYPASS_ENABLE) ? 1 : 0;
|
||||
write_ac_reg(RI_TEST_OUT_SEL0, is_bypass);
|
||||
}
|
||||
#endif /* #ifdef CONFIG_CXD56_I2S1 */
|
||||
@@ -1177,10 +1184,11 @@ void cxd56_audio_ac_reg_set_deq_param(FAR cxd56_audio_deq_coef_t *deq)
|
||||
set_deq_coef(RI_DEQ_COEF_6B0, &deq->coef[5]);
|
||||
}
|
||||
|
||||
CXD56_AUDIO_ECODE cxd56_audio_ac_reg_poweron_cic(uint8_t mic_in,
|
||||
uint8_t mic_mode,
|
||||
uint8_t cic_num,
|
||||
FAR cxd56_audio_mic_gain_t *gain)
|
||||
CXD56_AUDIO_ECODE cxd56_audio_ac_reg_poweron_cic(
|
||||
uint8_t mic_in,
|
||||
uint8_t mic_mode,
|
||||
uint8_t cic_num,
|
||||
FAR cxd56_audio_mic_gain_t *gain)
|
||||
{
|
||||
/* Power on CIC. */
|
||||
|
||||
@@ -1439,7 +1447,8 @@ void cxd56_audio_ac_reg_set_dsrrate(uint32_t rate)
|
||||
write_ac_reg(RI_DSR_RATE, rate);
|
||||
}
|
||||
|
||||
void cxd56_audio_ac_reg_set_seloutch(FAR cxd56_audio_ac_reg_seloutch_t *seloutch)
|
||||
void cxd56_audio_ac_reg_set_seloutch(
|
||||
FAR cxd56_audio_ac_reg_seloutch_t *seloutch)
|
||||
{
|
||||
write_ac_reg(RI_SEL_OUT1_L, seloutch->ch[0]);
|
||||
write_ac_reg(RI_SEL_OUT1_R, seloutch->ch[1]);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* boards/arm/cxd56xx/drivers/audio/cxd56_audio_ac_reg.h
|
||||
*
|
||||
* Copyright 2018 Sony Semiconductor Solutions Corporation
|
||||
@@ -36,13 +36,13 @@
|
||||
#ifndef __BOARDS_ARM_CXD56XX_DRIVERS_AUDIO_CXD56_AUDIO_AC_REG_H
|
||||
#define __BOARDS_ARM_CXD56XX_DRIVERS_AUDIO_CXD56_AUDIO_AC_REG_H
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
****************************************************************************/
|
||||
|
||||
#include <arch/chip/audio.h>
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
@@ -368,7 +368,7 @@ enum audio_codec_register_id_e
|
||||
|
||||
typedef enum audio_codec_register_id_e AC_REG_ID;
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Types
|
||||
****************************************************************************/
|
||||
|
||||
@@ -379,15 +379,15 @@ struct cxd56_audio_ac_reg_seloutch_s
|
||||
|
||||
typedef struct cxd56_audio_ac_reg_seloutch_s cxd56_audio_ac_reg_seloutch_t;
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Data
|
||||
****************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Inline Functions
|
||||
****************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Function Prototypes
|
||||
****************************************************************************/
|
||||
|
||||
@@ -412,10 +412,11 @@ void cxd56_audio_ac_reg_set_dncram(cxd56_audio_dnc_id_t id,
|
||||
void cxd56_audio_ac_reg_enable_deq(void);
|
||||
void cxd56_audio_ac_reg_disable_deq(void);
|
||||
void cxd56_audio_ac_reg_set_deq_param(FAR cxd56_audio_deq_coef_t *deq);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_ac_reg_poweron_cic(uint8_t mic_in,
|
||||
uint8_t mic_mode,
|
||||
uint8_t cic_num,
|
||||
FAR cxd56_audio_mic_gain_t *gain);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_ac_reg_poweron_cic(
|
||||
uint8_t mic_in,
|
||||
uint8_t mic_mode,
|
||||
uint8_t cic_num,
|
||||
FAR cxd56_audio_mic_gain_t *gain);
|
||||
void cxd56_audio_ac_reg_poweroff_cic(void);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_ac_reg_poweron_decim(uint8_t mic_mode,
|
||||
uint8_t clk_mode);
|
||||
@@ -433,7 +434,8 @@ void cxd56_audio_ac_reg_set_cicgain(uint8_t cic_num,
|
||||
void cxd56_audio_ac_reg_enable_digsft(void);
|
||||
void cxd56_audio_ac_reg_disable_digsft(void);
|
||||
void cxd56_audio_ac_reg_set_dsrrate(uint32_t rate);
|
||||
void cxd56_audio_ac_reg_set_seloutch(FAR cxd56_audio_ac_reg_seloutch_t *seloutch);
|
||||
void cxd56_audio_ac_reg_set_seloutch(
|
||||
FAR cxd56_audio_ac_reg_seloutch_t *seloutch);
|
||||
void cxd56_audio_ac_reg_enable_dma(void);
|
||||
|
||||
void cxd56_audio_ac_reg_poweron_i2s(uint8_t clk_mode);
|
||||
@@ -442,8 +444,9 @@ void cxd56_audio_ac_reg_enable_i2s_src2(void);
|
||||
void cxd56_audio_ac_reg_enable_i2s_bcklrckout(void);
|
||||
void cxd56_audio_ac_reg_disable_i2s_bcklrckout(void);
|
||||
|
||||
CXD56_AUDIO_ECODE cxd56_audio_ac_reg_set_selector(cxd56_audio_signal_t sig,
|
||||
cxd56_audio_sel_t sel);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_ac_reg_set_selector(
|
||||
cxd56_audio_signal_t sig,
|
||||
cxd56_audio_sel_t sel);
|
||||
|
||||
CXD56_AUDIO_ECODE cxd56_audio_ac_reg_enable_cstereo(bool sign_inv,
|
||||
int16_t vol);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* boards/arm/cxd56xx/drivers/audio/cxd56_audio_aca.c
|
||||
*
|
||||
* Copyright 2018 Sony Semiconductor Solutions Corporation
|
||||
@@ -493,7 +493,8 @@ static void get_sp_split_on(uint8_t cf_sp_spliton,
|
||||
}
|
||||
}
|
||||
|
||||
static void get_sp_driver(uint8_t cfg_sp_drv, FAR as_aca_sp_drv_sel_id_t *sp_drv)
|
||||
static void get_sp_driver(uint8_t cfg_sp_drv,
|
||||
FAR as_aca_sp_drv_sel_id_t *sp_drv)
|
||||
{
|
||||
switch (cfg_sp_drv)
|
||||
{
|
||||
@@ -574,7 +575,8 @@ void get_input_param(as_aca_pulco_in_param_t *param,
|
||||
{
|
||||
mic_id = mic_sel - 1;
|
||||
param->mic_gain[mic_id] = (gain->gain[i] >= MIC_GAIN_MAX) ?
|
||||
MIC_GAIN_MAX : (gain->gain[i] / 30) * 30;
|
||||
MIC_GAIN_MAX :
|
||||
(gain->gain[i] / 30) * 30;
|
||||
|
||||
pga_gain = gain->gain[i] - param->mic_gain[mic_id];
|
||||
param->pga_gain[mic_id] = (pga_gain >= PGA_GAIN_MAX) ?
|
||||
@@ -628,7 +630,7 @@ void get_pwon_out_param(as_aca_pulco_out_param_t *param)
|
||||
get_sp_driver((uint8_t)cxd56_audio_config_get_spdriver(), ¶m->sp_drv);
|
||||
}
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
@@ -678,13 +680,15 @@ CXD56_AUDIO_ECODE cxd56_audio_aca_poweron_micbias(void)
|
||||
return CXD56_AUDIO_ECODE_OK;
|
||||
}
|
||||
|
||||
CXD56_AUDIO_ECODE cxd56_audio_aca_poweron_input(FAR cxd56_audio_mic_gain_t *gain)
|
||||
CXD56_AUDIO_ECODE cxd56_audio_aca_poweron_input(
|
||||
FAR cxd56_audio_mic_gain_t *gain)
|
||||
{
|
||||
as_aca_pulco_in_param_t pwon_input_param;
|
||||
|
||||
get_input_param(&pwon_input_param, gain);
|
||||
|
||||
if (as_aca_control(AS_ACA_POWER_ON_INPUT, (uint32_t)&pwon_input_param) != 0)
|
||||
if (as_aca_control(AS_ACA_POWER_ON_INPUT,
|
||||
(uint32_t)&pwon_input_param) != 0)
|
||||
{
|
||||
return CXD56_AUDIO_ECODE_ANA_PWON_INPUT;
|
||||
}
|
||||
@@ -712,7 +716,8 @@ CXD56_AUDIO_ECODE cxd56_audio_aca_poweron_output(void)
|
||||
|
||||
get_pwon_out_param(&pwon_output_param);
|
||||
|
||||
if (as_aca_control(AS_ACA_POWER_ON_OUTPUT, (uint32_t)&pwon_output_param) != 0)
|
||||
if (as_aca_control(AS_ACA_POWER_ON_OUTPUT,
|
||||
(uint32_t)&pwon_output_param) != 0)
|
||||
{
|
||||
return CXD56_AUDIO_ECODE_ANA_PWON_OUTPUT;
|
||||
}
|
||||
@@ -752,7 +757,8 @@ CXD56_AUDIO_ECODE cxd56_audio_aca_enable_output(void)
|
||||
|
||||
CXD56_AUDIO_ECODE cxd56_audio_aca_disable_output(void)
|
||||
{
|
||||
if (as_aca_control(AS_ACA_SET_OUTPUT_DEVICE, (uint32_t)AS_OUT_DEV_OFF) != 0)
|
||||
if (as_aca_control(AS_ACA_SET_OUTPUT_DEVICE,
|
||||
(uint32_t)AS_OUT_DEV_OFF) != 0)
|
||||
{
|
||||
return CXD56_AUDIO_ECODE_ANA_DISABLE_OUTPUT;
|
||||
}
|
||||
@@ -760,7 +766,8 @@ CXD56_AUDIO_ECODE cxd56_audio_aca_disable_output(void)
|
||||
return CXD56_AUDIO_ECODE_OK;
|
||||
}
|
||||
|
||||
CXD56_AUDIO_ECODE cxd56_audio_aca_set_micgain(FAR cxd56_audio_mic_gain_t *gain)
|
||||
CXD56_AUDIO_ECODE cxd56_audio_aca_set_micgain(
|
||||
FAR cxd56_audio_mic_gain_t *gain)
|
||||
{
|
||||
as_aca_pulco_in_param_t mic_gain_param;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* boards/arm/cxd56xx/drivers/audio/cxd56_audio_aca.h
|
||||
*
|
||||
* Copyright 2018 Sony Semiconductor Solutions Corporation
|
||||
@@ -36,13 +36,13 @@
|
||||
#ifndef __BOARDS_ARM_CXD56XX_DRIVERS_AUDIO_CXD56_AUDIO_ACA_H
|
||||
#define __BOARDS_ARM_CXD56XX_DRIVERS_AUDIO_CXD56_AUDIO_ACA_H
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
****************************************************************************/
|
||||
|
||||
#include <arch/chip/audio.h>
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
@@ -51,33 +51,35 @@
|
||||
#define DNC2_IRAM_BASE 0x3c00
|
||||
#define DNC2_CRAM_BASE 0x4400
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Types
|
||||
****************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Data
|
||||
****************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Inline Functions
|
||||
****************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Function Prototypes
|
||||
****************************************************************************/
|
||||
|
||||
CXD56_AUDIO_ECODE cxd56_audio_aca_poweron(void);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_aca_poweroff(void);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_aca_poweron_micbias(void);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_aca_poweron_input(FAR cxd56_audio_mic_gain_t *gain);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_aca_poweron_input(
|
||||
FAR cxd56_audio_mic_gain_t *gain);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_aca_set_smaster(void);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_aca_poweron_output(void);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_aca_poweroff_input(void);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_aca_poweroff_output(void);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_aca_enable_output(void);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_aca_disable_output(void);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_aca_set_micgain(FAR cxd56_audio_mic_gain_t *gain);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_aca_set_micgain(
|
||||
FAR cxd56_audio_mic_gain_t *gain);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_aca_notify_micbootdone(void);
|
||||
|
||||
#endif /* __BOARDS_ARM_CXD56XX_DRIVERS_AUDIO_CXD56_AUDIO_ACA_H */
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* boards/arm/cxd56xx/drivers/audio/cxd56_audio_analog.h
|
||||
*
|
||||
* Copyright 2018 Sony Semiconductor Solutions Corporation
|
||||
@@ -36,41 +36,43 @@
|
||||
#ifndef __BOARDS_ARM_CXD56XX_DRIVERS_AUDIO_CXD56_AUDIO_ANALOG_H
|
||||
#define __BOARDS_ARM_CXD56XX_DRIVERS_AUDIO_CXD56_AUDIO_ANALOG_H
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
****************************************************************************/
|
||||
|
||||
#include <arch/chip/audio.h>
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Types
|
||||
****************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Data
|
||||
****************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Inline Functions
|
||||
****************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Function Prototypes
|
||||
****************************************************************************/
|
||||
|
||||
CXD56_AUDIO_ECODE cxd56_audio_analog_poweron(void);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_analog_poweroff(void);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_analog_poweron_input(FAR cxd56_audio_mic_gain_t *gain);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_analog_poweron_input(
|
||||
FAR cxd56_audio_mic_gain_t *gain);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_analog_poweron_output(void);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_analog_poweroff_input(void);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_analog_poweroff_output(void);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_analog_enable_output(void);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_analog_disable_output(void);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_analog_set_micgain(FAR cxd56_audio_mic_gain_t *gain);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_analog_set_micgain(
|
||||
FAR cxd56_audio_mic_gain_t *gain);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_analog_wait_input_standby(void);
|
||||
|
||||
#endif /* __BOARDS_ARM_CXD56XX_DRIVERS_AUDIO_CXD56_AUDIO_ANALOG_H */
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* boards/arm/cxd56xx/drivers/audio/cxd56_audio_bca_reg.c
|
||||
*
|
||||
* Copyright 2018 Sony Semiconductor Solutions Corporation
|
||||
@@ -33,7 +33,7 @@
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
****************************************************************************/
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
#include "cxd56_audio_config.h"
|
||||
#include "cxd56_audio_bca_reg.h"
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
@@ -70,7 +70,7 @@ enum dma_i2s_out_sel_e
|
||||
|
||||
#define BCA_REG_MAX_BIT 32
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Data
|
||||
****************************************************************************/
|
||||
|
||||
@@ -244,7 +244,7 @@ const struct audio_bca_reg_s g_bca_reg[BCA_REG_MAX_ENTRY] =
|
||||
{0x2730, 0, 32, 0x00000000}, /* AHB MASTER I2S2 MASK (0x00) */
|
||||
};
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
@@ -420,7 +420,7 @@ void enable_i2s2_out_fmt16(void)
|
||||
write_bca_reg(BCA_I2S2_OUT_SAMPLE_NO, 0);
|
||||
}
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* boards/arm/cxd56xx/drivers/audio/cxd56_audio_bca_reg.h
|
||||
*
|
||||
* Copyright 2018 Sony Semiconductor Solutions Corporation
|
||||
@@ -36,13 +36,13 @@
|
||||
#ifndef __BOARDS_ARM_CXD56XX_DRIVERS_AUDIO_CXD56_AUDIO_BCA_REG_H
|
||||
#define __BOARDS_ARM_CXD56XX_DRIVERS_AUDIO_CXD56_AUDIO_BCA_REG_H
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
****************************************************************************/
|
||||
|
||||
#include <arch/chip/audio.h>
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
|
||||
#define DMA_CMD_FIFO_NOT_FULL 1
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Types
|
||||
****************************************************************************/
|
||||
|
||||
@@ -234,7 +234,7 @@ typedef enum
|
||||
BCA_REG_MAX_ENTRY
|
||||
} BCA_REG_ID;
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Function Prototypes
|
||||
****************************************************************************/
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* boards/arm/cxd56xx/drivers/audio/cxd56_audio_beep.c
|
||||
*
|
||||
* Copyright 2018 Sony Semiconductor Solutions Corporation
|
||||
@@ -33,7 +33,7 @@
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
****************************************************************************/
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
#include "cxd56_audio_ac_reg.h"
|
||||
#include "cxd56_audio_beep.h"
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
|
||||
#define VOL_MIN -90
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Private Data
|
||||
****************************************************************************/
|
||||
|
||||
@@ -71,15 +71,15 @@ static bool g_beep = false;
|
||||
|
||||
static const uint16_t g_beepfreqtable[] =
|
||||
{
|
||||
120, 127, 134, 142, 151, 160, 169, 180, 190, 201, 214, 226,
|
||||
240, 254, 269, 285, 302, 320, 339, 360, 381, 403, 428, 453,
|
||||
480, 509, 539, 571, 606, 642, 681, 719, 762, 810, 857, 910,
|
||||
965, 1021, 1079, 1143, 1215, 1289, 1362, 1444, 1536, 1627, 1714, 1829,
|
||||
120, 127, 134, 142, 151, 160, 169, 180, 190, 201, 214, 226,
|
||||
240, 254, 269, 285, 302, 320, 339, 360, 381, 403, 428, 453,
|
||||
480, 509, 539, 571, 606, 642, 681, 719, 762, 810, 857, 910,
|
||||
965, 1021, 1079, 1143, 1215, 1289, 1362, 1444, 1536, 1627, 1714, 1829,
|
||||
1939, 2043, 2182, 2313, 2400, 2560, 2704, 2866, 3048, 3200, 3429, 3623,
|
||||
3840, 4085, 94
|
||||
};
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
@@ -107,7 +107,7 @@ uint32_t convert_freq(uint32_t freq)
|
||||
return prev;
|
||||
}
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* boards/arm/cxd56xx/drivers/audio/cxd56_audio_beep.h
|
||||
*
|
||||
* Copyright 2018 Sony Semiconductor Solutions Corporation
|
||||
@@ -36,29 +36,29 @@
|
||||
#ifndef __BOARDS_ARM_CXD56XX_DRIVERS_AUDIO_CXD56_AUDIO_BEEP_H
|
||||
#define __BOARDS_ARM_CXD56XX_DRIVERS_AUDIO_CXD56_AUDIO_BEEP_H
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
****************************************************************************/
|
||||
|
||||
#include <arch/chip/audio.h>
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Types
|
||||
****************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Data
|
||||
****************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Inline Functions
|
||||
****************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Function Prototypes
|
||||
****************************************************************************/
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* boards/arm/cxd56xx/drivers/audio/cxd56_audio_config.c
|
||||
*
|
||||
* Copyright 2018 Sony Semiconductor Solutions Corporation
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* boards/arm/cxd56xx/drivers/audio/cxd56_audio_config.h
|
||||
*
|
||||
* Copyright 2018 Sony Semiconductor Solutions Corporation
|
||||
@@ -36,14 +36,14 @@
|
||||
#ifndef __BOARDS_ARM_CXD56XX_DRIVERS_AUDIO_CXD56_AUDIO_CONFIG_H
|
||||
#define __BOARDS_ARM_CXD56XX_DRIVERS_AUDIO_CXD56_AUDIO_CONFIG_H
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
****************************************************************************/
|
||||
|
||||
#include <nuttx/config.h>
|
||||
#include <arch/chip/audio.h>
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
@@ -357,15 +357,15 @@ enum cxd56_audio_cfg_sp_spliton_e
|
||||
# define CXD56_AUDIO_CFG_SP_DRIVER CXD56_AUDIO_SP_DRV_4DRIVER
|
||||
#endif
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Types
|
||||
****************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Data
|
||||
****************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Function Prototypes
|
||||
****************************************************************************/
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* boards/arm/cxd56xx/drivers/audio/cxd56_audio_digital.c
|
||||
*
|
||||
* Copyright 2018 Sony Semiconductor Solutions Corporation
|
||||
@@ -33,7 +33,7 @@
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
****************************************************************************/
|
||||
|
||||
@@ -45,7 +45,7 @@
|
||||
#include "cxd56_audio_bca_reg.h"
|
||||
#include "cxd56_audio_digital.h"
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* boards/arm/cxd56xx/drivers/audio/cxd56_audio_digital.h
|
||||
*
|
||||
* Copyright 2018 Sony Semiconductor Solutions Corporation
|
||||
@@ -36,29 +36,29 @@
|
||||
#ifndef __BOARDS_ARM_CXD56XX_DRIVERS_AUDIO_CXD56_AUDIO_DIGITAL_H
|
||||
#define __BOARDS_ARM_CXD56XX_DRIVERS_AUDIO_CXD56_AUDIO_DIGITAL_H
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
****************************************************************************/
|
||||
|
||||
#include <arch/chip/audio.h>
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Types
|
||||
****************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Data
|
||||
****************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Inline Functions
|
||||
****************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Function Prototypes
|
||||
****************************************************************************/
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* boards/arm/cxd56xx/drivers/audio/cxd56_audio_dma.c
|
||||
*
|
||||
* Copyright 2018 Sony Semiconductor Solutions Corporation
|
||||
@@ -33,7 +33,7 @@
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
****************************************************************************/
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
#include "cxd56_audio_ac_reg.h"
|
||||
#include "cxd56_audio_bca_reg.h"
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
@@ -98,7 +98,7 @@ enum audio_irq_reg_type_e
|
||||
#define CLR_DMA_ACT(_path_) g_dma_act_status &= ~(1 << _path_)
|
||||
#define IS_DMA_ACT(_path_) ((g_dma_act_status & (1 << _path_)) != 0)
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Private Data
|
||||
****************************************************************************/
|
||||
|
||||
@@ -112,7 +112,7 @@ static bool s_work_arroud_dmac[DMA_HANDLE_MAX_NUM] =
|
||||
true
|
||||
};
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
@@ -345,7 +345,7 @@ static CXD56_AUDIO_ECODE start_dma_workaround(cxd56_audio_dma_t handle)
|
||||
return ret;
|
||||
}
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
@@ -476,7 +476,7 @@ CXD56_AUDIO_ECODE cxd56_audio_dma_set_cb(cxd56_audio_dma_t handle,
|
||||
}
|
||||
|
||||
CXD56_AUDIO_ECODE cxd56_audio_dma_get_mstate(cxd56_audio_dma_t handle,
|
||||
FAR cxd56_audio_dma_mstate_t *state)
|
||||
FAR cxd56_audio_dma_mstate_t *state)
|
||||
{
|
||||
cxd56_audio_bca_reg_get_dma_mstate(handle, state);
|
||||
|
||||
@@ -659,8 +659,9 @@ void cxd56_audio_dma_int_handler(void)
|
||||
|
||||
if (int_i2s2 & DMA_STATE_BIT_I2S_OUT_DONE)
|
||||
{
|
||||
(*g_dma_cb[CXD56_AUDIO_DMAC_I2S1_DOWN])(CXD56_AUDIO_DMAC_I2S1_DOWN,
|
||||
CXD56_AUDIO_ECODE_DMA_CMPLT);
|
||||
(*g_dma_cb[CXD56_AUDIO_DMAC_I2S1_DOWN])
|
||||
(CXD56_AUDIO_DMAC_I2S1_DOWN,
|
||||
CXD56_AUDIO_ECODE_DMA_CMPLT);
|
||||
}
|
||||
|
||||
/* Check transfer err state. */
|
||||
@@ -671,8 +672,9 @@ void cxd56_audio_dma_int_handler(void)
|
||||
|
||||
cxd56_audio_bca_reg_clear_err_int(CXD56_AUDIO_DMAC_I2S1_DOWN);
|
||||
|
||||
(*g_dma_cb[CXD56_AUDIO_DMAC_I2S1_DOWN])(CXD56_AUDIO_DMAC_I2S1_DOWN,
|
||||
CXD56_AUDIO_ECODE_DMA_TRANS);
|
||||
(*g_dma_cb[CXD56_AUDIO_DMAC_I2S1_DOWN])
|
||||
(CXD56_AUDIO_DMAC_I2S1_DOWN,
|
||||
CXD56_AUDIO_ECODE_DMA_TRANS);
|
||||
}
|
||||
|
||||
/* Check bus err state. */
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* boards/arm/cxd56xx/drivers/audio/cxd56_audio_dma.h
|
||||
*
|
||||
* Copyright 2018 Sony Semiconductor Solutions Corporation
|
||||
@@ -36,29 +36,29 @@
|
||||
#ifndef __BOARDS_ARM_CXD56XX_DRIVERS_AUDIO_CXD56_AUDIO_DMA_H
|
||||
#define __BOARDS_ARM_CXD56XX_DRIVERS_AUDIO_CXD56_AUDIO_DMA_H
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
****************************************************************************/
|
||||
|
||||
#include <arch/chip/audio.h>
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Types
|
||||
****************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Data
|
||||
****************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Inline Functions
|
||||
****************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Function Prototypes
|
||||
****************************************************************************/
|
||||
|
||||
@@ -71,7 +71,7 @@ CXD56_AUDIO_ECODE cxd56_audio_dma_init(cxd56_audio_dma_t handle,
|
||||
CXD56_AUDIO_ECODE cxd56_audio_dma_set_cb(cxd56_audio_dma_t handle,
|
||||
FAR cxd56_audio_dma_cb_t cb);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_dma_get_mstate(cxd56_audio_dma_t handle,
|
||||
FAR cxd56_audio_dma_mstate_t *state);
|
||||
FAR cxd56_audio_dma_mstate_t *state);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_dma_en_dmaint(void);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_dma_dis_dmaint(void);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_dma_start(cxd56_audio_dma_t handle,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* boards/arm/cxd56xx/drivers/audio/cxd56_audio_filter.c
|
||||
*
|
||||
* Copyright 2018 Sony Semiconductor Solutions Corporation
|
||||
@@ -33,7 +33,7 @@
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
****************************************************************************/
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
#include "cxd56_audio_filter.h"
|
||||
#include "cxd56_audio_ac_reg.h"
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* boards/arm/cxd56xx/drivers/audio/cxd56_audio_filter.h
|
||||
*
|
||||
* Copyright 2018 Sony Semiconductor Solutions Corporation
|
||||
@@ -36,29 +36,29 @@
|
||||
#ifndef __BOARDS_ARM_CXD56XX_DRIVERS_AUDIO_CXD56_AUDIO_FILTER_H
|
||||
#define __BOARDS_ARM_CXD56XX_DRIVERS_AUDIO_CXD56_AUDIO_FILTER_H
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
****************************************************************************/
|
||||
|
||||
#include <arch/chip/audio.h>
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Types
|
||||
****************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Data
|
||||
****************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Inline Functions
|
||||
****************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Function Prototypes
|
||||
****************************************************************************/
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* boards/arm/cxd56xx/drivers/audio/cxd56_audio_irq.c
|
||||
*
|
||||
* Copyright 2018 Sony Semiconductor Solutions Corporation
|
||||
@@ -33,7 +33,7 @@
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
****************************************************************************/
|
||||
|
||||
@@ -43,13 +43,13 @@
|
||||
|
||||
#include "cxd56_audio_irq.h"
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Function Prototypes
|
||||
****************************************************************************/
|
||||
|
||||
extern void cxd56_audio_dma_int_handler(void);
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* boards/arm/cxd56xx/drivers/audio/cxd56_audio_irq.h
|
||||
*
|
||||
* Copyright 2018 Sony Semiconductor Solutions Corporation
|
||||
@@ -36,29 +36,29 @@
|
||||
#ifndef __BOARDS_ARM_CXD56XX_DRIVERS_AUDIO_CXD56_AUDIO_IRQ_H
|
||||
#define __BOARDS_ARM_CXD56XX_DRIVERS_AUDIO_CXD56_AUDIO_IRQ_H
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
****************************************************************************/
|
||||
|
||||
#include <arch/chip/audio.h>
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Types
|
||||
****************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Data
|
||||
****************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Inline Functions
|
||||
****************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Function Prototypes
|
||||
****************************************************************************/
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* boards/arm/cxd56xx/drivers/audio/cxd56_audio_mic.c
|
||||
*
|
||||
* Copyright 2018 Sony Semiconductor Solutions Corporation
|
||||
@@ -33,7 +33,7 @@
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
****************************************************************************/
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
#include "cxd56_audio_mic.h"
|
||||
#include "cxd56_audio_ac_reg.h"
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
#define MIC_CH_BITNUM 4
|
||||
#define MIC_CH_BITMAP 0xf
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* boards/arm/cxd56xx/drivers/audio/cxd56_audio_mic.h
|
||||
*
|
||||
* Copyright 2018 Sony Semiconductor Solutions Corporation
|
||||
@@ -36,29 +36,29 @@
|
||||
#ifndef __BOARDS_ARM_CXD56XX_DRIVERS_AUDIO_CXD56_AUDIO_MIC_H
|
||||
#define __BOARDS_ARM_CXD56XX_DRIVERS_AUDIO_CXD56_AUDIO_MIC_H
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
****************************************************************************/
|
||||
|
||||
#include <arch/chip/audio.h>
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Types
|
||||
****************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Data
|
||||
****************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Inline Functions
|
||||
****************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Function Prototypes
|
||||
****************************************************************************/
|
||||
|
||||
@@ -66,6 +66,6 @@ CXD56_AUDIO_ECODE cxd56_audio_mic_enable(FAR cxd56_audio_mic_gain_t *gain);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_mic_disable(void);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_mic_set_gain(FAR cxd56_audio_mic_gain_t *gain);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_mic_set_seloutch(uint8_t mic_num,
|
||||
cxd56_audio_samp_fmt_t format);
|
||||
cxd56_audio_samp_fmt_t format);
|
||||
|
||||
#endif /* __BOARDS_ARM_CXD56XX_DRIVERS_AUDIO_CXD56_AUDIO_MIC_H */
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* boards/arm/cxd56xx/drivers/audio/cxd56_audio_pin.c
|
||||
*
|
||||
* Copyright 2018 Sony Semiconductor Solutions Corporation
|
||||
@@ -33,7 +33,7 @@
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
****************************************************************************/
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
|
||||
#include "cxd56_audio_pin.h"
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* boards/arm/cxd56xx/drivers/audio/cxd56_audio_pin.h
|
||||
*
|
||||
* Copyright 2018 Sony Semiconductor Solutions Corporation
|
||||
@@ -36,29 +36,29 @@
|
||||
#ifndef __BOARDS_ARM_CXD56XX_DRIVERS_AUDIO_CXD56_AUDIO_PIN_H
|
||||
#define __BOARDS_ARM_CXD56XX_DRIVERS_AUDIO_CXD56_AUDIO_PIN_H
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
****************************************************************************/
|
||||
|
||||
#include <arch/board/board.h>
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Types
|
||||
****************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Data
|
||||
****************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Inline Functions
|
||||
****************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Function Prototypes
|
||||
****************************************************************************/
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* boards/arm/cxd56xx/drivers/audio/cxd56_audio_power.c
|
||||
*
|
||||
* Copyright 2018 Sony Semiconductor Solutions Corporation
|
||||
@@ -33,7 +33,7 @@
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
****************************************************************************/
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
#include "cxd56_audio_ac_reg.h"
|
||||
#include "cxd56_audio_bca_reg.h"
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
@@ -93,7 +93,7 @@ static CXD56_AUDIO_ECODE power_on_codec(void)
|
||||
return ret;
|
||||
}
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* boards/arm/cxd56xx/drivers/audio/cxd56_audio_power.h
|
||||
*
|
||||
* Copyright 2018 Sony Semiconductor Solutions Corporation
|
||||
@@ -36,29 +36,29 @@
|
||||
#ifndef __BOARDS_ARM_CXD56XX_DRIVERS_AUDIO_CXD56_AUDIO_POWER_H
|
||||
#define __BOARDS_ARM_CXD56XX_DRIVERS_AUDIO_CXD56_AUDIO_POWER_H
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
****************************************************************************/
|
||||
|
||||
#include <arch/chip/audio.h>
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Types
|
||||
****************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Data
|
||||
****************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Inline Functions
|
||||
****************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Function Prototypes
|
||||
****************************************************************************/
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* boards/arm/cxd56xx/drivers/audio/cxd56_audio_volume.h
|
||||
*
|
||||
* Copyright 2018 Sony Semiconductor Solutions Corporation
|
||||
@@ -36,33 +36,34 @@
|
||||
#ifndef __BOARDS_ARM_CXD56XX_DRIVERS_AUDIO_CXD56_AUDIO_VOLUME_H
|
||||
#define __BOARDS_ARM_CXD56XX_DRIVERS_AUDIO_CXD56_AUDIO_VOLUME_H
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
****************************************************************************/
|
||||
|
||||
#include <arch/chip/audio.h>
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Types
|
||||
****************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Data
|
||||
****************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Inline Functions
|
||||
****************************************************************************/
|
||||
|
||||
/***************************************************************************
|
||||
/****************************************************************************
|
||||
* Public Function Prototypes
|
||||
****************************************************************************/
|
||||
|
||||
CXD56_AUDIO_ECODE cxd56_audio_volume_set(cxd56_audio_volid_t id, int16_t vol);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_volume_set(cxd56_audio_volid_t id,
|
||||
int16_t vol);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_volume_mute(cxd56_audio_volid_t id);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_volume_unmute(cxd56_audio_volid_t id);
|
||||
CXD56_AUDIO_ECODE cxd56_audio_volume_mute_fade(cxd56_audio_volid_t id,
|
||||
|
||||
Reference in New Issue
Block a user