ALSA: usb-audio: Set 48 kHz rate for Rodecaster
diff mbox series

Message ID ebdb9e72-9649-0b5e-b9b9-d757dbf26927@swenson.io
State New
Headers show
Series
  • ALSA: usb-audio: Set 48 kHz rate for Rodecaster
Related show

Commit Message

Christopher Swenson June 15, 2020, 12:11 a.m. UTC
From 22581d37726a17ed9c400b8c9ff8ade52c17f65a Mon Sep 17 00:00:00 2001
From: Christopher Swenson <swenson@swenson.io>
Date: Sun, 14 Jun 2020 15:19:41 -0700
Subject: [PATCH] ALSA: usb-audio: Set 48 kHz rate for Rodecaster

Like the Line6 devices, the Rode Rodecaster Pro does not support
UAC2_CS_RANGE and only supports a sample rate of 48 kHz.

Tested against a Rode Rodecaster Pro.

Tested-by: Christopher Swenson <swenson@swenson.io>
Signed-off-by: Christopher Swenson <swenson@swenson.io>
---
 sound/usb/format.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

Comments

Takashi Iwai June 15, 2020, 6:48 a.m. UTC | #1
On Mon, 15 Jun 2020 02:11:47 +0200,
Christopher Swenson wrote:
> 
> >From 22581d37726a17ed9c400b8c9ff8ade52c17f65a Mon Sep 17 00:00:00 2001
> From: Christopher Swenson <swenson@swenson.io>
> Date: Sun, 14 Jun 2020 15:19:41 -0700
> Subject: [PATCH] ALSA: usb-audio: Set 48 kHz rate for Rodecaster
> 
> Like the Line6 devices, the Rode Rodecaster Pro does not support
> UAC2_CS_RANGE and only supports a sample rate of 48 kHz.
> 
> Tested against a Rode Rodecaster Pro.
> 
> Tested-by: Christopher Swenson <swenson@swenson.io>
> Signed-off-by: Christopher Swenson <swenson@swenson.io>

Applied now.  Thanks.


Takashi

Patch
diff mbox series

diff --git a/sound/usb/format.c b/sound/usb/format.c
index 5ffb457cc88c..1b28d01d1f4c 100644
--- a/sound/usb/format.c
+++ b/sound/usb/format.c
@@ -394,8 +394,9 @@  static int parse_uac2_sample_rate_range(struct snd_usb_audio *chip,
 	return nr_rates;
 }
 
-/* Line6 Helix series don't support the UAC2_CS_RANGE usb function
- * call. Return a static table of known clock rates.
+/* Line6 Helix series and the Rode Rodecaster Pro don't support the
+ * UAC2_CS_RANGE usb function call. Return a static table of known
+ * clock rates.
  */
 static int line6_parse_audio_format_rates_quirk(struct snd_usb_audio *chip,
 						struct audioformat *fp)
@@ -408,6 +409,7 @@  static int line6_parse_audio_format_rates_quirk(struct snd_usb_audio *chip,
 	case USB_ID(0x0e41, 0x4248): /* Line6 Helix >= fw 2.82 */
 	case USB_ID(0x0e41, 0x4249): /* Line6 Helix Rack >= fw 2.82 */
 	case USB_ID(0x0e41, 0x424a): /* Line6 Helix LT >= fw 2.82 */
+	case USB_ID(0x19f7, 0x0011): /* Rode Rodecaster Pro */
 		return set_fixed_rate(fp, 48000, SNDRV_PCM_RATE_48000);
 	}