Skip to content
Snippets Groups Projects
Select Git revision
  • 75babcacede876608f14ef1a20e795ce17ae637f
  • vme-testing default
  • ci-test
  • master
  • remoteproc
  • am625-sk-ov5640
  • pcal6534-upstreaming
  • lps22df-upstreaming
  • msc-upstreaming
  • imx8mp
  • iio/noa1305
  • vme-next
  • vme-next-4.14-rc4
  • v4.14-rc4
  • v4.14-rc3
  • v4.14-rc2
  • v4.14-rc1
  • v4.13
  • vme-next-4.13-rc7
  • v4.13-rc7
  • v4.13-rc6
  • v4.13-rc5
  • v4.13-rc4
  • v4.13-rc3
  • v4.13-rc2
  • v4.13-rc1
  • v4.12
  • v4.12-rc7
  • v4.12-rc6
  • v4.12-rc5
  • v4.12-rc4
  • v4.12-rc3
32 results

highmem.c

Blame
  • patch_realtek.c 167.91 KiB
    /*
     * Universal Interface for Intel High Definition Audio Codec
     *
     * HD audio interface patch for Realtek ALC codecs
     *
     * Copyright (c) 2004 Kailang Yang <kailang@realtek.com.tw>
     *                    PeiSen Hou <pshou@realtek.com.tw>
     *                    Takashi Iwai <tiwai@suse.de>
     *                    Jonathan Woithe <jwoithe@physics.adelaide.edu.au>
     *
     *  This driver is free software; you can redistribute it and/or modify
     *  it under the terms of the GNU General Public License as published by
     *  the Free Software Foundation; either version 2 of the License, or
     *  (at your option) any later version.
     *
     *  This driver is distributed in the hope that it will be useful,
     *  but WITHOUT ANY WARRANTY; without even the implied warranty of
     *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     *  GNU General Public License for more details.
     *
     *  You should have received a copy of the GNU General Public License
     *  along with this program; if not, write to the Free Software
     *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
     */
    
    #include <linux/init.h>
    #include <linux/delay.h>
    #include <linux/slab.h>
    #include <linux/pci.h>
    #include <linux/module.h>
    #include <sound/core.h>
    #include <sound/jack.h>
    #include "hda_codec.h"
    #include "hda_local.h"
    #include "hda_beep.h"
    #include "hda_jack.h"
    
    /* unsol event tags */
    #define ALC_FRONT_EVENT		0x01
    #define ALC_DCVOL_EVENT		0x02
    #define ALC_HP_EVENT		0x04
    #define ALC_MIC_EVENT		0x08
    
    /* for GPIO Poll */
    #define GPIO_MASK	0x03
    
    /* extra amp-initialization sequence types */
    enum {
    	ALC_INIT_NONE,
    	ALC_INIT_DEFAULT,
    	ALC_INIT_GPIO1,
    	ALC_INIT_GPIO2,
    	ALC_INIT_GPIO3,
    };
    
    struct alc_customize_define {
    	unsigned int  sku_cfg;
    	unsigned char port_connectivity;
    	unsigned char check_sum;
    	unsigned char customization;
    	unsigned char external_amp;
    	unsigned int  enable_pcbeep:1;
    	unsigned int  platform_type:1;
    	unsigned int  swap:1;
    	unsigned int  override:1;
    	unsigned int  fixup:1; /* Means that this sku is set by driver, not read from hw */
    };
    
    struct alc_fixup;