* [PATCH] ALSA: usb-audio: enable support for Presonus Studio 1824c within 1810c file
@ 2025-02-27 13:30 Amin Dandache
2025-02-28 9:34 ` Takashi Iwai
0 siblings, 1 reply; 2+ messages in thread
From: Amin Dandache @ 2025-02-27 13:30 UTC (permalink / raw)
To: linux-sound; +Cc: Amin Dandache, Amin Dandache
This patch adds support for Presonus Studio 1824c, a usb interface
that's UAC2 compliant and it is enabled by identifying the device
ID 194f:010d and works with the code brought in by the 1810c change from
Nick Kossifidis in 2020-02-15.
More infos on the card:
https://www.presonus.com/products/Studio-1824c
Signed-off-by: Amin Dandache <amin.dandache@gmail.com>
---
sound/usb/format.c | 4 ++++
sound/usb/mixer_quirks.c | 3 +++
sound/usb/quirks.c | 4 +++-
3 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/sound/usb/format.c b/sound/usb/format.c
index 6049d957694c..9d32b21a5fbb 100644
--- a/sound/usb/format.c
+++ b/sound/usb/format.c
@@ -384,6 +384,10 @@ static int parse_uac2_sample_rate_range(struct snd_usb_audio *chip,
if (chip->usb_id == USB_ID(0x194f, 0x010c) &&
!s1810c_valid_sample_rate(fp, rate))
goto skip_rate;
+ /* Filter out invalid rates on Presonus Studio 1824c */
+ if (chip->usb_id == USB_ID(0x194f, 0x010d) &&
+ !s1810c_valid_sample_rate(fp, rate))
+ goto skip_rate;
/* Filter out invalid rates on Focusrite devices */
if (USB_ID_VENDOR(chip->usb_id) == 0x1235 &&
diff --git a/sound/usb/mixer_quirks.c b/sound/usb/mixer_quirks.c
index ed6127b0389f..79c8c1540ee2 100644
--- a/sound/usb/mixer_quirks.c
+++ b/sound/usb/mixer_quirks.c
@@ -4119,6 +4119,9 @@ int snd_usb_mixer_apply_create_quirk(struct usb_mixer_interface *mixer)
case USB_ID(0x194f, 0x010c): /* Presonus Studio 1810c */
err = snd_sc1810_init_mixer(mixer);
break;
+ case USB_ID(0x194f, 0x010d): /* Presonus Studio 1824c */
+ err = snd_sc1810_init_mixer(mixer);
+ break;
case USB_ID(0x2a39, 0x3fb0): /* RME Babyface Pro FS */
err = snd_bbfpro_controls_create(mixer);
break;
diff --git a/sound/usb/quirks.c b/sound/usb/quirks.c
index a97efb7b131e..dea8bfaa7e91 100644
--- a/sound/usb/quirks.c
+++ b/sound/usb/quirks.c
@@ -1599,7 +1599,9 @@ int snd_usb_apply_interface_quirk(struct snd_usb_audio *chip,
/* presonus studio 1810c: skip altsets incompatible with device_setup */
if (chip->usb_id == USB_ID(0x194f, 0x010c))
return s1810c_skip_setting_quirk(chip, iface, altno);
-
+ /* presonus studio 1824c: skip altsets incompatible with device_setup */
+ if (chip->usb_id == USB_ID(0x194f, 0x010d))
+ return s1810c_skip_setting_quirk(chip, iface, altno);
return 0;
}
--
2.43.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ALSA: usb-audio: enable support for Presonus Studio 1824c within 1810c file
2025-02-27 13:30 [PATCH] ALSA: usb-audio: enable support for Presonus Studio 1824c within 1810c file Amin Dandache
@ 2025-02-28 9:34 ` Takashi Iwai
0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2025-02-28 9:34 UTC (permalink / raw)
To: Amin Dandache; +Cc: linux-sound, Amin Dandache, Amin Dandache
On Thu, 27 Feb 2025 14:30:27 +0100,
Amin Dandache wrote:
>
> This patch adds support for Presonus Studio 1824c, a usb interface
> that's UAC2 compliant and it is enabled by identifying the device
> ID 194f:010d and works with the code brought in by the 1810c change from
> Nick Kossifidis in 2020-02-15.
>
> More infos on the card:
> https://www.presonus.com/products/Studio-1824c
>
> Signed-off-by: Amin Dandache <amin.dandache@gmail.com>
Thanks, applied now to for-next branch.
Takashi
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-02-28 9:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-27 13:30 [PATCH] ALSA: usb-audio: enable support for Presonus Studio 1824c within 1810c file Amin Dandache
2025-02-28 9:34 ` Takashi Iwai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox