sound: Re-add Acer C720 support with some adjustments
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 8 Jan 2015 23:25:02 +0000 (15:25 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 8 Jan 2015 23:25:02 +0000 (15:25 -0800)
commit536a8300c32bdf0b5bba36cfda13cadeac20ce13
tree2cdeff764a944eca99ac52ce91acf18a43498c26
parent3a92efe3ce8f11b83b469609135c5fedaafa6632
sound: Re-add Acer C720 support with some adjustments

* Add the Acer C720 infrastructure back in.

* Move the core register programming patch into
  gnu/dev/sound/pci/hda/hda_acer_c720_patch.c along with the original
  GPL copyright from the linux file.

  This is the only part of the patch which could reasonably be said to
  have been taken from the linux driver.

* The rest of the patch is basically two things.

  First, mandatory adjustments to the NID routing to detect
  headphone insertion and removal, which was done through trial
  an error with my Acer and then verified against the linux driver.

  Second, we did include the disabling of the remixer based on a
  comment in the linux driver.  Basically NID 11 is disabled, two
  lines of code, and there's only one way to do that.
sys/dev/sound/driver/hda/Makefile
sys/dev/sound/pci/hda/hdaa.c
sys/dev/sound/pci/hda/hdaa.h
sys/dev/sound/pci/hda/hdaa_patches.c
sys/dev/sound/pci/hda/hdaa_patches.h [new file with mode: 0644]
sys/dev/sound/pci/hda/hdac.h
sys/gnu/dev/sound/pci/hda/hda_acer_c720_patch.c [new file with mode: 0644]