コード例 #1
0
ファイル: hda_verb.c プロジェクト: kmalkki/coreboot
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
 */

#include <device/azalia_device.h>

const u32 cim_verb_data[] = {
	/* coreboot specific header */
	0x83847680,	/* Codec Vendor / Device ID: SigmaTel STAC9221 A1 */
	0x106b2200,	/* Subsystem ID  */
	0x0000000B,	/* Number of 4 dword sets */

	/* NID 0x01: Subsystem ID.  */
	AZALIA_SUBVENDOR(0x0, 0x106B2200),

	/* NID 0x0A.  */
	AZALIA_PIN_CFG(0x0, 0x0A, 0x0321E21F),

	/* NID 0x0B.  */
	AZALIA_PIN_CFG(0x0, 0x0B, 0x03A1E02E),

	/* NID 0x0C.  */
	AZALIA_PIN_CFG(0x0, 0x0C, 0x9017E110),

	/* NID 0x0D.  */
	AZALIA_PIN_CFG(0x0, 0x0D, 0x9017E11F),

	/* NID 0x0E.  */
	AZALIA_PIN_CFG(0x0, 0x0E, 0x400000FE),

	/* NID 0x0F  */
	AZALIA_PIN_CFG(0x0, 0x0F, 0x0381E020),
コード例 #2
0
ファイル: hda_verb.c プロジェクト: killbug2004/coreboot
    0x10ec0269,	// Codec Vendor / Device ID: Realtek ALC269VC
    0x17aa21fb,	// Subsystem ID
    0x00000013,	// Number of 4 dword sets

    /* Bits 31:28 - Codec Address */
    /* Bits 27:20 - NID */
    /* Bits 19:8 - Verb ID */
    /* Bits 7:0  - Payload */

    /* NID 0x01 - NodeInfo */
    AZALIA_SUBVENDOR(0x0, 0x17AA21FB),

    /* NID 0x0A - External Microphone Connector
     * Config=0x04A11020 (External,Right; MicIn,3.5mm; Black,JD; DA,Seq)
     */
    AZALIA_PIN_CFG(0x0, 0x0A, 0x04A11020),

    /* NID 0x0B - Headphone Connector
     * Config=0x0421101F (External,Right; HP,3.5mm; Black,JD; DA,Seq)
     */
    AZALIA_PIN_CFG(0x0, 0x0B, 0x0421101F),

    /* NID 0x0C - Not connected
     * Config=0x40F000F0 (N/A,N/A; Other,Unknown; Unknown,JD; DA,Seq)
     */
    AZALIA_PIN_CFG(0x0, 0x0C, 0x40F000F0),

    /* NID 0x0D - Internal Speakers
     * Config=0x90170110 (Fixed,Int; Speaker,Other Analog; Unknown,nJD; DA,Seq)
     */
    AZALIA_PIN_CFG(0x0, 0x0D, 0x90170110),
コード例 #3
0
ファイル: hda_verb.c プロジェクト: canistation/coreboot
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

#include <device/azalia_device.h>

const u32 cim_verb_data[] = {
	0x10ec0887, /* Codec Vendor / Device ID: Realtek */
	0x10438444, /* Subsystem ID */

	0x0000000f, /* Number of 4 dword sets */
	/* NID 0x01: Subsystem ID.  */
	AZALIA_SUBVENDOR(0x0, 0x10438444),

	/* NID 0x11.  */
	AZALIA_PIN_CFG(0x0, 0x11, 0x99430140),

	/* NID 0x12.  */
	AZALIA_PIN_CFG(0x0, 0x12, 0x411111f0),

	/* NID 0x14.  */
	AZALIA_PIN_CFG(0x0, 0x14, 0x01014010),

	/* NID 0x15.  */
	AZALIA_PIN_CFG(0x0, 0x15, 0x01011012),

	/* NID 0x16.  */
	AZALIA_PIN_CFG(0x0, 0x16, 0x01016011),

	/* NID 0x17.  */
	AZALIA_PIN_CFG(0x0, 0x17, 0x01012014),
コード例 #4
0
ファイル: hda_verb.c プロジェクト: canistation/coreboot
	0x10ec0283,	// Codec Vendor / Device ID: Realtek ALC283
	0x10ec0283,	// Subsystem ID
	0x0000000e,	// Number of jacks (NID entries)

	0x0017ff00,	// Function Reset
	0x0017ff00,	// Double Function Reset
	0x000F0000,	// Pad - get vendor id
	0x000F0002,	// Pad - get revision id

	/* NID 0x01, HDA Codec Subsystem ID Verb Table */
	AZALIA_SUBVENDOR(0x0, 0x11790670),

	/* Pin Widget Verb Table */

	/* Pin Complex (NID 0x12) DMIC - Disabled */
	AZALIA_PIN_CFG(0x0, 0x12, 0x411111f0),

	/* Pin Complex (NID 0x14) SPKR-OUT PORTD - Disabled */
	AZALIA_PIN_CFG(0x0, 0x14, 0x401111f0),

	/* Pin Complex (NID 0x17) MONO Out - Disabled */
	AZALIA_PIN_CFG(0x0, 0x17, 0x411111f0),

	/* Pin Complex (NID 0x18) MIC1 PORTB */
	// group 1, cap 1
	// black, jack detect
	// mic in, analog
	// connector, left panel
	AZALIA_PIN_CFG(0x0, 0x19, 0x03a71011),

	/* Pin Complex (NID 0x19) MIC2 PORTF - Disabled */
コード例 #5
0
ファイル: hda_verb.c プロジェクト: RafaelRMachado/Coreboot
 * 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.
 */

#include <device/azalia_device.h>

const u32 cim_verb_data[] = {
	/* coreboot specific header */
	0x14f15051,	// Conexant CX20561 (Hermosa)
	0x17aa211c,	// Subsystem ID
	0x00000008,	// Number of entries

	/* Pin Widget Verb Table */

	AZALIA_PIN_CFG(0, 0x16, 0x022140f0),
	AZALIA_PIN_CFG(0, 0x17, 0x61a190f0),
	AZALIA_PIN_CFG(0, 0x18, 0x02a190f0),
	AZALIA_PIN_CFG(0, 0x19, 0x40f000f0),
	AZALIA_PIN_CFG(0, 0x1a, 0x901701f0),
	AZALIA_PIN_CFG(0, 0x1b, 0x40f001f0),
	AZALIA_PIN_CFG(0, 0x1c, 0x40f001f0),
	AZALIA_PIN_CFG(0, 0x1d, 0x90a601f0)
};

const u32 pc_beep_verbs[] = {
	0x00170500,	/* power up codec */
	0x01470500,	/* power up speakers */
	0x01470100,	/* select lout1 (input 0x0) for speakers */
	0x01470740,	/* enable speakers output */
	0x00b37517,	/* unmute beep (mixer's input 0x5), set amp 0dB */
コード例 #6
0
ファイル: hda_verb.c プロジェクト: canistation/coreboot
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

#include <device/azalia_device.h>

const u32 cim_verb_data[] = {
	/* coreboot specific header */
	/* Realtek ALC662 rev1 */
	0x10ec0662, /* Vendor ID */
	0x17aa304f, /* Subsystem ID */
	10, /* Number of entries */

	/* Pin Widget Verb Table */

	AZALIA_PIN_CFG(0, 0x14, 0x01014010),
	AZALIA_PIN_CFG(0, 0x15, 0x99130120),
	AZALIA_PIN_CFG(0, 0x16, 0x411111f0),
	AZALIA_PIN_CFG(0, 0x18, 0x01a19830),
	AZALIA_PIN_CFG(0, 0x19, 0x02a19831),
	AZALIA_PIN_CFG(0, 0x1a, 0x0181303f),
	AZALIA_PIN_CFG(0, 0x1b, 0x0221401f),
	AZALIA_PIN_CFG(0, 0x1c, 0x593301f0),
	AZALIA_PIN_CFG(0, 0x1d, 0x4004c601),
	AZALIA_PIN_CFG(0, 0x1e, 0x411111f0),
};

const u32 pc_beep_verbs[0] = {};

const u32 pc_beep_verbs_size = ARRAY_SIZE(pc_beep_verbs);
const u32 cim_verb_data_size = ARRAY_SIZE(cim_verb_data);
コード例 #7
0
ファイル: hda_verb.c プロジェクト: kmalkki/coreboot
const u32 cim_verb_data[] = {
	/* coreboot specific header */
	0x10134210,	// Codec Vendor / Device ID: Realtek ALC262
	0x144db082,	// Subsystem ID
	0x00000007,	// Number of jacks

	/* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x144dc0c2 */
	AZALIA_SUBVENDOR(0x0, 0x144db082),

	0x00170500,

	/* Pin Widget Verb Table */

	/* Pin Complex (NID 0x05) */
	AZALIA_PIN_CFG(0x0, 0x05, 0x022110f0),

	/* Pin Complex (NID 0x06) */
	AZALIA_PIN_CFG(0x0, 0x06, 0x901700f0),

	/* Pin Complex (NID 0x07) */
	AZALIA_PIN_CFG(0x0, 0x07, 0x02a110f0),

	/* Pin Complex (NID 0x08) */
	AZALIA_PIN_CFG(0x0, 0x08, 0x77a70037),

	/* Pin Complex (NID 0x09) */
	AZALIA_PIN_CFG(0x0, 0x09, 0xb7a6003e),

	/* Pin Complex (NID 0x0a) */
	AZALIA_PIN_CFG(0x0, 0x0a, 0x434510f0)
コード例 #8
0
ファイル: hda_verb.c プロジェクト: kmalkki/coreboot
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
 */

#include <device/azalia_device.h>

const u32 cim_verb_data[] = {
	/* coreboot specific header */
	0x10ec0262,	// Codec Vendor / Device ID: Realtek ALC262
	0x43528986,	// Subsystem ID
	0x0000000c,	// Number of entries

	/* Pin Widget Verb Table */

	/* Pin Complex (NID 0x11), S/PDIF-OUT2: not connected */
	AZALIA_PIN_CFG(0, 0x11, 0x411111f0),
	/* Pin Complex (NID 0x14), LINE_OUT (port D): Speakers */
	AZALIA_PIN_CFG(0, 0x14, 0x99130110),
	/* Pin Complex (NID 0x15), HP_OUT (port A): Head phones */
	AZALIA_PIN_CFG(0, 0x15, 0x0121411f),
	/* Pin Complex (NID 0x16), MONO-OUT: not connected */
	AZALIA_PIN_CFG(0, 0x16, 0x411111f0),
	/* Pin Complex (NID 0x18), MIC1 (port B): Microphone */
	AZALIA_PIN_CFG(0, 0x18, 0x01a19920),
	/* Pin Complex (NID 0x19), MIC2 (port F): not connected */
	AZALIA_PIN_CFG(0, 0x19, 0x411111f0),
	/* Pin Complex (NID 0x1a), LINE1 (port C): Line-In */
	AZALIA_PIN_CFG(0, 0x1a, 0x01813121),
	/* Pin Complex (NID 0x1b), LINE2 (port E): MDC */
	AZALIA_PIN_CFG(0, 0x1b, 0x9983012f),
	/* Pin Complex (NID 0x1c), CD_IN */
コード例 #9
0
ファイル: hda_verb.c プロジェクト: RafaelRMachado/Coreboot
	0x111D76E5,	// Codec Vendor / Device ID: IDT 92HD99
	0x103C18F9,	// Subsystem ID
	0x00000073,	// Number of 4 dword sets

/* Bits 31:28 - Codec Address */
/* Bits 27:20 - NID */
/* Bits 19:8 - Verb ID */
/* Bits 7:0  - Payload */

/* NID 0x01 - NodeInfo */
	AZALIA_SUBVENDOR(0x0, 0x103C18F9),

/* NID 0x0A - External Microphone Connector
 * Config=0x04A11020 (External,Right; MicIn,3.5mm; Black,JD; DA,Seq)
 */
	AZALIA_PIN_CFG(0x0, 0x0A, 0x04A11020),

/* NID 0x0B - Headphone Connector
 * Config=0x0421101F (External,Right; HP,3.5mm; Black,JD; DA,Seq)
 */
	AZALIA_PIN_CFG(0x0, 0x0B, 0x0421101F),

/* NID 0x0C - Not connected
 * Config=0x40F000F0 (N/A,N/A; Other,Unknown; Unknown,JD; DA,Seq)
 */
	AZALIA_PIN_CFG(0x0, 0x0C, 0x40F000F0),

/* NID 0x0D - Internal Speakers
 * Config=0x90170110 (Fixed,Int; Speaker,Other Analog; Unknown,nJD; DA,Seq)
 */
	AZALIA_PIN_CFG(0x0, 0x0D, 0x90170110),
コード例 #10
0
ファイル: hda_verb.c プロジェクト: AdriDlu/coreboot
#include <device/azalia_device.h>

const u32 cim_verb_data[] = {
	/* coreboot specific header */
	0x10134210,	// Codec Vendor / Device ID: Cirrus Logic CS4210
	0x10134210,	// Subsystem ID
	0x00000007,	// Number of jacks

	/* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x10134210 */
	AZALIA_SUBVENDOR(0x0, 0x10134210),

	/* Pin Widget Verb Table */

	/* Pin Complex (NID 0x05)     1/8   Gray  HP Out at Ext Front */
	AZALIA_PIN_CFG(0x0, 0x05, 0x022120f0),

	/* Pin Complex (NID 0x06)  Analog Unknown  Speaker at Int N/A */
	AZALIA_PIN_CFG(0x0, 0x06, 0x90170010),

	/* Pin Complex (NID 0x07)     1/8    Grey  Line In at Ext Front */
	AZALIA_PIN_CFG(0x0, 0x07, 0x02a120f0),

	/* Pin Complex (NID 0x08)  Analog Unknown  Mic at Oth Mobile-In */
	AZALIA_PIN_CFG(0x0, 0x08, 0x77a70037),

	/* Pin Complex (NID 0x09) Digital Unknown  Mic at Oth Mobile-In */
	AZALIA_PIN_CFG(0x0, 0x09, 0x77a6003e),

	/* Pin Complex (NID 0x0a) Optical   Black  SPDIF Out at Ext N/A */
	AZALIA_PIN_CFG(0x0, 0x0a, 0x434510f0),
コード例 #11
0
ファイル: hda_verb.c プロジェクト: kmalkki/coreboot
#include <device/azalia_device.h>

const u32 cim_verb_data[] = {
	/* coreboot specific header */
	0x11d4198b,	/* Codec Vendor / Device ID: Analog Devices AD1988B */
	0x104381f6,	/* Subsystem ID (0x1043 == ASUS) */
	0x0000000d,	/* Number of "pin complex" entries in the table */

	/* NID 0x01, FUNCTION, Designates this device as an audio codec */
	/* Set the Implementation ID (IID), here: 0x104381f6. */
	AZALIA_SUBVENDOR(0x0, 0x104381f6),

	/* "Pin complex" HDA widgets. Comments: Node ID, Name, Description. */

	/* NID 0x11, Port A, Front panel headphone jack */
	AZALIA_PIN_CFG(0x0, 0x11, 0x02214130),

	/* NID 0x12, Port D, Rear panel front speaker jack */
	AZALIA_PIN_CFG(0x0, 0x12, 0x01014010),

	/* NID 0x13, MONO_OUT, Monaural output pin */
	AZALIA_PIN_CFG(0x0, 0x13, 0x511711f0),

	/* NID 0x14, Port B, Front panel microphone jack */
	AZALIA_PIN_CFG(0x0, 0x14, 0x02a19122),

	/* NID 0x15, Port C, Rear panel line-in jack */
	AZALIA_PIN_CFG(0x0, 0x15, 0x01813021),

	/* NID 0x16, Port F, Rear panel surround-back (5.1) jack */
	AZALIA_PIN_CFG(0x0, 0x16, 0x01011012),
コード例 #12
0
ファイル: hda_verb.c プロジェクト: lynxis/coreboot-signed
 */

#include <device/azalia_device.h>

const u32 cim_verb_data[] = {
	/* coreboot specific header */
	0x83847680,	/* Codec Vendor / Device ID: SigmaTel STAC9221 A1 */
#if CONFIG_BOARD_APPLE_MACBOOK11 || CONFIG_BOARD_APPLE_MACBOOK21
	0x106b2200,	/* Subsystem ID  */
	0x0000000B,	/* Number of 4 dword sets */

	/* NID 0x01: Subsystem ID.  */
	AZALIA_SUBVENDOR(0x0, 0x106B2200),

	/* NID 0x0A.  */
	AZALIA_PIN_CFG(0x0, 0x0A, 0x0321E21F),

	/* NID 0x0B.  */
	AZALIA_PIN_CFG(0x0, 0x0B, 0x03A1E02E),

	/* NID 0x0C.  */
	AZALIA_PIN_CFG(0x0, 0x0C, 0x9017E110),

	/* NID 0x0D.  */
	AZALIA_PIN_CFG(0x0, 0x0D, 0x9017E11F),

	/* NID 0x0E.  */
	AZALIA_PIN_CFG(0x0, 0x0E, 0x400000FE),

	/* NID 0x0F  */
	AZALIA_PIN_CFG(0x0, 0x0F, 0x0381E020),
コード例 #13
0
ファイル: hda_verb.c プロジェクト: AdriDlu/coreboot
#include <device/azalia_device.h>

const u32 cim_verb_data[] = {
	/* coreboot specific header */
	0x10ec0262,	// Codec Vendor / Device ID: Realtek ALC262
	0x10714700,	// Subsystem ID
	0x0000000d,	// Number of jacks

	/* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x10ec0000 */
	AZALIA_SUBVENDOR(0x0, 0x10EC0000),

	/* Pin Widget Verb Table */

	/* Pin Complex (NID 0x12), DMIC */
	AZALIA_PIN_CFG(0x0, 0x12, 0x411111F0),

	/* Pin Complex (NID 0x14), LINE_OUT (port D) */
	AZALIA_PIN_CFG(0x0, 0x14, 0x99130110),

	/* Pin Complex (NID 0x15), HP_OUT (port A) */
	AZALIA_PIN_CFG(0x0, 0x15, 0x01214020),

	/* Pin Complex (NID 0x16), MONO-OUT */
	AZALIA_PIN_CFG(0x0, 0x16, 0x411111F0),

	/* Pin Complex (NID 0x18), MIC1 (port B) */
	AZALIA_PIN_CFG(0x0, 0x18, 0x01A19830),

	/* Pin Complex (NID 0x19), MIC2 (port F) */
	AZALIA_PIN_CFG(0x0, 0x19, 0x99A30931),
コード例 #14
0
ファイル: hda_verb.c プロジェクト: AdriDlu/coreboot
 * 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.
 */

#include <device/azalia_device.h>

const u32 cim_verb_data[] = {
	/* coreboot specific header */
	0x10ec0887,
	0x1458a002,	// Subsystem ID
	0x0000000e,	// Number of entries

	/* Pin Widget Verb Table */

	AZALIA_PIN_CFG(0, 0x11, 0x411110f0),
	AZALIA_PIN_CFG(0, 0x12, 0x411111f0),
	AZALIA_PIN_CFG(0, 0x14, 0x01014410),
	AZALIA_PIN_CFG(0, 0x15, 0x411111f0),
	AZALIA_PIN_CFG(0, 0x16, 0x411111f0),
	AZALIA_PIN_CFG(0, 0x17, 0x411111f0),
	AZALIA_PIN_CFG(0, 0x18, 0x01a19c40),
	AZALIA_PIN_CFG(0, 0x19, 0x02a19c50),
	AZALIA_PIN_CFG(0, 0x1a, 0x0181344f),
	AZALIA_PIN_CFG(0, 0x1b, 0x02214c20),
	AZALIA_PIN_CFG(0, 0x1c, 0x593301f0),
	AZALIA_PIN_CFG(0, 0x1d, 0x4005c603),
	AZALIA_PIN_CFG(0, 0x1e, 0x014b6130),
	AZALIA_PIN_CFG(0, 0x1f, 0x01cb7160),
};
コード例 #15
0
ファイル: hda_verb.c プロジェクト: canistation/coreboot
 *
 * This program 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.
 */

#include <device/azalia_device.h>

const u32 cim_verb_data[] = {
	/* coreboot specific header */
	0x10ec0662,     /* Vendor ID */
	0x1458a002,     /* Subsystem ID */
	0x00000009,     /* Number of entries */

	/* Pin Widget Verb Table */
	AZALIA_PIN_CFG(0, 0x14, 0x01014010),
	AZALIA_PIN_CFG(0, 0x15, 0x411111f0),
	AZALIA_PIN_CFG(0, 0x16, 0x411111f0),
	AZALIA_PIN_CFG(0, 0x18, 0x01a19830),
	AZALIA_PIN_CFG(0, 0x19, 0x02a19c31),
	AZALIA_PIN_CFG(0, 0x1a, 0x0181303f),
	AZALIA_PIN_CFG(0, 0x1b, 0x02214c1f),
	AZALIA_PIN_CFG(0, 0x1c, 0x593301f0),
	AZALIA_PIN_CFG(0, 0x1d, 0x4005c603),
	AZALIA_PIN_CFG(0, 0x1e, 0x014b6120),
};

const u32 pc_beep_verbs[0] = {};
AZALIA_ARRAY_SIZES;
コード例 #16
0
ファイル: hda_verb.c プロジェクト: AdriDlu/coreboot
#include <device/azalia_device.h>

const u32 cim_verb_data[] = {
	/* coreboot specific header */
	0x10ec0269,	// Codec Vendor / Device ID: Realtek
	0x17aa21fe,	// Subsystem ID
	0x0000000c,	// Number of jacks

	/* NID 0x01, HDA Codec Subsystem ID Verb Table: 0x17aa21fe */
	AZALIA_SUBVENDOR(0x0, 0x17aa21fe),

	/* Pin Widget Verb Table */

	/* Pin Complex (NID 0x12): 0x90a60930 DMIC */
	AZALIA_PIN_CFG(0x0, 0x12, 0x90a60930),

	/* Pin Complex (NID 0x14): 0x90170110 SPEAKER-OUT (Port-D) */
	AZALIA_PIN_CFG(0x0, 0x14, 0x90170110),

	/* Pin Complex (NID 0x15): 0x0321101f HP-OUT (Port-A) */
	AZALIA_PIN_CFG(0x0, 0x15, 0x0321101f),

	/* Pin Complex (NID 0x17): 0x411111f0 MONO-OUT (Port-H) */
	AZALIA_PIN_CFG(0x0, 0x17, 0x411111f0),

	/* Pin Complex (NID 0x18): 0x03a11820 MIC1 (Port-B) */
	AZALIA_PIN_CFG(0x0, 0x18, 0x03a11820),

	/* Pin Complex (NID 0x19): 0x411111f0 MIC2 (Port-F) */
	AZALIA_PIN_CFG(0x0, 0x19, 0x411111f0),