All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Henningsson <david.henningsson@canonical.com>
To: Jaroslav Kysela <perex@perex.cz>
Cc: Takashi Iwai <tiwai@suse.de>,
	ALSA Development Mailing List <alsa-devel@alsa-project.org>
Subject: Re: First test of the hda-jack branch
Date: Tue, 15 Nov 2011 10:22:05 +0100	[thread overview]
Message-ID: <4EC22F3D.6030001@canonical.com> (raw)
In-Reply-To: <4EC140A4.2060408@perex.cz>

On 11/14/2011 05:24 PM, Jaroslav Kysela wrote:
> Date 14.11.2011 10:32, Takashi Iwai wrote:
>> At Fri, 11 Nov 2011 21:08:47 +0100,
>> David Henningsson wrote:
>>>
>>> In addition, I have a question about the second machine, which looks
>>> like this:
>>>
>>> numid=45,iface=CARD,name='Front Headphone Jack'
>>> numid=47,iface=CARD,name='Front Mic Jack'
>>> numid=48,iface=CARD,name='Line Jack'
>>> numid=41,iface=CARD,name='Line-Out Jack'
>>> numid=42,iface=CARD,name='Line-Out Jack',index=1
>>> numid=43,iface=CARD,name='Line-Out Jack',index=2
>>> numid=44,iface=CARD,name='Line-Out Jack',index=3
>>> numid=46,iface=CARD,name='Rear Mic Jack'
>>>
>>> Would it be possible to name the Line-Out Jacks "Front Line-Out",
>>> "Surround Line-Out" etc, so one can tell which one is which? Or can you
>>> always tell that just from the order of them?
>>
>> I can assign more intuitive names for the output, certainly.
>> I'll consider the implementation.
>
> Perhaps, the jacks should be described (control name) using physical
> parameters (location, color, connector type). Many codecs support both
> directions and I saw some bug-reports that ALSA cannot reassign the
>direction of jacks -

We can essentially do that in snd-hda-intel with the reconfiguration 
feature. That will also recreate the jacks with the new name. This seems 
to be a reasonable way forward IMO.

> if we agree that next versions of ALSA driver might
> support this feature, naming using the logical purpose might be
> confusing (we might propagate the logical purpose information using TLV
> to user space as an extra info).
>
> So something like "Ext Right 1/8 Black Jack".
> The lenghtest possibility "Ext Rear Panel Digital Unknown Jack" has 36
> chars (including '\0') so it fits to 44 characters for the control name
> with reasonable amount of space for future extensions.
>
> Can we handle the jack direction (playback, capture), too? This control
> element might be R/O or R/W (depending if hw/driver supports the jack
> direction control).

 > And for last, we might create an enum control to set the VREF /
 > LR_SWAP / BALANCED behaviour from the user space.

The problem is making something useful out of all this from userspace. 
If we ever end up creating and using the complete graph information in 
userspace, perhaps this would make more sense.

For now, having a consistent view is better as it easier to match the 
"Rear Mic" mixer control with "Rear Mic Jack", than it is to match "Rear 
Mic" with "Ext Right 1/8 Black Jack".


-- 
David Henningsson, Canonical Ltd.
http://launchpad.net/~diwic

  reply	other threads:[~2011-11-15  9:22 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-11 16:23 First test of the hda-jack branch David Henningsson
2011-11-11 16:52 ` Takashi Iwai
2011-11-11 20:08   ` David Henningsson
2011-11-14  9:32     ` Takashi Iwai
2011-11-14 16:24       ` Jaroslav Kysela
2011-11-15  9:22         ` David Henningsson [this message]
2011-11-16  9:50           ` Raymond Yau
2011-11-16 10:07             ` David Henningsson
2011-11-17 16:39       ` Takashi Iwai
2011-11-21 10:02         ` David Henningsson
2011-11-21 13:38           ` Takashi Iwai

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=4EC22F3D.6030001@canonical.com \
    --to=david.henningsson@canonical.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=perex@perex.cz \
    --cc=tiwai@suse.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 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.