From: Harley Griggs Subject: Re: [PATCH] ALSA: virtuoso: add Xonar Xense support Date: Wed, 10 Sep 2014 17:04:19 +0100 Message-ID: <20140910160422.1B47E25A2113@mx02.posteo.de> References: <20140910141813.B328C258D256@mx02.posteo.de> <54107077.7030203@ladisch.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx02.posteo.de (mx02.posteo.de [89.146.194.165]) by alsa0.perex.cz (Postfix) with ESMTP id 933A8265510 for ; Wed, 10 Sep 2014 18:04:22 +0200 (CEST) In-Reply-To: <54107077.7030203@ladisch.de> 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: Clemens Ladisch Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org On Wed, 10 Sep 2014 17:38:31 +0200 Clemens Ladisch wrote: >Harley Griggs wrote: >> This patch adds support for the Xonar Xense card. > >The title is misleading. This is "partial support" or "stereo-only >support". Apologies. Should I resubmit with a new title or just use this thread? > >> +++ b/sound/pci/oxygen/xonar_pcm179x.c > >> + data->broken_i2c = true; > >It's not. (There is no other chip at address 1001110.) I'll remove this. I tried to use the ST as a template as much as possible. Is there a reason the ST uses this ? > >> + data->dacs = chip->model.dac_channels_mixer / 2; > >This variable counts PCM1796 chips. I overlooked this, will set to 1. > >> +static int xense_output_switch_put(struct snd_kcontrol *ctl, >> + struct snd_ctl_elem_value *value) >> +{ >> +... >> + case 2: >> + gpio &= ~(GPIO_XENSE_SPEAKERS | GPIO_ST_HP_REAR); >> + break; > >Indent. > >> +static int xonar_xense_mixer_init(struct oxygen *chip) >> +{ >> + unsigned int i; >> + int err; >> + >> + for (i = 0; i < ARRAY_SIZE(xense_controls); ++i) { >> + err = snd_ctl_add(chip->card, >> + snd_ctl_new1(&xense_controls[i], chip)); >> + if (err < 0) >> + return err; >> + } > >Same here. > >> @@ -1146,6 +1273,14 @@ int get_xonar_pcm179x_model(struct oxygen >> *chip, >> + case 0x8428: >> + chip->model = model_xonar_st; >> + chip->model.shortname = "Xonar Xense"; >> + chip->model.chip = "AV100"; >> + chip->model.init = xonar_xense_init; >> + chip->model.mixer_init = xonar_xense_mixer_init; >> + break; >> + > >Why the empty line? I'll fix the incorrect formatting. > > >Regards, >Clemens >_______________________________________________ >Alsa-devel mailing list >Alsa-devel@alsa-project.org >http://mailman.alsa-project.org/mailman/listinfo/alsa-devel