All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Lena <lena@nihil.gay>
Cc: alsa-devel@alsa-project.org
Subject: Re: ALSA USB quirk mixer driver question
Date: Thu, 27 Feb 2025 08:01:38 +0100	[thread overview]
Message-ID: <87a5a73m7h.wl-tiwai@suse.de> (raw)
In-Reply-To: <527b73fe-892f-476e-95e7-7c0cd09df1d0@nihil.gay>

On Thu, 27 Feb 2025 00:15:01 +0100,
Lena wrote:
> 
> Thanks for the reply!
> 
> So, if i understand correctly, instead of going through
> sound/usb/mixer_quirks.c, i need to create a standalone USBHID driver
> that exposes the ALSA kcontrols and then the ALSA userspace
> understands that it's the same interface and 'links' the
> UAC/isochronous audio part and the standalone ALSA mixer kcontrol part
> that has the volume knobs, mute, output select and input
> impedance/phantom power/headphone gain switches such that an userspace
> application (like alsamixer) treats it all as a single thing.

Well, how to manage HID device is other question.  Usually a HID
device provides the controls via input device API.  It's not
prohibited to use a sound API (in this case you'd need to create your
own sound card object), though.

> Does this driver then belong in sound/usb/ (given it imports the API
> in <sound/control.h>) or somewhere else (e.g. drivers/hid/usbhid/,
> drivers/usb/)?

Not likely.  It'll be a pure HID driver.


HTH,

Takashi

      reply	other threads:[~2025-02-27  7:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-14 12:05 ALSA USB quirk mixer driver question Lena
2025-02-26 10:22 ` Takashi Iwai
2025-02-26 23:15   ` Lena
2025-02-27  7:01     ` Takashi Iwai [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=87a5a73m7h.wl-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=lena@nihil.gay \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.