- 6
- 0
- 约1.89万字
- 约 27页
- 2016-12-07 发布于河南
- 举报
imx-ks 积分好难
imx-ks 积分好难
/*
* imx-wm8962.c
*
* Copyright (C) 2012-2013 Freescale Semiconductor, Inc. All Rights Reserved.
*/
/*
* The code contained herein is licensed under the GNU General Public
* License. You may obtain a copy of the GNU General Public License
* Version 2 or later at the following locations:
*
* /licenses/gpl-license.html
* /copyleft/gpl.html
*/
#include linux/module.h
#include linux/moduleparam.h
#include linux/init.h
#include linux/delay.h
#include linux/pm.h
#include linux/bitops.h
#include linux/platform_device.h
#include linux/i2c.h
#include linux/err.h
#include linux/irq.h
#include linux/io.h
#include linux/fsl_devices.h
#include linux/slab.h
#include linux/clk.h
#include linux/switch.h
#include linux/kthread.h
#include sound/core.h
#include sound/pcm.h
#include sound/pcm_params.h
#include sound/soc.h
#include sound/soc-dapm.h
#include sound/initval.h
#include sound/jack.h
#include mach/dma.h
#include mach/clock.h
#include mach/audmux.h
#include mach/gpio.h
#include asm/mach-types.h
#include imx-ssi.h
#include ../codecs/wm8962.h
#define SABRESD_AMP_CONTROL1 IMX_GPIO_NR(4, 21)
#define SABRESD_AMP_CONTROL2 IMX_GPIO_NR(4, 22)
struct imx_priv {
int sysclk; /*mclk from the outside*/
int codec_sysclk;
int dai_hifi;
int hp_irq;
int hp_status;
int amic_irq;
int amic_status;
struct platform_device *pdev;
struct switch_dev sdev;
struct snd_pcm_substream *first_stream;
struct snd_pcm_substream *second_stream;
};
unsigned int sample_format = SNDRV_PCM_FMTBIT_S16_LE;
static struct imx_priv card_priv;
static struct snd_soc_card snd_soc_card_imx;
static struct snd_soc_codec *gcodec;
static struct snd_soc_jack imx_hp_jack;
static struct snd_soc_jack_pin imx_hp_jack_pins[] = {
#if 1
{
.pin = Headphone Jack,
.mask = SND_JACK_HEADSET,
},
#endif
};
static struct snd_soc_jack_gpio imx_hp_jack_gpio = {
.name = headphone detect,
.report = SND_JACK_HEADSET,
.debounce_time = 150,
.invert = 0,
};
static struct snd_soc_jack
您可能关注的文档
- 圆柱谐振腔.ppt
- 次粉.ppt
- 髂内动脉结扎术.ppt
- 名老中医之路精选.doc
- 2013年最新三界书院编辑文档(搜狗输入法).doc
- 嘻哈文化.doc
- 摩托车维修技巧篇.txt.doc
- 十大道德建设人物.doc
- 标准护理计划.doc
- Manuscript Form.ppt
- 八年级语文下册na文言文阅读专练(二).pptx
- 2025年福建莆田秀屿区南日镇卫生院第一轮编外人员招聘2人笔试历年题库附答案解析.docx
- 八年级语文下册nb文言文阅读专练(一) (2).pptx
- 八年级语文下册n2 回延安 (5).pptx
- 2025年福建莆田秀屿区南日镇卫生院第一轮编外人员招聘2人笔试历年题库附答案解析.docx
- 2025年福建莆田市荔城区东洋中学代课教师招聘1人笔试试题附答案解析.docx
- 八年级语文下册nc文言文阅读专练(一) (3).pptx
- 2025年福建莆田市莆投智泊科技有限公司职业经理人招聘2人笔试历年题库附答案解析.docx
- 八年级语文下册ne写作 (2).pptx
- 2025年福建莆田市荔城区东洋中学代课教师招聘1人笔试备考题库附答案解析.docx
原创力文档

文档评论(0)