Michael Niewöhner | 10e47d8 | 2022-03-01 20:47:43 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
| 3 | #include <device/azalia_device.h> |
Elyes Haouas | 193e86b | 2022-10-22 22:16:24 +0200 | [diff] [blame] | 4 | #include <stdint.h> |
Michael Niewöhner | 10e47d8 | 2022-03-01 20:47:43 +0100 | [diff] [blame] | 5 | |
| 6 | const u32 cim_verb_data[] = { |
| 7 | /* Realtek ALC293 */ |
| 8 | 0x10ec0293, /* Vendor ID */ |
| 9 | 0x155814a1, /* Subsystem ID */ |
| 10 | 12, /* Number of entries */ |
| 11 | AZALIA_SUBVENDOR(0, 0x155814a1), |
| 12 | |
| 13 | /* Microphone (display lid), vendor value: 0x90a60130 */ |
| 14 | AZALIA_PIN_CFG(0, 0x12, AZALIA_PIN_DESC( |
Nicholas Sudsgaard | 4a62b8a | 2024-02-22 13:33:15 +0900 | [diff] [blame] | 15 | AZALIA_INTEGRATED, |
Michael Niewöhner | e2d6f7e | 2024-02-24 11:25:24 +0100 | [diff] [blame^] | 16 | AZALIA_MOBILE_LID_INSIDE, /* vendor: AZALIA_INTERNAL */ |
Nicholas Sudsgaard | 4a62b8a | 2024-02-22 13:33:15 +0900 | [diff] [blame] | 17 | AZALIA_MIC_IN, |
| 18 | AZALIA_OTHER_DIGITAL, |
| 19 | AZALIA_COLOR_UNKNOWN, |
| 20 | AZALIA_NO_JACK_PRESENCE_DETECT, |
Michael Niewöhner | 10e47d8 | 2022-03-01 20:47:43 +0100 | [diff] [blame] | 21 | 3, 0) |
| 22 | ), |
| 23 | |
| 24 | /* Integrated speakers, vendor value: 0x90170110 */ |
| 25 | AZALIA_PIN_CFG(0, 0x14, AZALIA_PIN_DESC( |
Nicholas Sudsgaard | 4a62b8a | 2024-02-22 13:33:15 +0900 | [diff] [blame] | 26 | AZALIA_INTEGRATED, |
Michael Niewöhner | e2d6f7e | 2024-02-24 11:25:24 +0100 | [diff] [blame^] | 27 | AZALIA_LOCATION_OTHER | AZALIA_BOTTOM, /* vendor: AZALIA_INTERNAL */ |
Nicholas Sudsgaard | 4a62b8a | 2024-02-22 13:33:15 +0900 | [diff] [blame] | 28 | AZALIA_SPEAKER, |
| 29 | AZALIA_OTHER_ANALOG, |
| 30 | AZALIA_COLOR_UNKNOWN, |
| 31 | AZALIA_NO_JACK_PRESENCE_DETECT, |
Michael Niewöhner | 10e47d8 | 2022-03-01 20:47:43 +0100 | [diff] [blame] | 32 | 1, 0) |
| 33 | ), |
| 34 | |
| 35 | /* Headphones, vendor value: 0x02211020 */ |
| 36 | AZALIA_PIN_CFG(0, 0x15, AZALIA_PIN_DESC( |
Nicholas Sudsgaard | 4a62b8a | 2024-02-22 13:33:15 +0900 | [diff] [blame] | 37 | AZALIA_JACK, |
Nicholas Sudsgaard | 4e8bbc1 | 2024-02-25 09:32:33 +0900 | [diff] [blame] | 38 | /* vendor: AZALIA_EXTERNAL_PRIMARY_CHASSIS | AZALIA_FRONT */ |
| 39 | AZALIA_EXTERNAL_PRIMARY_CHASSIS | AZALIA_RIGHT, |
Nicholas Sudsgaard | 4a62b8a | 2024-02-22 13:33:15 +0900 | [diff] [blame] | 40 | AZALIA_HP_OUT, |
| 41 | AZALIA_STEREO_MONO_1_8, |
| 42 | AZALIA_BLACK, |
| 43 | AZALIA_JACK_PRESENCE_DETECT, |
Michael Niewöhner | 10e47d8 | 2022-03-01 20:47:43 +0100 | [diff] [blame] | 44 | 2, 0) |
| 45 | ), |
| 46 | |
| 47 | /* ext. Microphone, vendor value: 0x411111f0, linux override: 0x01a1913c */ |
| 48 | AZALIA_PIN_CFG(0, 0x1a, AZALIA_PIN_DESC( |
Nicholas Sudsgaard | 4a62b8a | 2024-02-22 13:33:15 +0900 | [diff] [blame] | 49 | AZALIA_JACK, |
Michael Niewöhner | e2d6f7e | 2024-02-24 11:25:24 +0100 | [diff] [blame^] | 50 | /* linux: AZALIA_EXTERNAL_PRIMARY_CHASSIS | AZALIA_REAR */ |
Nicholas Sudsgaard | 4e8bbc1 | 2024-02-25 09:32:33 +0900 | [diff] [blame] | 51 | AZALIA_EXTERNAL_PRIMARY_CHASSIS | AZALIA_RIGHT, |
Nicholas Sudsgaard | 4a62b8a | 2024-02-22 13:33:15 +0900 | [diff] [blame] | 52 | AZALIA_MIC_IN, |
| 53 | AZALIA_STEREO_MONO_1_8, |
Michael Niewöhner | e2d6f7e | 2024-02-24 11:25:24 +0100 | [diff] [blame^] | 54 | AZALIA_BLACK, /* linux: AZALIA_PINK */ |
Nicholas Sudsgaard | 4a62b8a | 2024-02-22 13:33:15 +0900 | [diff] [blame] | 55 | AZALIA_NO_JACK_PRESENCE_DETECT, |
Michael Niewöhner | 10e47d8 | 2022-03-01 20:47:43 +0100 | [diff] [blame] | 56 | 3, 12) |
| 57 | ), |
| 58 | |
| 59 | /* PCBEEP, vendor value: 0x41748245 */ |
| 60 | AZALIA_PIN_CFG(0, 0x1d, AZALIA_PIN_DESC( |
Nicholas Sudsgaard | 4a62b8a | 2024-02-22 13:33:15 +0900 | [diff] [blame] | 61 | AZALIA_INTEGRATED, /* vendor: AZALIA_NC */ |
Nicholas Sudsgaard | 4e8bbc1 | 2024-02-25 09:32:33 +0900 | [diff] [blame] | 62 | AZALIA_INTERNAL, /* vendor: AZALIA_EXTERNAL_PRIMARY_CHASSIS | AZALIA_REAR */ |
Nicholas Sudsgaard | 4a62b8a | 2024-02-22 13:33:15 +0900 | [diff] [blame] | 63 | AZALIA_DEVICE_OTHER, /* vendor: AZALIA_MODEM_HANDSET_SIDE */ |
| 64 | AZALIA_OTHER_ANALOG, /* vendor: AZALIA_RCA */ |
| 65 | AZALIA_COLOR_UNKNOWN, /* vendor: AZALIA_PURPLE */ |
| 66 | AZALIA_NO_JACK_PRESENCE_DETECT, /* vendor: 2 */ |
Michael Niewöhner | 10e47d8 | 2022-03-01 20:47:43 +0100 | [diff] [blame] | 67 | 4, 5) |
| 68 | ), |
| 69 | |
| 70 | AZALIA_PIN_CFG(0, 0x13, 0x40000000), /* NC, but different from 0x411111f0 */ |
| 71 | AZALIA_PIN_CFG(0, 0x16, AZALIA_PIN_CFG_NC(0)), |
| 72 | AZALIA_PIN_CFG(0, 0x18, AZALIA_PIN_CFG_NC(0)), |
| 73 | AZALIA_PIN_CFG(0, 0x19, AZALIA_PIN_CFG_NC(0)), |
| 74 | AZALIA_PIN_CFG(0, 0x1b, AZALIA_PIN_CFG_NC(0)), |
| 75 | AZALIA_PIN_CFG(0, 0x1e, AZALIA_PIN_CFG_NC(0)), |
| 76 | }; |
| 77 | |
| 78 | const u32 pc_beep_verbs[] = {}; |
| 79 | |
| 80 | AZALIA_ARRAY_SIZES; |