]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ALSA: usb-audio: us144mkii: Add PCM core infrastructure
authorŠerif Rami <ramiserifpersia@gmail.com>
Thu, 14 Aug 2025 17:22:17 +0000 (19:22 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 15 Aug 2025 15:53:47 +0000 (17:53 +0200)
commit5c8c10796e274d1b5bb48756a45a6f2e865b30f2
treef9a8025a4377ddc5f2980c0ef7885747a38d0c70
parentdee1bcf28a3dd13ddb2e9200407864f73e9c4d63
ALSA: usb-audio: us144mkii: Add PCM core infrastructure

This patch adds the ALSA PCM device infrastructure. It creates a new
PCM device with one playback and one capture stream.

The hardware capabilities (formats, rates, channels) are defined in
`tascam_pcm_hw`. The core PCM operations (`snd_pcm_ops`) for both
playback and capture are implemented, including open, close, hw_params,
prepare, and pointer callbacks.

The trigger callback is a stub for now. This commit allows user-space
applications to interact with the ALSA device, but no audio will be
streamed yet.

Signed-off-by: Šerif Rami <ramiserifpersia@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250814172222.9448-3-ramiserifpersia@gmail.com
sound/usb/usx2y/us144mkii.c
sound/usb/usx2y/us144mkii.h
sound/usb/usx2y/us144mkii_capture.c [new file with mode: 0644]
sound/usb/usx2y/us144mkii_pcm.c [new file with mode: 0644]
sound/usb/usx2y/us144mkii_pcm.h [new file with mode: 0644]
sound/usb/usx2y/us144mkii_playback.c [new file with mode: 0644]