imx-ks 积分好难.docVIP

  • 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

文档评论(0)

1亿VIP精品文档

相关文档