From: Takashi Iwai Subject: Re: [patch] ALSA: VIA HDA: Add support for VT1818S Date: Tue, 20 Oct 2009 07:22:35 +0200 Message-ID: References: <4ADD480C.4010500@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 mx1.suse.de (cantor.suse.de [195.135.220.2]) by alsa0.perex.cz (Postfix) with ESMTP id F089D2456B for ; Tue, 20 Oct 2009 07:22:36 +0200 (CEST) In-Reply-To: <4ADD480C.4010500@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: lydiawang Cc: alsa-devel@alsa-project.org, HaraldWelte@viatech.com, loganli@viatech.com.cn List-Id: alsa-devel@alsa-project.org At Tue, 20 Oct 2009 13:18:04 +0800, lydiawang wrote: > > From: Lydia Wang > Subject: ALSA: VIA HDA: Add support for VT1818S. > > Add support for VT1818S codec, which is similiar with VT1708S. > > Signed-off-by: Lydia Wang Thanks for the patch. Unfortunately I currently have only a narrow internet access. I'll review and apply it after I back from the conferences in the next week. Takashi > --- > sound/pci/hda/patch_via.c | 15 +++++++++++++-- > 1 file changed, 13 insertions(+), 2 deletions(-) > > --- a/sound/pci/hda/patch_via.c > +++ b/sound/pci/hda/patch_via.c > @@ -41,6 +41,7 @@ > /* 2009-04-14 Lydai Wang Add support for VT1828S and VT2020 */ > /* 2009-07-08 Lydia Wang Add support for VT2002P */ > /* 2009-07-21 Lydia Wang Add support for VT1812 */ > +/* 2009-09-19 Lydia Wang Add support for VT1818S */ > /* */ > /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ > > @@ -195,6 +196,8 @@ > codec_type = VT2002P; > else if (dev_id == 0x0448) > codec_type = VT1812; > + else if (dev_id == 0x0440) > + codec_type = VT1708S; > else > codec_type = UNKNOWN; > return codec_type; > @@ -4130,11 +4133,17 @@ > spec->init_verbs[spec->num_iverbs++] = vt1708S_volume_init_verbs; > spec->init_verbs[spec->num_iverbs++] = vt1708S_uniwill_init_verbs; > > - spec->stream_name_analog = "VT1708S Analog"; > + if (codec->vendor_id == 0x11060440) > + spec->stream_name_analog = "VT1818S Analog"; > + else > + spec->stream_name_analog = "VT1708S Analog"; > spec->stream_analog_playback = &vt1708S_pcm_analog_playback; > spec->stream_analog_capture = &vt1708S_pcm_analog_capture; > > - spec->stream_name_digital = "VT1708S Digital"; > + if (codec->vendor_id == 0x11060440) > + spec->stream_name_digital = "VT1818S Digital"; > + else > + spec->stream_name_digital = "VT1708S Digital"; > spec->stream_digital_playback = &vt1708S_pcm_digital_playback; > > if (!spec->adc_nids && spec->input_mux) { > @@ -6231,6 +6240,8 @@ > { .id = 0x11060438, .name = "VT2002P", .patch = patch_vt2002P}, > { .id = 0x11064438, .name = "VT2002P", .patch = patch_vt2002P}, > { .id = 0x11060448, .name = "VT1812", .patch = patch_vt1812}, > + { .id = 0x11060440, .name = "VT1818S", > + .patch = patch_vt1708S}, > {} /* terminator */ > }; > >