Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Tuukka Pasanen <pasanen.tuukka@gmail.com>
To: Clemens Ladisch <clemens@ladisch.de>, alsa-devel@alsa-project.org
Subject: Re: Rane SL-4 USB sound card
Date: Mon, 06 Jul 2015 15:42:29 +0300	[thread overview]
Message-ID: <559A77B5.5060905@gmail.com> (raw)
In-Reply-To: <55996A35.6030904@ladisch.de>

Hello,
Thanks you for you reply. That did the trick almost. It only gives 
sysdefault with two channels and error:

[176317.418587] usb 1-5: parse_audio_format_rates_v2(): unable to 
retrieve number of sample rates (clock 5)
[176317.419156] usb 1-5: parse_audio_format_rates_v2(): unable to 
retrieve number of sample rates (clock 5)

I figured out this kind of QUIRK which seems to be working (go to test 
tomorrow more). I would go with first quirck as it's looking simpler but 
I can't add rates to it?

{
     USB_DEVICE(0x1cc5, 0x000f),
     .driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
         .ifnum = QUIRK_ANY_INTERFACE,
         .type = QUIRK_COMPOSITE,
         .data = (const struct snd_usb_audio_quirk[]) {
             {
                 .ifnum = 1,
                 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
                 .data = &(const struct audioformat) {
                     .formats = SNDRV_PCM_FMTBIT_S24_3LE,
                     .channels = 4,
                     .iface = 1,
                     .altsetting = 1,
                     .altset_idx = 1,
                     .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
                     .endpoint = 0x06,
                     .ep_attr = USB_ENDPOINT_XFER_ISOC,
                     .rates = SNDRV_PCM_RATE_48000 |
                          SNDRV_PCM_RATE_96000,
                     .rate_min = 48000,
                     .rate_max = 96000,
                     .nr_rates = 2,
                     .rate_table = (unsigned int[]) {
                         48000, 96000
                     }
                 }
             },
             {
                 .ifnum = 2,
                 .type = QUIRK_AUDIO_FIXED_ENDPOINT,
                 .data = &(const struct audioformat) {
                     .formats = SNDRV_PCM_FMTBIT_S24_3LE,
                     .channels = 4,
                     .iface = 2,
                     .altsetting = 1,
                     .altset_idx = 1,
                     .attributes = UAC_EP_CS_ATTR_SAMPLE_RATE,
                     .endpoint = 0x82,
                     .ep_attr = USB_ENDPOINT_XFER_ISOC,
                     .rates = SNDRV_PCM_RATE_48000 |
                          SNDRV_PCM_RATE_96000,
                     .rate_min = 48000,
                     .rate_max = 96000,
                     .nr_rates = 2,
                     .rate_table = (unsigned int[]) {
                         48000, 96000
                     }
                 }
             },
             {
                 .ifnum = -1,
             }
         }
     }
},

Sincerely,
Tuukka

05.07.2015, 20:32, Clemens Ladisch kirjoitti:
> Tuukka Pasanen wrote:
>> I've been hacking to get Rane SL-4 USB audio ... to work with ALSA.
>> I have compiled kernel and tried to get USB-quirks to work with this ... it doesn't do the trick
>> If I need interface association how to do that?
> The interface association descriptor should have been provided by the firmware.
>
> Anyway, try the following quirk:
>
> {
> 	USB_DEVICE(0x1cc5, 0x000f),
> 	.driver_info = (unsigned long) & (const struct snd_usb_audio_quirk) {
> 		.ifnum = QUIRK_ANY_INTERFACE,
> 		.type = QUIRK_COMPOSITE,
> 		.data = (const struct snd_usb_audio_quirk[]) {
> 			{
> 				.ifnum = 1,
> 				.type = QUIRK_AUDIO_STANDARD_INTERFACE
> 			},
> 			{
> 				.ifnum = 2,
> 				.type = QUIRK_AUDIO_STANDARD_INTERFACE
> 			},
> 			{
> 				.ifnum = -1,
> 			}
> 		}
> 	}
> },
>
>
> Regards,
> Clemens

  parent reply	other threads:[~2015-07-06 12:42 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-04  9:38 Rane SL-4 USB sound card Tuukka Pasanen
2015-07-05 17:32 ` Clemens Ladisch
2015-07-06 10:15   ` Tuukka Pasanen
2015-07-06 12:42   ` Tuukka Pasanen [this message]
2015-07-06 13:07     ` Clemens Ladisch
2015-07-06 13:39       ` Tuukka Pasanen
2015-07-07  5:37       ` Tuukka Pasanen
2015-07-07  7:23         ` Clemens Ladisch
2015-07-07  7:59           ` Tuukka Pasanen
2015-07-07 11:50           ` Tuukka Pasanen
2015-07-07 15:05             ` Clemens Ladisch

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=559A77B5.5060905@gmail.com \
    --to=pasanen.tuukka@gmail.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=clemens@ladisch.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox