All of lore.kernel.org
 help / color / mirror / Atom feed
From: Clemens Ladisch <clemens@ladisch.de>
To: Harley Griggs <hgriggs@posteo.co.uk>, alsa-devel@alsa-project.org
Subject: Re: [PATCH] ALSA: virtuoso: add Xonar Xense support
Date: Wed, 10 Sep 2014 17:38:31 +0200	[thread overview]
Message-ID: <54107077.7030203@ladisch.de> (raw)
In-Reply-To: <20140910141813.B328C258D256@mx02.posteo.de>

Harley Griggs wrote:
> This patch adds support for the Xonar Xense card.

The title is misleading.  This is "partial support" or "stereo-only support".

> +++ b/sound/pci/oxygen/xonar_pcm179x.c

> +	data->broken_i2c = true;

It's not.  (There is no other chip at address 1001110.)

> +	data->dacs = chip->model.dac_channels_mixer / 2;

This variable counts PCM1796 chips.

> +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?


Regards,
Clemens

  reply	other threads:[~2014-09-10 15:38 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-10 14:18 [PATCH] ALSA: virtuoso: add Xonar Xense support Harley Griggs
2014-09-10 15:38 ` Clemens Ladisch [this message]
2014-09-10 16:04   ` Harley Griggs
2014-09-10 18:15     ` Clemens Ladisch
2014-09-10 18:19       ` [PATCH] ALSA: virtuoso: add partial " Harley Griggs
2014-09-10 18:43         ` Harley Griggs
2014-09-10 18:44       ` [PATCH] ALSA: virtuoso: add " Harley Griggs
2014-09-10 18:59         ` Harley Griggs
2014-09-10 18:58       ` [PATCH] ALSA: virtuoso: add partial " Harley Griggs
2014-09-21 20:49         ` Clemens Ladisch
2014-09-22  7:01           ` Takashi Iwai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=54107077.7030203@ladisch.de \
    --to=clemens@ladisch.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=hgriggs@posteo.co.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.