All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: "Jie, Yang" <yang.jie@intel.com>
Cc: Tanu Kaskinen <tanu.kaskinen@linux.intel.com>,
	"alsa-devel@alsa-project.org" <alsa-devel@alsa-project.org>,
	Liam Girdwood <liam.r.girdwood@linux.intel.com>,
	Mark Brown <broonie@kernel.org>,
	Arun Raghavan <arun@accosted.net>, "Lu, Han" <han.lu@intel.com>
Subject: Re: Separate input and output jacks for one UCM device?
Date: Thu, 19 Mar 2015 15:37:12 +0100	[thread overview]
Message-ID: <s5hd2455a07.wl-tiwai@suse.de> (raw)
In-Reply-To: <E7B1D079BA13FB44A978CC8F69C7D6A901BDA3F0@SHSMSX101.ccr.corp.intel.com>

At Thu, 19 Mar 2015 14:31:58 +0000,
Jie, Yang wrote:
> 
> > -----Original Message-----
> > From: Takashi Iwai [mailto:tiwai@suse.de]
> > Sent: Thursday, March 19, 2015 10:10 PM
> > To: Liam Girdwood
> > Cc: Tanu Kaskinen; alsa-devel@alsa-project.org; Arun Raghavan; Lu, Han;
> > Mark Brown; Jie, Yang
> > Subject: Re: Separate input and output jacks for one UCM device?
> > 
> > At Thu, 19 Mar 2015 09:15:59 +0000,
> > Liam Girdwood wrote:
> > >
> > > On Wed, 2015-03-18 at 21:41 +0200, Tanu Kaskinen wrote:
> > > > Hi Liam and alsa-devel,
> > > >
> > >
> > > I've added a few others on the CC that would be interested.
> > >
> > > > My understanding is that a UCM device can represent a thing that has
> > > > both input and output (I don't particularly like that, but it's too
> > > > late to complain).
> > >
> > > Yes, but it can also represent simplex devices too e.g.
> > > "Headset-Speakers" and "Headset-Mic". There are not any hard rules
> > > here, but most examples are using duplex devices as historically UCM
> > > came from the phone ecosystem use cases.
> > >
> > > > How likely do you think that there are or there will be some drivers
> > > > that expose separate input and output jack kcontrols for a headset
> > > > jack, to differentiate between headphones/headset/microphone? My
> > > > understanding is that jack kcontrols store only booleans, so there's
> > > > no way to distinguish between headphones and a headset with just one
> > kcontrol.
> > > >
> > >
> > > This sounds like we need to extend the jack kcontrol so that we can
> > > differentiate between Headphones and Headset unless the kcontrol
> > > naming was intended to differentiate and define the jack type ?
> > 
> > Yeah, that's what we really need to face seriously now to.
> > Keyon is working on merging input and kctl jacks, and this is the biggest
> > problem that has to be sorted out.
> > 
> > As far as I understand correctly, so far ASoC drivers also report headset as
> > boolean (the bits are multiple, but reports are either zero or N bits).  So, we
> > agreed on creating boolean "Headset" kctls.
> > 
> > One option is to provide multiple boolean kctls ("Headset Mic Jack").
> > Another option is to allow enum type for kctl jacks.  Or, yet another
> > alternative is to provide an enum ctl (e.g. "Headset Jack Type") in addition to
> > a boolean kctl ("Headset Jack").  There can be other ways, too...
> [Keyon] I have another concern, should app(e.g. pulseaudio) also need be
> able to handle different index with same "Headset Jack" kctl name? or we
> should register them as "Headset Jack N Mic" (n=0, 1, 2, ...)?

The uniqueness of item name is also needed for input jack.  There is
no check as of now, and input drivers allow multiple items with the
very same name string, but user-space can't distinguish them.


Takashi

  reply	other threads:[~2015-03-19 14:37 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-18 19:41 Separate input and output jacks for one UCM device? Tanu Kaskinen
2015-03-19  9:15 ` Liam Girdwood
2015-03-19 14:09   ` Takashi Iwai
2015-03-19 14:19     ` Mark Brown
2015-03-19 14:22     ` Jie, Yang
2015-03-19 14:34       ` Takashi Iwai
2015-03-19 14:31     ` Jie, Yang
2015-03-19 14:37       ` Takashi Iwai [this message]
2015-03-19 14:42         ` Mark Brown
2015-03-19 14:51           ` Takashi Iwai
2015-03-19 15:18             ` Mark Brown
2015-03-19 15:28               ` Takashi Iwai
2015-03-19 15:45                 ` Mark Brown
2015-03-20  4:03                 ` Raymond Yau
2015-03-31 16:49   ` Tanu Kaskinen
2015-04-01 12:27     ` Liam Girdwood
2015-04-01 16:56       ` Tanu Kaskinen
2015-04-01 23:24       ` Raymond Yau
2015-04-02  6:39         ` Liam Girdwood
2015-04-02 15:28       ` Dylan Reid
2015-04-04  5:39         ` Raymond Yau
2015-04-06  9:26           ` Liam Girdwood
2015-04-07  3:00             ` Raymond Yau
2015-04-08  1:29             ` Raymond Yau
2015-04-07 20:37         ` Tanu Kaskinen
2015-04-15 15:39           ` Tanu Kaskinen
2015-04-15 16:10             ` Dylan Reid
2015-04-16  8:31               ` Tanu Kaskinen

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=s5hd2455a07.wl-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=arun@accosted.net \
    --cc=broonie@kernel.org \
    --cc=han.lu@intel.com \
    --cc=liam.r.girdwood@linux.intel.com \
    --cc=tanu.kaskinen@linux.intel.com \
    --cc=yang.jie@intel.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 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.