From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: [PATCH] ALSA: hda/patch_sigmatel: Add AmigaOne X1000 pin configs Date: Tue, 24 Jan 2017 10:02:41 +0100 Message-ID: References: <497a1dc45d9.2064992f@auth.smtp.1and1.co.uk> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 6EFBC26732F for ; Tue, 24 Jan 2017 10:02:42 +0100 (CET) In-Reply-To: <497a1dc45d9.2064992f@auth.smtp.1and1.co.uk> 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 To: Darren Stevens Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org On Mon, 23 Jan 2017 20:43:29 +0100, Darren Stevens wrote: > > +static const struct hda_pintbl nemo_pin_configs[] = { > + { 0x0a, 0x02214020 }, Please use the standard indentation level. > + { 0x0b, 0x02A19080 }, > + { 0x0c, 0x0181304E }, > + { 0x0d, 0x01014010 }, > + { 0x0e, 0x01A19040 }, > + { 0x0f, 0x01011012 }, > + { 0x10, 0x01016011 }, > + { 0x11, 0x01012014 }, > + { 0x12, 0x103301F0 }, > + { 0x13, 0x00000000 }, The pin config shouldn't be zero. If the pin is to be disabled, use a valid value like 0x411111f0. Also, it'd be more helpful to give a comment in each config to indicate which pin corresponds to which I/O. > + { 0x14, 0x00000000 }, > + { 0x21, 0x01442170 }, > + { 0x22, 0x00000000 }, > + { 0x23, 0x00000000 }, > + {} > +}; > > static void stac9200_fixup_panasonic(struct hda_codec *codec, > const struct hda_fixup *fix, int action) > @@ -3883,6 +3901,10 @@ static void stac927x_fixup_volknob(struct hda_codec *codec, > .type = HDA_FIXUP_PINS, > .v.pins = d965_5st_no_fp_pin_configs, > }, > + [STAC_NEMO_DEFAULT] = { > + .type = HDA_FIXUP_PINS, > + .v.pins = nemo_pin_configs, Align the indentation. thanks, Takashi