summaryrefslogtreecommitdiff
path: root/src/mainboard/apple/macbookair5_2/hda_verb.c
blob: 7650b131ceb498efa1d00568ba196553ced10e54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/* SPDX-License-Identifier: GPL-2.0-only */

#include <device/azalia_device.h>

const u32 cim_verb_data[] = {
	0x10134206, /* Codec Vendor / Device ID: Cirrus CS4206 */
	0x106b5600, /* Subsystem ID */

	11, /* Number of 4 dword sets */

	AZALIA_SUBVENDOR(0, 0x106b5600),
	AZALIA_PIN_CFG(0, 0x09, 0x0e2b4030),
	AZALIA_PIN_CFG(0, 0x0a, 0x400000f0),
	AZALIA_PIN_CFG(0, 0x0b, 0x90100120),
	AZALIA_PIN_CFG(0, 0x0c, 0x400000f0),
	AZALIA_PIN_CFG(0, 0x0d, 0x90a00110),
	AZALIA_PIN_CFG(0, 0x0e, 0x400000f0),
	AZALIA_PIN_CFG(0, 0x0f, 0x400000f0),
	AZALIA_PIN_CFG(0, 0x10, 0x400000f0),
	AZALIA_PIN_CFG(0, 0x12, 0x400000f0),
	AZALIA_PIN_CFG(0, 0x15, 0x400000f0),

	0x80862806, /* Codec Vendor / Device ID: Intel */
	0x80860101, /* Subsystem ID */

	4, /* Number of 4 dword sets */

	AZALIA_SUBVENDOR(3, 0x80860101),
	AZALIA_PIN_CFG(3, 0x05, 0x18560010),
	AZALIA_PIN_CFG(3, 0x06, 0x18560010),
	AZALIA_PIN_CFG(3, 0x07, 0x18560010),
};

const u32 pc_beep_verbs[] = {
	0x00270500, /* Set PS to D0 on DAC1 */
	0x00470500, /* Set PS to D0 on DAC3 */
	0x00270650, /* Set converter stream on DAC1 */
	0x00470650, /* Set converted stream on DAC3 */
};

AZALIA_ARRAY_SIZES;