From: Takashi Iwai Subject: Re: PATCH: C-Media 6206 USB Audio Date: Mon, 08 Jun 2009 07:41:04 +0200 Message-ID: References: <194d079b0906071946n8a67312se5d23f7080496fea@mail.gmail.com> 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 D362924394 for ; Mon, 8 Jun 2009 07:41:04 +0200 (CEST) In-Reply-To: <194d079b0906071946n8a67312se5d23f7080496fea@mail.gmail.com> 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: Dan Allongo Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Sun, 7 Jun 2009 22:46:51 -0400, Dan Allongo wrote: > > I've been posting on the alsa-users list and I think I finally have a > working patch now that I'd like to submit. > The C-Media 6206 device is based off of CM106 and just needed a boot quirk > added to set the registers properly for output. > At least one other user can confirm that this patch works and that the > SPDIF-out is also functioning now with this change. > This is diff'd against today's snapshot so it should be good to go. > Let me know if there's anything else that I need to do or change with this. Thanks for the patch! I'd like certainly to apply it, however... > + return snd_usb_cm106_write_int_reg(dev, 0, 0x200c) + > + snd_usb_cm106_write_int_reg(dev, 1, 0x3000) + > + snd_usb_cm106_write_int_reg(dev, 2, 0xf800) + > + snd_usb_cm106_write_int_reg(dev, 3, 0x143f) + > + snd_usb_cm106_write_int_reg(dev, 4, 0x0000) + > + snd_usb_cm106_write_int_reg(dev, 5, 0x3000); Summing the return values here look weird. You want to return an error code, right? Then use a simple if sequence, or write a loop there. Also, run $LINUX/scripts/checkpatch.pl to your patch and fix errors / warnings suggested there. Then please repost the patch with your sign-off. thanks, Takashi