From patchwork Sat Mar 14 02:31:38 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: klem.dev@gmail.com X-Patchwork-Id: 6010521 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id B2D3FBF90F for ; Sat, 14 Mar 2015 02:32:48 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E423F201EF for ; Sat, 14 Mar 2015 02:32:47 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id B845D20160 for ; Sat, 14 Mar 2015 02:32:46 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id A2ACB260595; Sat, 14 Mar 2015 03:32:45 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, NO_DNS_FOR_FROM, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id D9674260531; Sat, 14 Mar 2015 03:32:07 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 1852E260531; Sat, 14 Mar 2015 03:32:07 +0100 (CET) Received: from mail-we0-f173.google.com (mail-we0-f173.google.com [74.125.82.173]) by alsa0.perex.cz (Postfix) with ESMTP id 3E3A7260509; Sat, 14 Mar 2015 03:32:01 +0100 (CET) Received: by wetk59 with SMTP id k59so3705830wet.3; Fri, 13 Mar 2015 19:32:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:from:to:cc:subject:date:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=IMHjW2KlkLbDs96/zzWh4pvbXtbfpFg/LgDSHJOpgTs=; b=POzSepKpFphzY2e6e1hLSugBilVf/DlM+kYPBLSzdctF7LWUYTKILt8RNd/AEJ4jKM cp9TtFkOFuIuSsdUBPIG1kF+nLR2bzE3eWxd4zU61HINrKeSCvQcygaFW57wlM/rFIAc TZ9zd4EMtcaGqmbgcYs5t7vpsjw8x08ghGuIQFiAgXo3JysBcXjfNTMrNDoalPwbj3/Y k8Jp1lS4dkC4mQTIdrFhBOiu8Kqc9+U4euPcsIvWPczu0q8n5ZNQNsJ1Xc9+0NkWAzAG pIqrQRbAMBvTqPcbjqpBJf4zkpMxx15xO8lr927AYqtaNStYJtWvcqGDe1/x/NoQFSz+ mapw== X-Received: by 10.180.19.9 with SMTP id a9mr102923199wie.85.1426300320987; Fri, 13 Mar 2015 19:32:00 -0700 (PDT) Received: from localhost.localdomain (vil78-2-88-166-91-58.fbx.proxad.net. [88.166.91.58]) by mx.google.com with ESMTPSA id i10sm5131247wja.40.2015.03.13.19.31.59 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 13 Mar 2015 19:32:00 -0700 (PDT) Message-ID: <55039da0.6a07c20a.1b00.ffffa5fe@mx.google.com> X-Google-Original-Message-ID: <1426300302-20542-2-git-send-email-me> From: klem.dev@gmail.com X-Google-Original-From: me To: patch@alsa-project.org Date: Sat, 14 Mar 2015 03:31:38 +0100 X-Mailer: git-send-email 2.1.4 In-Reply-To: <1426300302-20542-1-git-send-email-me> References: <1426300302-20542-1-git-send-email-me> MIME-Version: 1.0 Cc: =?UTF-8?q?Cl=C3=A9ment=20Guedez?= , alsa-devel@alsa-project.org Subject: [alsa-devel] [PATCH 2/6] ESI W192M : Update eeprom structure to C99 standard X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP From: Clément Guedez Update eeprom structure to C99 standard to be compliant with change in alsa. It's just a notation change, no configuration change. Signed-off-by: Clément Guedez diff --git a/sound/pci/ice1712/wtm.c b/sound/pci/ice1712/wtm.c index f65ac19..6e1026e 100644 --- a/sound/pci/ice1712/wtm.c +++ b/sound/pci/ice1712/wtm.c @@ -485,19 +485,19 @@ static int wtm_init(struct snd_ice1712 *ice) static unsigned char wtm_eeprom[] = { - 0x47, /*SYSCONF: clock 192KHz, 4ADC, 8DAC */ - 0x80, /* ACLINK : I2S */ - 0xf8, /* I2S: vol; 96k, 24bit, 192k */ - 0xc1 /*SPDIF: out-en, spidf ext out*/, - 0x9f, /* GPIO_DIR */ - 0xff, /* GPIO_DIR1 */ - 0x7f, /* GPIO_DIR2 */ - 0x9f, /* GPIO_MASK */ - 0xff, /* GPIO_MASK1 */ - 0x7f, /* GPIO_MASK2 */ - 0x16, /* GPIO_STATE */ - 0x80, /* GPIO_STATE1 */ - 0x00, /* GPIO_STATE2 */ + [ICE_EEP2_SYSCONF] = 0x47, /*SYSCONF: clock 192KHz, 4ADC, 8DAC */ + [ICE_EEP2_ACLINK] = 0x80, /* ACLINK : I2S */ + [ICE_EEP2_I2S] = 0xf8, /* I2S: vol; 96k, 24bit, 192k */ + [ICE_EEP2_SPDIF] = 0xc1, /*SPDIF: out-en, spidf ext out*/ + [ICE_EEP2_GPIO_DIR] = 0x9f, + [ICE_EEP2_GPIO_DIR1] = 0xff, + [ICE_EEP2_GPIO_DIR2] = 0x7f, + [ICE_EEP2_GPIO_MASK] = 0x9f, + [ICE_EEP2_GPIO_MASK1] = 0xff, + [ICE_EEP2_GPIO_MASK2] = 0x7f, + [ICE_EEP2_GPIO_STATE] = 0x16, + [ICE_EEP2_GPIO_STATE1] = 0x80, + [ICE_EEP2_GPIO_STATE2] = 0x00, };