All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris J Arges <chris.j.arges@canonical.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@alsa-project.org, robin@gareus.org,
	clemens@ladisch.de, th55@gmx.de, david.henningsson@canonical.com
Subject: Re: [PATCH v2] Scarlett mixer interface for 6i6, 18i6, 18i8 and 18i20
Date: Wed, 22 Oct 2014 13:44:12 -0500	[thread overview]
Message-ID: <5447FAFC.9040204@canonical.com> (raw)
In-Reply-To: <s5h1tq0egzi.wl-tiwai@suse.de>



On 10/22/2014 01:49 AM, Takashi Iwai wrote:
> At Tue, 21 Oct 2014 14:46:27 -0500,
> Chris J Arges wrote:
>>
>> This code contains the Scarlett mixer interface code that was originally
>> written by Tobias Hoffman and Robin Gareus. Because the device doesn't
>> properly implement UAC2 this code adds a mixer quirk for the device.
>>
>> Changes from the original code include removing the metering code along with
>> dead code and comments. Compiler warnings were fixed. The code to initialize
>> the sampling rate was causing a crash this was fixed as discussed on the
>> mailing list. Error, and info messages were convered to dev_err and dev_info
>> interfaces. Finally the code was placed in its own subdirectory.
>>
>> Author: Tobias Hoffman <th55@gmx.de>
>> Author: Robin Gareus <robin@gareus.org>
>> Signed-off-by: David Henningsson <david.henningsson@canonical.com>
>> Signed-off-by: Chris J Arges <chris.j.arges@canonical.com>
>> ---
>>  sound/usb/Makefile                 |    1 +
>>  sound/usb/mixer.c                  |   27 +-
>>  sound/usb/quirks-table.h           |   51 --
>>  sound/usb/scarlett/scarlettmixer.c | 1264 ++++++++++++++++++++++++++++++++++++
>>  sound/usb/scarlett/scarlettmixer.h |    6 +
>>  5 files changed, 1293 insertions(+), 56 deletions(-)
>>  create mode 100644 sound/usb/scarlett/scarlettmixer.c
>>  create mode 100644 sound/usb/scarlett/scarlettmixer.h
>>
>> diff --git a/sound/usb/Makefile b/sound/usb/Makefile
>> index 2b92f0d..4267e47 100644
>> --- a/sound/usb/Makefile
>> +++ b/sound/usb/Makefile
>> @@ -12,6 +12,7 @@ snd-usb-audio-objs := 	card.o \
>>  			pcm.o \
>>  			proc.o \
>>  			quirks.o \
>> +			scarlett/scarlettmixer.o \
> 
> Any reason to create a subdirectory although it's no individual
> driver?  Put rather in the plain directory.
> 
I thought it would be neater, but I'll put the file back in the main
sound/usb directory. If the code is small enough I could add it to
mixer_quirks.c.

> Overall, there seem too many copies from mixer.c.  Can't we rather
> extend the stuff in mixer.c, make some of them global and let access
> from scalettmixer.c?
> 

Yes, I can work on this, I think it would help reduce the code redundancy.

> 
> Takashi
> 

Thank you,
--chris

  reply	other threads:[~2014-10-22 18:44 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 [this message]
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
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=5447FAFC.9040204@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 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.