[PATCH v6 0/7] ALSA: usb-audio: Add driver for TASCAM US-144MKII

Šerif Rami posted 7 patches 1 month, 2 weeks ago
sound/usb/Kconfig                    |  12 +
sound/usb/usx2y/Makefile             |   2 +
sound/usb/usx2y/us122l.c             |   6 -
sound/usb/usx2y/us144mkii.c          | 620 +++++++++++++++++++++++++++
sound/usb/usx2y/us144mkii.h          | 368 ++++++++++++++++
sound/usb/usx2y/us144mkii_capture.c  | 319 ++++++++++++++
sound/usb/usx2y/us144mkii_controls.c | 444 +++++++++++++++++++
sound/usb/usx2y/us144mkii_midi.c     | 399 +++++++++++++++++
sound/usb/usx2y/us144mkii_pcm.c      | 370 ++++++++++++++++
sound/usb/usx2y/us144mkii_pcm.h      | 165 +++++++
sound/usb/usx2y/us144mkii_playback.c | 456 ++++++++++++++++++++
11 files changed, 3155 insertions(+), 6 deletions(-)
create mode 100644 sound/usb/usx2y/us144mkii.c
create mode 100644 sound/usb/usx2y/us144mkii.h
create mode 100644 sound/usb/usx2y/us144mkii_capture.c
create mode 100644 sound/usb/usx2y/us144mkii_controls.c
create mode 100644 sound/usb/usx2y/us144mkii_midi.c
create mode 100644 sound/usb/usx2y/us144mkii_pcm.c
create mode 100644 sound/usb/usx2y/us144mkii_pcm.h
create mode 100644 sound/usb/usx2y/us144mkii_playback.c
[PATCH v6 0/7] ALSA: usb-audio: Add driver for TASCAM US-144MKII
Posted by Šerif Rami 1 month, 2 weeks ago
This is v6 of the patch series to add a new driver
for the TASCAM US-144MKII USB audio interface.

Changes in v6:
  - Addressed open brace cosmetic standards for scoped_guard() calls.
  - Added lost default values for digital in/out kcontrols.

Changes in v5:
  - Addressed u64 remainder in Patch 2/7.
  - Refactored guard() calls for spinlocks to scoped_guard() for ones
    that got missed(hopefully all).

Changes in v4:
  - Removing leading spaces from #defines as requested.
  - Renaming fpoInitPattern to fpo_init_pattern.
  - Removing unnecessary kfree() calls.
  - Replacing manual lock/unlock patterns with scoped_guard().

Changes in v3
  - Corrected v2 invalid patches order
  The v2 submission included mix of patches for v2 that were unusable.
  These new patches are valid now.

Changes in v2:
  - Patch 1: Dropped blank line, initialized `__free(kfree)` variable to
     NULL, and fixed `struct tascam_card` indentation.
  - Patch 2: Corrected indentation in `us144mkii.h`.
  - Patch 3: Changed `fpoInitPattern` to `fpo_init_pattern` (snake_case),
     initialized `__free(kfree)` variable, and replaced
     `guard(spinlock_irqsave)` with `scoped_guard()`.
  - Patch 5: Updated control names to standard "Playback Source" and
     "Capture Source" formats, and initialized `__free(kfree)` variable to NULL.
  - Patch 6: Re-organized code style alignments into previous patches.
  - Patch 7: Fixed trailing whitespace warning.

Šerif Rami (7):
  ALSA: usb-audio: Add initial driver for TASCAM US-144MKII
  ALSA: usb-audio: us144mkii: Add PCM core infrastructure
  ALSA: usb-audio: us144mkii: Implement audio playback and feedback
  ALSA: usb-audio: us144mkii: Implement audio capture and decoding
  ALSA: usb-audio: us144mkii: Add MIDI support and mixer controls
  ALSA: usb-audio: us144mkii: Add deep sleep command
  ALSA: usb-audio: Add infrastructure for TASCAM US-144MKII

 sound/usb/Kconfig                    |  12 +
 sound/usb/usx2y/Makefile             |   2 +
 sound/usb/usx2y/us122l.c             |   6 -
 sound/usb/usx2y/us144mkii.c          | 620 +++++++++++++++++++++++++++
 sound/usb/usx2y/us144mkii.h          | 368 ++++++++++++++++
 sound/usb/usx2y/us144mkii_capture.c  | 319 ++++++++++++++
 sound/usb/usx2y/us144mkii_controls.c | 444 +++++++++++++++++++
 sound/usb/usx2y/us144mkii_midi.c     | 399 +++++++++++++++++
 sound/usb/usx2y/us144mkii_pcm.c      | 370 ++++++++++++++++
 sound/usb/usx2y/us144mkii_pcm.h      | 165 +++++++
 sound/usb/usx2y/us144mkii_playback.c | 456 ++++++++++++++++++++
 11 files changed, 3155 insertions(+), 6 deletions(-)
 create mode 100644 sound/usb/usx2y/us144mkii.c
 create mode 100644 sound/usb/usx2y/us144mkii.h
 create mode 100644 sound/usb/usx2y/us144mkii_capture.c
 create mode 100644 sound/usb/usx2y/us144mkii_controls.c
 create mode 100644 sound/usb/usx2y/us144mkii_midi.c
 create mode 100644 sound/usb/usx2y/us144mkii_pcm.c
 create mode 100644 sound/usb/usx2y/us144mkii_pcm.h
 create mode 100644 sound/usb/usx2y/us144mkii_playback.c

base-commit: e8e4f3c242cc26de9d69bd8b3a678d1e50980abe
-- 
2.39.5

Re: [PATCH v6 0/7] ALSA: usb-audio: Add driver for TASCAM US-144MKII
Posted by Takashi Iwai 1 month, 2 weeks ago
On Thu, 14 Aug 2025 19:22:15 +0200,
Šerif Rami wrote:
> 
> This is v6 of the patch series to add a new driver
> for the TASCAM US-144MKII USB audio interface.
> 
> Changes in v6:
>   - Addressed open brace cosmetic standards for scoped_guard() calls.
>   - Added lost default values for digital in/out kcontrols.
> 
> Changes in v5:
>   - Addressed u64 remainder in Patch 2/7.
>   - Refactored guard() calls for spinlocks to scoped_guard() for ones
>     that got missed(hopefully all).
> 
> Changes in v4:
>   - Removing leading spaces from #defines as requested.
>   - Renaming fpoInitPattern to fpo_init_pattern.
>   - Removing unnecessary kfree() calls.
>   - Replacing manual lock/unlock patterns with scoped_guard().
> 
> Changes in v3
>   - Corrected v2 invalid patches order
>   The v2 submission included mix of patches for v2 that were unusable.
>   These new patches are valid now.
> 
> Changes in v2:
>   - Patch 1: Dropped blank line, initialized `__free(kfree)` variable to
>      NULL, and fixed `struct tascam_card` indentation.
>   - Patch 2: Corrected indentation in `us144mkii.h`.
>   - Patch 3: Changed `fpoInitPattern` to `fpo_init_pattern` (snake_case),
>      initialized `__free(kfree)` variable, and replaced
>      `guard(spinlock_irqsave)` with `scoped_guard()`.
>   - Patch 5: Updated control names to standard "Playback Source" and
>      "Capture Source" formats, and initialized `__free(kfree)` variable to NULL.
>   - Patch 6: Re-organized code style alignments into previous patches.
>   - Patch 7: Fixed trailing whitespace warning.
> 
> Šerif Rami (7):
>   ALSA: usb-audio: Add initial driver for TASCAM US-144MKII
>   ALSA: usb-audio: us144mkii: Add PCM core infrastructure
>   ALSA: usb-audio: us144mkii: Implement audio playback and feedback
>   ALSA: usb-audio: us144mkii: Implement audio capture and decoding
>   ALSA: usb-audio: us144mkii: Add MIDI support and mixer controls
>   ALSA: usb-audio: us144mkii: Add deep sleep command
>   ALSA: usb-audio: Add infrastructure for TASCAM US-144MKII

Applied to for-next branch now.


thanks,

Takashi