Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Mack <daniel@caiaq.de>
To: Felix Homann <fexpop@web.de>
Cc: alsa-devel@alsa-project.org
Subject: Re: How to create an Alsa mixer for a USB device w/o mixer descriptor?
Date: Wed, 17 Mar 2010 17:11:16 +0100	[thread overview]
Message-ID: <20100317161116.GG30801@buzzloop.caiaq.de> (raw)
In-Reply-To: <4BA0C162.5090606@web.de>

On Wed, Mar 17, 2010 at 12:47:46PM +0100, Felix Homann wrote:
> Daniel Mack schrieb:
> >Does that mean it doesn't export _any_ descriptors for that? Or just not
> >output terminal?
> >
> 
> As far as I can tell, there really is no descriptor for a mixer
> device or similar. Please, see the attached output of lsusb -v. (The
> device is mostly working with QUIRK_AUDIO_STANDARD_INTERFACE quirks.
> )

Jep, it seems so.

> Although I posted it before, you might take a look at my findings in
> the attached  reverse-engineering-...txt file. I didn't know
> anything about Audio Class devices when I gathered that information,
> and digged only a bit deeper by now. For me, it seems that the
> device is actually operated like an ordinary USB mixer (v1).

Well then I would just try it that way and see what it takes.

> >Thinking about what you're trying to achieve, I think at least one way
> >to go is to implement a new function ('handle_audio_mixer_unit_quirks'
> >for example) in sound/usb/mixer_quirks.c and call it from
> >snd_usb_create_mixer(). The function would need to return a static fake
> >descriptor, hard-coded in mixer_quirks.c. Now that the driver works with
> >structs for descriptors, that shouldn't be hard to do.
> 
> OK, I'll try to work my way through the sources. Although it's
> probably not too hard for someone familiar with Alsa and USB
> devices, it might take some time for me ;-)

It is, however, easier to implement such changes if you actually have
the device to play around with it than trying to add such quirks
blindly. So - go, give it a try :)

Daniel

      reply	other threads:[~2010-03-17 16:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-17  8:37 How to create an Alsa mixer for a USB device w/o mixer descriptor? Felix Homann
2010-03-17 11:28 ` Daniel Mack
2010-03-17 11:47   ` Felix Homann
2010-03-17 16:11     ` Daniel Mack [this message]

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=20100317161116.GG30801@buzzloop.caiaq.de \
    --to=daniel@caiaq.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=fexpop@web.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