本文整理汇总了C++中pr_aud_info函数的典型用法代码示例。如果您正苦于以下问题:C++ pr_aud_info函数的具体用法?C++ pr_aud_info怎么用?C++ pr_aud_info使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了pr_aud_info函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: runnymede_snddev_bt_sco_pamp_on
void runnymede_snddev_bt_sco_pamp_on(int en)
{
static int bt_sco_refcount;
pr_aud_info("%s %d\n", __func__, en);
mutex_lock(&bt_sco_lock);
if (en) {
if (++bt_sco_refcount == 1)
config_gpio_table(aux_pcm_gpio_on,
ARRAY_SIZE(aux_pcm_gpio_on));
} else {
if (--bt_sco_refcount == 0) {
config_gpio_table(aux_pcm_gpio_off,
ARRAY_SIZE(aux_pcm_gpio_off));
gpio_set_value(runnymede_GPIO_BT_PCM_OUT, 0);
gpio_set_value(runnymede_GPIO_BT_PCM_SYNC, 0);
gpio_set_value(runnymede_GPIO_BT_PCM_CLK, 0);
}
}
mutex_unlock(&bt_sco_lock);
}
开发者ID:DutchDanny,项目名称:runnymede-2.6.35.13,代码行数:20,代码来源:board-runnymede-audio.c
示例2: rider_snddev_bmic_pamp_on
void rider_snddev_bmic_pamp_on(int en)
{
int ret;
pr_aud_info("%s %d\n", __func__, en);
if (en) {
ret = pm8058_micbias_enable(OTHC_MICBIAS_1, OTHC_SIGNAL_ALWAYS_ON);
if (ret)
pr_err("%s: Enabling int mic power failed\n", __func__);
/* select internal mic path */
gpio_set_value(PM8058_GPIO_PM_TO_SYS(RIDER_AUD_MIC_SEL), 0);
} else {
ret = pm8058_micbias_enable(OTHC_MICBIAS_1, OTHC_SIGNAL_OFF);
if (ret)
pr_err("%s: Enabling int mic power failed\n", __func__);
}
}
开发者ID:AmeriCanAndroid,项目名称:kernel-android-msm-2.6.35,代码行数:20,代码来源:board-rider-audio.c
示例3: doubleshot_snddev_hs_spk_pamp_on
void doubleshot_snddev_hs_spk_pamp_on(int en)
{
pr_aud_info("%s %d\n", __func__, en);
if (en) {
msleep(50);
gpio_direction_output(PM8058_GPIO_PM_TO_SYS(DOUBLESHOT_AUD_HP_EN), 1);
set_speaker_headset_amp(1);
if (!atomic_read(&aic3254_ctl)) {
curr_rx_mode |= BIT_SPEAKER;
curr_rx_mode |= BIT_HEADSET;
}
} else {
set_speaker_headset_amp(0);
gpio_direction_output(PM8058_GPIO_PM_TO_SYS(DOUBLESHOT_AUD_HP_EN), 0);
if (!atomic_read(&aic3254_ctl)) {
curr_rx_mode &= ~BIT_SPEAKER;
curr_rx_mode &= ~BIT_HEADSET;
}
}
}
开发者ID:TeamSXL,项目名称:ds-kernel-3.4,代码行数:20,代码来源:board-doubleshot-audio.c
示例4: doubleshot_snddev_imic_pamp_on
void doubleshot_snddev_imic_pamp_on(int en)
{
int ret;
pr_aud_info("%s %d\n", __func__, en);
doubleshot_snddev_bmic_pamp_on(en);
if (en) {
ret = pm8058_micbias_enable(OTHC_MICBIAS_0, OTHC_SIGNAL_ALWAYS_ON);
if (ret)
pr_aud_err("%s: Enabling int mic power failed\n", __func__);
} else {
ret = pm8058_micbias_enable(OTHC_MICBIAS_0, OTHC_SIGNAL_OFF);
if (ret)
pr_aud_err("%s: Enabling int mic power failed\n", __func__);
}
}
开发者ID:TeamSXL,项目名称:ds-kernel-3.4,代码行数:20,代码来源:board-doubleshot-audio.c
示例5: aprv2_core_fn_q
static int32_t aprv2_core_fn_q(struct apr_client_data *data, void *priv)
{
struct adsp_get_version *payload;
uint32_t *payload1;
struct adsp_service_info *svc_info;
int i;
pr_aud_info("core msg: payload len = %d\n", data->payload_size);
switch (data->opcode) {
case APR_BASIC_RSP_RESULT:{
payload1 = data->payload;
if (payload1[0] == ADSP_CMD_SET_POWER_COLLAPSE_STATE) {
pr_aud_info("Cmd[0x%x] status[0x%x]\n", payload1[0],
payload1[1]);
break;
} else
pr_aud_err("Invalid cmd rsp[0x%x][0x%x]\n", payload1[0],
payload1[1]);
break;
}
case ADSP_GET_VERSION_RSP:{
if (data->payload_size) {
payload = data->payload;
svc_info = (struct adsp_service_info *)
((char *)payload + sizeof(struct adsp_get_version));
pr_aud_info("----------------------------------------\n");
pr_aud_info("Build id = %x\n", payload->build_id);
pr_aud_info("Number of services= %x\n", payload->svc_cnt);
pr_aud_info("----------------------------------------\n");
for (i = 0; i < payload->svc_cnt; i++)
pr_aud_info("%s\t%x.%x\n",
svc_names[svc_info[i].svc_id],
(svc_info[i].svc_ver & 0xFFFF0000) >> 16,
(svc_info[i].svc_ver & 0xFFFF));
pr_aud_info("-----------------------------------------\n");
} else
pr_aud_info("zero payload for ADSP_GET_VERSION_RSP\n");
break;
}
开发者ID:Alex163,项目名称:htc-kernel-pyramid,代码行数:39,代码来源:apr_tal_debug.c
示例6: holiday_snddev_hs_spk_pamp_on
void holiday_snddev_hs_spk_pamp_on(int en)
{
pr_aud_info("%s %d\n", __func__, en);
if (en) {
gpio_set_value(PM8058_GPIO_PM_TO_SYS(HOLIDAY_AUD_HANDSET_ENO), 1);
msleep(50);
set_speaker_headset_amp(1);
if (!atomic_read(&aic3254_ctl)) {
curr_rx_mode |= BIT_SPEAKER;
curr_rx_mode |= BIT_HEADSET;
}
} else {
set_speaker_headset_amp(0);
gpio_set_value(PM8058_GPIO_PM_TO_SYS(HOLIDAY_AUD_HANDSET_ENO), 0);
if (!atomic_read(&aic3254_ctl)) {
curr_rx_mode &= ~BIT_SPEAKER;
curr_rx_mode &= ~BIT_HEADSET;
}
}
}
开发者ID:ericdjobs,项目名称:android_kernel_htc_msm8660,代码行数:20,代码来源:board-holiday-audio.c
示例7: pyramid_snddev_poweramp_on
void pyramid_snddev_poweramp_on(int en)
{
pr_aud_info("%s %d\n", __func__, en);
if (en) {
msleep(50);
gpio_request(PM8058_GPIO_PM_TO_SYS(PYRAMID_AUD_HP_EN),
"AUD_HP_EN");
gpio_direction_output(PM8058_GPIO_PM_TO_SYS(PYRAMID_AUD_HP_EN), 1);
set_speaker_amp(1);
if (!atomic_read(&aic3254_ctl))
curr_rx_mode |= BIT_SPEAKER;
} else {
set_speaker_amp(0);
gpio_request(PM8058_GPIO_PM_TO_SYS(PYRAMID_AUD_HP_EN),
"AUD_HP_EN");
gpio_direction_output(PM8058_GPIO_PM_TO_SYS(PYRAMID_AUD_HP_EN), 0);
if (!atomic_read(&aic3254_ctl))
curr_rx_mode &= ~BIT_SPEAKER;
}
}
开发者ID:zarboz,项目名称:OpenSense_kernel,代码行数:20,代码来源:board-pyramid-audio.c
示例8: shooter_u_snddev_hsed_pamp_on
void shooter_u_snddev_hsed_pamp_on(int en)
{
pr_aud_info("%s %d\n", __func__, en);
if (en) {
msleep(30);
gpio_request(PM8058_GPIO_PM_TO_SYS(SHOOTER_U_AUD_HP_EN),
"AUD_HP_EN");
gpio_direction_output(PM8058_GPIO_PM_TO_SYS(SHOOTER_U_AUD_HP_EN), 1);
set_headset_amp(1);
if (!atomic_read(&aic3254_ctl))
curr_rx_mode |= BIT_HEADSET;
} else {
set_headset_amp(0);
gpio_request(PM8058_GPIO_PM_TO_SYS(SHOOTER_U_AUD_HP_EN),
"AUD_HP_EN");
gpio_direction_output(PM8058_GPIO_PM_TO_SYS(SHOOTER_U_AUD_HP_EN), 0);
if (!atomic_read(&aic3254_ctl))
curr_rx_mode &= ~BIT_HEADSET;
}
}
开发者ID:anryl,项目名称:pyramid-3.4.10,代码行数:20,代码来源:board-shooter_u-audio.c
示例9: msm_set_voice_mute
int msm_set_voice_mute(int dir, int mute)
{
MM_AUD_INFO("dir %x mute %x\n", dir, mute);
#ifdef CONFIG_2WCR
if (!audio_dev_ctrl.voice_rx_dev
|| !audio_dev_ctrl.voice_tx_dev)
return -EPERM;
#endif
if (dir == DIR_TX) {
routing_info.tx_mute = mute;
broadcast_event(AUDDEV_EVT_DEVICE_VOL_MUTE_CHG,
routing_info.voice_tx_dev_id, SESSION_IGNORE);
} else{
routing_info.rx_mute = mute;
pr_aud_info("%s, rx_mute=%d\n", __func__, routing_info.rx_mute);
broadcast_event(AUDDEV_EVT_DEVICE_VOL_MUTE_CHG,
routing_info.voice_rx_dev_id, SESSION_IGNORE);
}
return 0;
}
开发者ID:12rafael,项目名称:jellytimekernel,代码行数:20,代码来源:audio_dev_ctl.c
示例10: rider_snddev_hsed_pamp_on
void rider_snddev_hsed_pamp_on(int en)
{
pr_aud_info("%s %d\n", __func__, en);
if (en) {
/* enable rx route */
msleep(30);
gpio_set_value(PM8058_GPIO_PM_TO_SYS(RIDER_AUD_HANDSET_ENO), 1);
set_headset_amp(1);
if (!atomic_read(&aic3254_ctl))
curr_rx_mode |= BIT_HEADSET;
msleep(5);
} else {
/* disable rx route */
set_headset_amp(0);
gpio_set_value(PM8058_GPIO_PM_TO_SYS(RIDER_AUD_HANDSET_ENO), 0);
if (!atomic_read(&aic3254_ctl))
curr_rx_mode &= ~BIT_HEADSET;
}
}
开发者ID:AmeriCanAndroid,项目名称:kernel-android-msm-2.6.35,代码行数:20,代码来源:board-rider-audio.c
示例11: runnymede_snddev_poweramp_on
void runnymede_snddev_poweramp_on(int en)
{
pr_aud_info("%s %d\n", __func__, en);
if (en) {
mdelay(30);
gpio_request(PM8058_GPIO_PM_TO_SYS(runnymede_AUD_SPK_SD),
"AMP_EN");
gpio_direction_output(PM8058_GPIO_PM_TO_SYS(runnymede_AUD_SPK_SD), 1);
if (!atomic_read(&aic3254_ctl))
curr_rx_mode |= BIT_SPEAKER;
} else {
/* Reset AIC3254 */
gpio_request(PM8058_GPIO_PM_TO_SYS(runnymede_AUD_SPK_SD),
"AMP_EN");
gpio_direction_output(PM8058_GPIO_PM_TO_SYS(runnymede_AUD_SPK_SD), 0);
if (!atomic_read(&aic3254_ctl))
curr_rx_mode &= ~BIT_SPEAKER;
}
}
开发者ID:DevChun,项目名称:htc-runnymede-ics-kernel,代码行数:20,代码来源:board-runnymede-audio.c
示例12: verdi_lte_snddev_stereo_mic_pamp_on
void verdi_lte_snddev_stereo_mic_pamp_on(int en)
{
int ret;
pr_aud_info("%s %d\n", __func__, en);
if (en) {
verdi_lte_audio_2v85_enable(en);
ret = pm8058_micbias_enable(OTHC_MICBIAS_0, \
OTHC_SIGNAL_ALWAYS_ON);
if (ret)
pr_aud_err("%s: Enabling int mic power failed\n", \
__func__);
ret = pm8058_micbias_enable(OTHC_MICBIAS_1, \
OTHC_SIGNAL_ALWAYS_ON);
if (ret)
pr_aud_err("%s: Enabling int mic power failed\n", \
__func__);
/* select internal mic path */
gpio_set_value(PM8058_GPIO_PM_TO_SYS( \
VERDI_LTE_AUD_STEREO_REC), 1);
gpio_set_value(PM8058_GPIO_PM_TO_SYS(VERDI_LTE_AUD_MIC_SEL), 0);
} else {
gpio_set_value(PM8058_GPIO_PM_TO_SYS( \
VERDI_LTE_AUD_STEREO_REC), 0);
ret = pm8058_micbias_enable(OTHC_MICBIAS_0, OTHC_SIGNAL_OFF);
if (ret)
pr_aud_err("%s: Disabling int mic power failed\n", \
__func__);
ret = pm8058_micbias_enable(OTHC_MICBIAS_1, OTHC_SIGNAL_OFF);
if (ret)
pr_aud_err("%s: Disabling int mic power failed\n", \
__func__);
verdi_lte_audio_2v85_enable(en);
}
}
开发者ID:finniest,项目名称:hive_kernel,代码行数:41,代码来源:board-verdi-lte-audio.c
示例13: shooter_u_snddev_receiver_pamp_on
void shooter_u_snddev_receiver_pamp_on(int en)
{
pr_aud_info("%s %d\n", __func__, en);
if (en) {
/* enable rx route */
gpio_request(PM8058_GPIO_PM_TO_SYS(SHOOTER_U_AUD_HP_EN),
"AUD_HP_EN");
gpio_direction_output(PM8058_GPIO_PM_TO_SYS(SHOOTER_U_AUD_HP_EN), 1);
set_handset_amp(1);
if (!atomic_read(&aic3254_ctl))
curr_rx_mode |= BIT_RECEIVER;
} else {
/* disable rx route */
set_handset_amp(0);
gpio_request(PM8058_GPIO_PM_TO_SYS(SHOOTER_U_AUD_HP_EN),
"AUD_HP_EN");
gpio_direction_output(PM8058_GPIO_PM_TO_SYS(SHOOTER_U_AUD_HP_EN), 0);
if (!atomic_read(&aic3254_ctl))
curr_rx_mode &= ~BIT_RECEIVER;
}
}
开发者ID:anryl,项目名称:pyramid-3.4.10,代码行数:21,代码来源:board-shooter_u-audio.c
示例14: pyramid_snddev_bmic_pamp_on
void pyramid_snddev_bmic_pamp_on(int en)
{
int ret;
pr_aud_info("%s %d\n", __func__, en);
if (en) {
ret = pm8058_micbias_enable(OTHC_MICBIAS_1, OTHC_SIGNAL_ALWAYS_ON);
if (ret)
pr_aud_err("%s: Enabling back mic power failed\n", __func__);
/* select internal mic path */
gpio_request(PM8058_GPIO_PM_TO_SYS(PYRAMID_AUD_MIC_SEL),
"AUD_MIC_SEL");
gpio_direction_output(PM8058_GPIO_PM_TO_SYS(PYRAMID_AUD_MIC_SEL), 0);
} else {
ret = pm8058_micbias_enable(OTHC_MICBIAS_1, OTHC_SIGNAL_OFF);
if (ret)
pr_aud_err("%s: Enabling back mic power failed\n", __func__);
}
}
开发者ID:zarboz,项目名称:OpenSense_kernel,代码行数:21,代码来源:board-pyramid-audio.c
示例15: runnymede_snddev_receiver_pamp_on
void runnymede_snddev_receiver_pamp_on(int en)
{
pr_aud_info("%s %d\n", __func__, en);
if (en) {
gpio_set_value(PM8058_GPIO_PM_TO_SYS(runnymede_AUD_AMP_EN), 1);
gpio_request(PM8058_GPIO_PM_TO_SYS(runnymede_AUD_AMP_EN),
"HP_AMP_EN");
mdelay(20);
set_handset_amp(1);
if (!atomic_read(&aic3254_ctl))
curr_rx_mode |= BIT_RECEIVER;
} else {
set_handset_amp(0);
gpio_set_value(PM8058_GPIO_PM_TO_SYS(runnymede_AUD_AMP_EN), 0);
gpio_request(PM8058_GPIO_PM_TO_SYS(runnymede_AUD_AMP_EN),
"HP_AMP_EN");
if (!atomic_read(&aic3254_ctl))
curr_rx_mode &= ~BIT_RECEIVER;
}
}
开发者ID:DevChun,项目名称:htc-runnymede-ics-kernel,代码行数:21,代码来源:board-runnymede-audio.c
示例16: mecha_snddev_receiver_pamp_on
void mecha_snddev_receiver_pamp_on(int en)
{
pr_aud_info("%s %d\n", __func__, en);
if (en) {
mdelay(20);
/*gpio_set_value(MECHA_GPIO_AUD_AMP_EN, 1);*/
gpio_request(MECHA_GPIO_AUD_AMP_EN,"HP_AMP_EN");
gpio_direction_output(MECHA_GPIO_AUD_AMP_EN, 1);
set_handset_amp(1);
if (!atomic_read(&aic3254_ctl))
curr_rx_mode |= BIT_RECEIVER;
mdelay(60);
} else {
set_handset_amp(0);
/*gpio_set_value(MECHA_GPIO_AUD_AMP_EN, 0);*/
gpio_request(MECHA_GPIO_AUD_AMP_EN,"HP_AMP_EN");
gpio_direction_output(MECHA_GPIO_AUD_AMP_EN, 0);
if (!atomic_read(&aic3254_ctl))
curr_rx_mode &= ~BIT_RECEIVER;
}
}
开发者ID:MaceksMod,项目名称:mecha-ics-mr-3.0.16,代码行数:21,代码来源:board-mecha-audio.c
示例17: doubleshot_snddev_receiver_pamp_on
void doubleshot_snddev_receiver_pamp_on(int en)
{
pr_aud_info("%s %d\n", __func__, en);
if (en) {
/* enable rx route */
if (system_rev == XA_DEV) {
set_handset_amp(1);
gpio_set_value(PM8058_GPIO_PM_TO_SYS(DOUBLESHOT_AUD_HANDSET_ENO), 1);
}
if (!atomic_read(&aic3254_ctl))
curr_rx_mode |= BIT_RECEIVER;
} else {
/* disable rx route */
if (system_rev == XA_DEV) {
set_handset_amp(0);
gpio_set_value(PM8058_GPIO_PM_TO_SYS(DOUBLESHOT_AUD_HANDSET_ENO), 0);
}
if (!atomic_read(&aic3254_ctl))
curr_rx_mode &= ~BIT_RECEIVER;
}
}
开发者ID:scverhagen,项目名称:htc-kernel-doubleshot,代码行数:21,代码来源:board-doubleshot-audio.c
示例18: runnymede_audio_2v85_enable
static unsigned int runnymede_audio_2v85_enable(int en)
{
int rc = 0;
mutex_lock(&audio_2v85_usage_lock);
if (en) {
if (audio_2v85_usage_counter == 0)
rc = runnymede_audio_2v85_power_on(1);
audio_2v85_usage_counter++;
} else {
if (audio_2v85_usage_counter > 0) {
audio_2v85_usage_counter--;
if (audio_2v85_usage_counter == 0)
rc = runnymede_audio_2v85_power_on(0);
} else
pr_aud_info("%s: counter error!\n", __func__);
}
mutex_unlock(&audio_2v85_usage_lock);
return rc;
}
开发者ID:DutchDanny,项目名称:runnymede-2.6.35.13,代码行数:21,代码来源:board-runnymede-audio.c
示例19: update_aic3254_info
int update_aic3254_info(struct aic3254_info *info)
{
struct msm_snddev_info *dev_info;
int rc = 0;
dev_info = audio_dev_ctrl_find_dev(info->dev_id);
if (IS_ERR(dev_info))
rc = -ENODEV;
else {
if ((dev_info->copp_id == PRIMARY_I2S_RX) ||
(dev_info->copp_id == PRIMARY_I2S_TX)) {
struct snddev_icodec_state *icodec;
icodec = dev_info->private_data;
icodec->data->aic3254_id = info->path_id;
pr_aud_info("%s: update aic3254 id of device %s as %d\n",
__func__, dev_info->name, icodec->data->aic3254_id);
}
}
return rc;
}
开发者ID:AmeriCanAndroid,项目名称:aca-evo3d-omega-htc-35,代码行数:21,代码来源:snddev_icodec.c
示例20: snddev_icodec_close
static int snddev_icodec_close(struct msm_snddev_info *dev_info)
{
int rc = 0;
struct snddev_icodec_state *icodec;
struct snddev_icodec_drv_state *drv = &snddev_icodec_drv;
if (!dev_info) {
rc = -EINVAL;
goto error;
}
icodec = dev_info->private_data;
pr_aud_info("snddev_icodec_close: device %s\n", dev_info->name);
if (icodec->data->capability & SNDDEV_CAP_RX) {
mutex_lock(&drv->rx_lock);
if (!drv->rx_active) {
mutex_unlock(&drv->rx_lock);
rc = -EPERM;
goto error;
}
rc = snddev_icodec_close_rx(icodec);
if (!IS_ERR_VALUE(rc))
drv->rx_active = 0;
mutex_unlock(&drv->rx_lock);
} else {
mutex_lock(&drv->tx_lock);
if (!drv->tx_active) {
mutex_unlock(&drv->tx_lock);
rc = -EPERM;
goto error;
}
rc = snddev_icodec_close_tx(icodec);
if (!IS_ERR_VALUE(rc))
drv->tx_active = 0;
mutex_unlock(&drv->tx_lock);
}
error:
return rc;
}
开发者ID:MaxGomez,项目名称:HTC-SPADE-7x30-3.0-ION,代码行数:40,代码来源:snddev_icodec.c
注:本文中的pr_aud_info函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论