[alsa-devel] [PATCH v2] Scarlett mixer interface for 6i6, 18i6, 18i8 and 18i20
Chris J Arges
chris.j.arges at canonical.com
Wed Oct 22 20:44:12 CEST 2014
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 at gmx.de>
>> Author: Robin Gareus <robin at gareus.org>
>> Signed-off-by: David Henningsson <david.henningsson at canonical.com>
>> Signed-off-by: Chris J Arges <chris.j.arges at 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
More information about the Alsa-devel
mailing list