From: Takashi Iwai Subject: Re: [PATCH 2/16] ALSA: VIA HDA: Add support for VT1802 Date: Mon, 21 Mar 2011 13:00:32 +0100 Message-ID: References: <4D86FCBF.60803@viatech.com.cn> 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 (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 21CDD24336 for ; Mon, 21 Mar 2011 13:00:33 +0100 (CET) In-Reply-To: <4D86FCBF.60803@viatech.com.cn> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Lydia Wang Cc: alsa-devel@alsa-project.org, HaraldWelte@viatech.com List-Id: alsa-devel@alsa-project.org At Mon, 21 Mar 2011 15:22:39 +0800, Lydia Wang wrote: > > - if (spec->codec_type != VT2002P && spec->codec_type != VT1812) > + if (spec->codec_type != VT2002P && > + spec->codec_type != VT1812 && > + spec->codec_type != VT1802) Better to create a new macro, something like: #define VT1812_COMPATIBLE(spec) \ ((spec)->codec_type == VT2002P ||\ (spec)->codec_type == VT1812 ||\ (spec)->codec_type == VT1802) instead of open-coding in all places. > +static struct hda_verb vt1802_volume_init_verbs[] = { > + /* Special verbs */ > + /*{0x1, 0xf93, 0xc3}, > + {0x1, 0xfa2, 0x70}, > + {0x1, 0xfe0, 0x04}, > + {0x1, 0xfe3, 0xfc}, > + {0x1, 0xff0, 0x39}, > + {0x1, 0xfa1, 0x58}, > + {0x1, 0xfd9, 0x0b}, > + {0x1, 0xfdb, 0x20}, > + {0x1, 0xfb0, 0x2b},*/ Why are these disabled? And what do they do? thanks, Takashi