From: Chris J Arges <chris.j.arges@canonical.com>
To: Tobias Hoffmann <th55@gmx.de>
Cc: Takashi Iwai <tiwai@suse.de>,
alsa-devel@alsa-project.org, robin@gareus.org,
clemens@ladisch.de, david.henningsson@canonical.com
Subject: Re: [PATCH 4/4 v4] ALSA: usb-audio: Scarlett mixer interface for 6i6, 18i6, 18i8 and 18i20
Date: Tue, 4 Nov 2014 13:45:23 -0600 [thread overview]
Message-ID: <20141104194522.GA9229@canonical.com> (raw)
In-Reply-To: <5458D49E.6060305@gmx.de>
On Tue, Nov 04, 2014 at 02:29:02PM +0100, Tobias Hoffmann wrote:
> On 04/11/14 14:16, Tobias Hoffmann wrote:
> >But maybe (as Clemens suggested) the strings *for .opt_master and
> >.opt_matrix* should just be created dynamically in
> >scarlett_ctl_enum_info, instead of using snd_ctl_enum_info.
> >I want to point out that scarlett_device_info already contains the
> >necessary information to do this:
> >
> > .matrix_out = 6,
> >...
> > .pcm_start = 0, // pcm(1) .. pcm(analog_start-pcm_start)=pcm(12)
> > .analog_start = 12, // analog(1) .. analog(4)
> > .spdif_start = 16, // spdif(1) .. spdif(2)
> > .adat_start = 18, // adat(1) .. adat(0) [i.e. no adat]
> > .mix_start = 18, // mix('A') .. mix('F')=mix('A' + matrix_out)
> >
> >
> >
> >and Off(-1). Only elem->private_data has to be of type
> >scarlett_mixer_elem_enum_info for the usual enums (impedance, pad,
> >...), but of type scarlett_device_info for the master and mixer
> >enums...
> >
>
> Hmm, as the same options are required for a lot of master and mixer
> enums, the strings should probably be generated only once (and a
> dynamic scarlett_mixer_elem_enum_info would require no modifications
> of scarlett_ctl_enum_info).
>
> Tobias
Yes this would be the plan dynamially generate them once and reuse them. I'll work on implementing this.
--chris
next prev parent reply other threads:[~2014-11-04 19:45 UTC|newest]
Thread overview: 60+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-21 19:46 [PATCH v2] Scarlett mixer interface inclusion Chris J Arges
2014-10-21 19:46 ` [PATCH v2] Scarlett mixer interface for 6i6, 18i6, 18i8 and 18i20 Chris J Arges
2014-10-22 6:49 ` Takashi Iwai
2014-10-22 18:44 ` Chris J Arges
2014-10-29 20:55 ` [PATCH v3 0/4] Scarlett mixer interface inclusion Chris J Arges
2014-10-29 20:56 ` [PATCH v3 1/4] Revert "ALSA: usb-audio: Add quirk for Focusrite Scarlett Chris J Arges
2014-10-29 20:56 ` [PATCH v3 2/4] ALSA: usb-audio: Add usb_mixer_elem_enum_info Chris J Arges
2014-10-30 7:17 ` Takashi Iwai
2014-10-29 20:56 ` [PATCH v3 3/4] ALSA: usb-audio: make set_*_mix_values functions public Chris J Arges
2014-10-29 20:56 ` [PATCH v3 4/4] ALSA: usb-audio: Scarlett mixer interface for 6i6, 18i6, 18i8 and 18i20 Chris J Arges
2014-10-30 7:43 ` Takashi Iwai
2014-11-03 17:11 ` Chris J Arges
2014-11-03 17:31 ` Clemens Ladisch
2014-10-30 7:11 ` [PATCH v3 0/4] Scarlett mixer interface inclusion Takashi Iwai
2014-11-03 22:58 ` [PATCH 0/4 v4] " Chris J Arges
2014-11-03 22:58 ` [PATCH 1/4 v4] Revert "ALSA: usb-audio: Add quirk for Focusrite Scarlett Chris J Arges
2014-11-03 22:58 ` [PATCH 2/4 v4] ALSA: usb-audio: Add private_data pointer to usb_mixer_elem_info Chris J Arges
2014-11-03 22:58 ` [PATCH 3/4 v4] ALSA: usb-audio: make set_*_mix_values functions public Chris J Arges
2014-11-03 22:58 ` [PATCH 4/4 v4] ALSA: usb-audio: Scarlett mixer interface for 6i6, 18i6, 18i8 and 18i20 Chris J Arges
2014-11-04 10:18 ` Takashi Iwai
2014-11-04 13:16 ` Tobias Hoffmann
2014-11-04 13:29 ` Tobias Hoffmann
2014-11-04 19:45 ` Chris J Arges [this message]
2014-11-04 14:00 ` Takashi Iwai
2014-11-04 19:56 ` Chris J Arges
2014-11-04 19:51 ` Chris J Arges
2014-11-05 16:32 ` [PATCH v5] " Chris J Arges
2014-11-06 14:33 ` [PATCH 0/4 v5] Scarlett mixer interface inclusion Chris J Arges
2014-11-06 14:33 ` [PATCH 1/4 v5] Revert "ALSA: usb-audio: Add quirk for Focusrite Scarlett Chris J Arges
2014-11-06 14:33 ` [PATCH 2/4 v5] ALSA: usb-audio: Add private_data pointer to usb_mixer_elem_info Chris J Arges
2014-11-06 14:33 ` [PATCH 3/4 v5] ALSA: usb-audio: make set_*_mix_values functions public Chris J Arges
2014-11-06 14:33 ` [PATCH 4/4 v5] ALSA: usb-audio: Scarlett mixer interface for 6i6, 18i6, 18i8 and 18i20 Chris J Arges
2014-11-07 10:15 ` Takashi Iwai
2014-11-10 18:59 ` [PATCH 0/4 v6] Scarlett mixer interface inclusion Chris J Arges
2014-11-10 18:59 ` [PATCH 1/4 v6] Revert "ALSA: usb-audio: Add quirk for Focusrite Scarlett Chris J Arges
2014-11-10 18:59 ` [PATCH 2/4 v6] ALSA: usb-audio: Add private_data pointer to usb_mixer_elem_info Chris J Arges
2014-11-10 18:59 ` [PATCH 3/4 v6] ALSA: usb-audio: make set_*_mix_values functions public Chris J Arges
2014-11-10 18:59 ` [PATCH 4/4 v6] ALSA: usb-audio: Scarlett mixer interface for 6i6, 18i6, 18i8 and 18i20 Chris J Arges
2014-11-10 19:24 ` Takashi Iwai
2014-11-10 22:00 ` Chris J Arges
2014-11-11 7:33 ` Takashi Iwai
2014-11-12 18:06 ` [PATCH 0/4 v7] Scarlett mixer interface inclusion Chris J Arges
2014-11-12 18:06 ` [PATCH 1/4 v7] Revert "ALSA: usb-audio: Add quirk for Focusrite Scarlett Chris J Arges
2014-11-12 18:07 ` [PATCH 2/4 v7] ALSA: usb-audio: Add private_data pointer to usb_mixer_elem_info Chris J Arges
2014-11-12 18:07 ` [PATCH 3/4 v7] ALSA: usb-audio: make set_*_mix_values functions public Chris J Arges
2014-11-12 18:07 ` [PATCH 4/4 v7] ALSA: usb-audio: Scarlett mixer interface for 6i6, 18i6, 18i8 and 18i20 Chris J Arges
2014-11-13 6:36 ` [PATCH 0/4 v7] Scarlett mixer interface inclusion Takashi Iwai
2014-11-13 6:38 ` David Henningsson
2014-11-13 13:01 ` Chris J Arges
2014-11-04 20:11 ` [PATCH 4/4 v4] ALSA: usb-audio: Scarlett mixer interface for 6i6, 18i6, 18i8 and 18i20 David Henningsson
2014-11-04 20:18 ` Chris J Arges
2014-11-05 9:55 ` David Henningsson
2014-11-02 19:00 ` [PATCH v3 0/4] Scarlett mixer interface inclusion Dominik Haumann
2014-11-03 15:49 ` Chris J Arges
2014-11-03 22:31 ` Chris J Arges
2014-10-22 6:36 ` [PATCH v2] " Takashi Iwai
2014-11-05 11:33 ` Takashi Iwai
2014-11-05 12:39 ` Takashi Iwai
2014-11-05 14:20 ` Takashi Iwai
2014-11-05 14:30 ` Chris J Arges
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=20141104194522.GA9229@canonical.com \
--to=chris.j.arges@canonical.com \
--cc=alsa-devel@alsa-project.org \
--cc=clemens@ladisch.de \
--cc=david.henningsson@canonical.com \
--cc=robin@gareus.org \
--cc=th55@gmx.de \
--cc=tiwai@suse.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox