Before realising the motherboard switch was set to i2s and wondering
why I had no codecs I cooked up this patch. Almost entirely
cosmetic, Change it, Take it or leave it, obviously.
Note APPLE comment in azalia_codec.c added simply because quirk
present for CS4206 and CS4208 and so guessed at relevance for 4207.
Thanks
Index: src/sys/dev/pci/azalia.c
===================================================================
RCS file: /cvs/src/sys/dev/pci/azalia.c,v
retrieving revision 1.238
diff -u -p -u -p -r1.238 azalia.c
--- src/sys/dev/pci/azalia.c 22 Sep 2017 06:33:44 -0000 1.238
+++ src/sys/dev/pci/azalia.c 22 Nov 2017 15:42:47 -0000
@@ -458,6 +458,7 @@ azalia_configure_pci(azalia_t *az)
case PCI_PRODUCT_INTEL_C600_HDA:
case PCI_PRODUCT_INTEL_C610_HDA:
case PCI_PRODUCT_INTEL_BSW_HDA:
+ case PCI_PRODUCT_INTEL_APOLLO_LAKE_HDA:
reg = azalia_pci_read(az->pc, az->tag,
INTEL_PCIE_NOSNOOP_REG);
reg &= INTEL_PCIE_NOSNOOP_MASK;
Index: src/sys/dev/pci/azalia_codec.c
===================================================================
RCS file: /cvs/src/sys/dev/pci/azalia_codec.c,v
retrieving revision 1.172
diff -u -p -u -p -r1.172 azalia_codec.c
--- src/sys/dev/pci/azalia_codec.c 28 Mar 2017 04:54:44 -0000 1.172
+++ src/sys/dev/pci/azalia_codec.c 22 Nov 2017 15:45:45 -0000
@@ -72,6 +72,13 @@ azalia_codec_init_vtbl(codec_t *this)
AZ_QRK_GPIO_UNMUTE_3;
}
break;
+ case 0x10134207:
+ this->name = "Cirrus Logic CS4207";
+ if (this->subid == 0x72708086) { /* APPLE_MBA? */
+ this->qrks |= AZ_QRK_GPIO_UNMUTE_0 |
+ AZ_QRK_GPIO_UNMUTE_1;
+ }
+ break;
case 0x10134208:
this->name = "Cirrus Logic CS4208";
if (this->subid == 0x72708086) { /* APPLE_MBA6_1 */
Index: src/sys/dev/pci/pcidevs
===================================================================
RCS file: /cvs/src/sys/dev/pci/pcidevs,v
retrieving revision 1.1825
diff -u -p -u -p -r1.1825 pcidevs
--- src/sys/dev/pci/pcidevs 28 Aug 2017 09:43:18 -0000 1.1825
+++ src/sys/dev/pci/pcidevs 22 Nov 2017 15:48:08 -0000
@@ -4557,6 +4557,7 @@ product INTEL CORE7G_U_GT2_2 0x591d HD G
product INTEL CORE7G_Y_GT2 0x591e HD Graphics 615
product INTEL CORE7G_U_GT3_15W 0x5926 Iris Plus Graphics 640
product INTEL CORE7G_U_GT3_28W 0x5927 Iris Plus Graphics 650
+product INTEL APOLLO_LAKE_HDA 0x5a98 Apollo Lake HD Audio
product INTEL 5100_HB 0x65c0 5100 Host
product INTEL 5100_PCIE_2 0x65e2 5100 PCIE
product INTEL 5100_PCIE_3 0x65e3 5100 PCIE