hdaa_patches.c (268584) | hdaa_patches.c (269152) |
---|---|
1/*- 2 * Copyright (c) 2006 Stephane E. Potvin <sepotvin@videotron.ca> 3 * Copyright (c) 2006 Ariff Abdullah <ariff@FreeBSD.org> 4 * Copyright (c) 2008-2012 Alexander Motin <mav@FreeBSD.org> 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 28 unchanged lines hidden (view full) --- 37#include <dev/sound/pcm/sound.h> 38 39#include <sys/ctype.h> 40 41#include <dev/sound/pci/hda/hdac.h> 42#include <dev/sound/pci/hda/hdaa.h> 43#include <dev/sound/pci/hda/hda_reg.h> 44 | 1/*- 2 * Copyright (c) 2006 Stephane E. Potvin <sepotvin@videotron.ca> 3 * Copyright (c) 2006 Ariff Abdullah <ariff@FreeBSD.org> 4 * Copyright (c) 2008-2012 Alexander Motin <mav@FreeBSD.org> 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 28 unchanged lines hidden (view full) --- 37#include <dev/sound/pcm/sound.h> 38 39#include <sys/ctype.h> 40 41#include <dev/sound/pci/hda/hdac.h> 42#include <dev/sound/pci/hda/hdaa.h> 43#include <dev/sound/pci/hda/hda_reg.h> 44 |
45SND_DECLARE_FILE("$FreeBSD: head/sys/dev/sound/pci/hda/hdaa_patches.c 268584 2014-07-13 10:31:29Z markj $"); | 45SND_DECLARE_FILE("$FreeBSD: head/sys/dev/sound/pci/hda/hdaa_patches.c 269152 2014-07-27 08:44:15Z adrian $"); |
46 47static const struct { 48 uint32_t model; 49 uint32_t id; 50 uint32_t subsystemid; 51 uint32_t set, unset; 52 uint32_t gpio; 53} hdac_quirks[] = { --- 287 unchanged lines hidden (view full) --- 341 } 342 } else if (id == HDA_CODEC_CX20561 && 343 subid == LENOVO_B450_SUBVENDOR) { 344 switch (nid) { 345 case 22: 346 patch = "as=1 seq=15"; 347 break; 348 } | 46 47static const struct { 48 uint32_t model; 49 uint32_t id; 50 uint32_t subsystemid; 51 uint32_t set, unset; 52 uint32_t gpio; 53} hdac_quirks[] = { --- 287 unchanged lines hidden (view full) --- 341 } 342 } else if (id == HDA_CODEC_CX20561 && 343 subid == LENOVO_B450_SUBVENDOR) { 344 switch (nid) { 345 case 22: 346 patch = "as=1 seq=15"; 347 break; 348 } |
349 } else if (id == HDA_CODEC_CX20561 && 350 subid == LENOVO_T400_SUBVENDOR) { 351 switch (nid) { 352 case 22: 353 patch = "as=1 seq=15"; 354 break; 355 case 24: 356 patch = "as=2 seq=14"; 357 break; 358 case 26: 359 patch = "as=1 seq=0"; 360 break; 361 case 29: 362 patch = "as=2 seq=0"; 363 break; 364 } |
|
349 } else if (id == HDA_CODEC_CX20590 && 350 (subid == LENOVO_X1_SUBVENDOR || 351 subid == LENOVO_X220_SUBVENDOR || 352 subid == LENOVO_T420_SUBVENDOR || 353 subid == LENOVO_T520_SUBVENDOR || 354 subid == LENOVO_G580_SUBVENDOR)) { 355 switch (nid) { 356 case 25: --- 373 unchanged lines hidden --- | 365 } else if (id == HDA_CODEC_CX20590 && 366 (subid == LENOVO_X1_SUBVENDOR || 367 subid == LENOVO_X220_SUBVENDOR || 368 subid == LENOVO_T420_SUBVENDOR || 369 subid == LENOVO_T520_SUBVENDOR || 370 subid == LENOVO_G580_SUBVENDOR)) { 371 switch (nid) { 372 case 25: --- 373 unchanged lines hidden --- |