alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
From: Daniel Mack <zonque@gmail.com>
To: louis@museresearch.com
Cc: alsa-devel <alsa-devel@alsa-project.org>
Subject: Re: UAC2 clock selector for AudioBox 1818VSL
Date: Sat, 08 Sep 2012 14:24:13 +0200	[thread overview]
Message-ID: <504B38ED.2070904@gmail.com> (raw)
In-Reply-To: <192dce6984143a00813e593a60c5a5f4.squirrel@master.museresearch.com>

[-- Attachment #1: Type: text/plain, Size: 2167 bytes --]

On 07.09.2012 19:57, louis@museresearch.com wrote:
> Hi Daniel,
>   Thanks for the quick reply. I am able to set the clock on my Mac, though
> I do need to do further tests and make sure that the sync is actually
> reliable there. The setting is available from the built-in, standard OS
> X audio setup application "Audio MIDI Setup".
> 
> There should be a S/PDIF clock signal going to the digital inputs on the
> device. Some of the other controls such as per-channel mute also appear to
> work. I've also attached the lsusb output.
> 
> There are some other details that may be relevant, but I didn't want to
> make my initial post too long/confusing because these extra details may
> end up just being a red herring: Each mixer element name (as seen in
> amixer) is prefixed with "AudioBox 1818 VSL Clock Selector" even if it is
> not a clock selector.

That strange but I believe not related. We should still fix that :)

> I am confident though that the control I've been
> playing with is the clock selector because it lists the different clock
> types as options. I also see this when I plug the device in or load the
> ALSA driver:
> 
> ALSA sound/usb/mixer.c:342 cannot get ctl value: req = 0x83, wValue =
> 0x201, wIndex = 0xa00, type = 4
> ALSA sound/usb/mixer.c:846 10:0: cannot get min/max values for control 2
> (id 10)
> ALSA sound/usb/mixer.c:342 cannot get ctl value: req = 0x83, wValue =
> 0x200, wIndex = 0xa00, type = 4
> ALSA sound/usb/mixer.c:846 10:0: cannot get min/max values for control 2
> (id 10)
> ALSA sound/usb/mixer.c:342 cannot get ctl value: req = 0x83, wValue =
> 0x201, wIndex = 0xb00, type = 4
> ALSA sound/usb/mixer.c:846 11:0: cannot get min/max values for control 2
> (id 11)
> ALSA sound/usb/mixer.c:342 cannot get ctl value: req = 0x83, wValue =
> 0x200, wIndex = 0xb00, type = 4
> ALSA sound/usb/mixer.c:846 11:0: cannot get min/max values for control 2
> (id 11)

Do you see any messages when you try to set the clock selector with amixer?

If you're running a recent kernel, try the following patch. That will
produce log messages for each mixer related control packet that is sent
out to the device.


Thanks,
Daniel




[-- Attachment #2: mixer-debug.diff --]
[-- Type: text/x-patch, Size: 658 bytes --]

diff --git a/sound/usb/mixer.c b/sound/usb/mixer.c
index 4f40ba8..fce9b88 100644
--- a/sound/usb/mixer.c
+++ b/sound/usb/mixer.c
@@ -446,6 +446,9 @@ int snd_usb_mixer_set_ctl_value(struct usb_mixer_elem_info *cval,
 				    USB_RECIP_INTERFACE | USB_TYPE_CLASS | USB_DIR_OUT,
 				    validx, snd_usb_ctrl_intf(chip) | (cval->id << 8),
 				    buf, val_len) >= 0) {
+			snd_printk(" DEBUG: %s(): request %08x requesttype %08x, value %04x, index %04x, size %d\n",
+					__func__, request, USB_RECIP_INTERFACE | USB_TYPE_CLASS | USB_DIR_OUT,
+					validx, snd_usb_ctrl_intf(chip) | (cval->id << 8), val_len);
 			snd_usb_autosuspend(chip);
 			return 0;
 		}

[-- Attachment #3: Type: text/plain, Size: 0 bytes --]



  parent reply	other threads:[~2012-09-08 12:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-06 20:20 UAC2 clock selector for AudioBox 1818VSL louis
2012-09-06 20:53 ` Daniel Mack
     [not found]   ` <192dce6984143a00813e593a60c5a5f4.squirrel@master.museresearch.com>
2012-09-08 12:24     ` Daniel Mack [this message]
2012-09-10 17:29       ` louis
  -- strict thread matches above, loose matches on Subject: below --
2012-09-07 17:58 louis

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=504B38ED.2070904@gmail.com \
    --to=zonque@gmail.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=louis@museresearch.com \
    /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;
as well as URLs for NNTP newsgroup(s).