From owner-svn-src-all@FreeBSD.ORG Tue Dec 20 02:42:53 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6B75E106564A; Tue, 20 Dec 2011 02:42:53 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 5A4FC8FC08; Tue, 20 Dec 2011 02:42:53 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id pBK2gruU087470; Tue, 20 Dec 2011 02:42:53 GMT (envelope-from mav@svn.freebsd.org) Received: (from mav@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id pBK2grrM087468; Tue, 20 Dec 2011 02:42:53 GMT (envelope-from mav@svn.freebsd.org) Message-Id: <201112200242.pBK2grrM087468@svn.freebsd.org> From: Alexander Motin Date: Tue, 20 Dec 2011 02:42:53 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r228727 - head/sys/dev/sound/pci/hda X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Dec 2011 02:42:53 -0000 Author: mav Date: Tue Dec 20 02:42:53 2011 New Revision: 228727 URL: http://svn.freebsd.org/changeset/base/228727 Log: Oops, list of IDs is not sequential. Have to list all of them expoicitly. Modified: head/sys/dev/sound/pci/hda/hdac.c Modified: head/sys/dev/sound/pci/hda/hdac.c ============================================================================== --- head/sys/dev/sound/pci/hda/hdac.c Tue Dec 20 02:00:27 2011 (r228726) +++ head/sys/dev/sound/pci/hda/hdac.c Tue Dec 20 02:42:53 2011 (r228727) @@ -6491,15 +6491,23 @@ hdac_audio_commit(struct hdac_devinfo *d if (sc->pci_subvendor == APPLE_INTEL_MAC) hdac_command(sc, HDA_CMD_12BIT(cad, devinfo->nid, 0x7e7, 0), cad); - /* Cast some spells for VIA VT1708S. */ id = hdac_codec_id(devinfo->codec); - if (id >= HDA_CODEC_VT1708S_0 && id <= HDA_CODEC_VT1708S_7) { + switch (id) { + case HDA_CODEC_VT1708S_0: + case HDA_CODEC_VT1708S_1: + case HDA_CODEC_VT1708S_2: + case HDA_CODEC_VT1708S_3: + case HDA_CODEC_VT1708S_4: + case HDA_CODEC_VT1708S_5: + case HDA_CODEC_VT1708S_6: + case HDA_CODEC_VT1708S_7: /* Enable Mic Boost Volume controls. */ hdac_command(sc, HDA_CMD_12BIT(cad, devinfo->nid, 0xf98, 0x01), cad); /* Don't bypass mixer. */ hdac_command(sc, HDA_CMD_12BIT(cad, devinfo->nid, 0xf88, 0xc0), cad); + break; } /* Commit controls. */