From: David Henningsson <david.henningsson@canonical.com>
To: Takashi Iwai <tiwai@suse.de>
Cc: alsa-devel@alsa-project.org, 939161@bugs.launchpad.net
Subject: Re: [PATCH] ALSA: hda - Remove ignore_misc_bit
Date: Fri, 07 Sep 2012 16:28:19 +0200 [thread overview]
Message-ID: <504A0483.3050807@canonical.com> (raw)
In-Reply-To: <s5hwr06ugi4.wl%tiwai@suse.de>
On 09/07/2012 03:09 PM, Takashi Iwai wrote:
> At Fri, 07 Sep 2012 14:47:16 +0200,
> David Henningsson wrote:
>>
>> On 09/07/2012 02:36 PM, Takashi Iwai wrote:
>>> At Fri, 07 Sep 2012 14:17:58 +0200,
>>> David Henningsson wrote:
>>>> Or is the corner case that ALSA don't give the correct jack detection
>>>> value? If so I prefer it to be fixed in ALSA ;-)
>>>
>>> Well, I can think of different cases: BIOS is broken, my hardware is
>>> broken and the driver is broken. In such a case, an easier test would
>>> be to disable this jack auto-things in PA, rather than fiddling with
>>> the pin config and reconfigure the driver, so I hoped there might be
>>> an intuitive and easy way to do that.
>>
>> Naah, in all those cases it is ALSA's responsibility to give a correct
>> answer up to PA - and as such, also to provide an "intuitive and easy
>> way" to disable jack detection if you feel there is a need. IMO.
>
> Adjusting a user-space things is much safer than adjusting something
> in kernel. The former doesn't need a root privilege (if it's done
> right). Thus for debugging purpose, fiddling with PA at first would
> be more comfortable than digging with the driver code and BIOS
> setups.
>
> Of course, a permanent fix is a different story. I'm talking about
> the debuggability.
>
>> That said, it's not super difficult to comment out a few lines in
>> /usr/share/pulseaudio/alsa-mixer/paths/*.conf, and also, most mixer UIs
>> (e g pavucontrol) still allows you to route audio to an unavailable port.
>
> Yes, but some guidelines would be nice to have somewhere explicitly...
> Also this can be done without being root somehow, right?
Hmm, I'm afraid it's not so easy to turn off PulseAudio's jack detection
without being root. Maybe it's possible using some .asoundrc magic?
Btw - I've never seen this as a practical problem myself. For debugging
jack sense problems, I typically triage with
1) "amixer contents" (PulseAudio or kernel space?)
2) "sudo hda-jack-sense-test" (hardware or driver?)
Asking people to run a sudo command has never been a problem. (but maybe
that's a problem in itself - i e that people are not security aware...)
--
David Henningsson, Canonical Ltd.
https://launchpad.net/~diwic
next prev parent reply other threads:[~2012-09-07 14:28 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-07 5:25 [PATCH] ALSA: hda - Remove ignore_misc_bit David Henningsson
2012-09-07 10:01 ` Takashi Iwai
2012-09-07 11:26 ` David Henningsson
2012-09-07 11:59 ` Takashi Iwai
2012-09-07 12:17 ` David Henningsson
2012-09-07 12:36 ` Takashi Iwai
2012-09-07 12:47 ` David Henningsson
2012-09-07 13:09 ` Takashi Iwai
2012-09-07 14:28 ` David Henningsson [this message]
2012-09-07 14:32 ` Takashi Iwai
2012-09-07 15:39 ` Tanu Kaskinen
[not found] ` <CAN8cciYOMpjXfEpQxYFwTve94rz_LLzJyA=nBdCCdtwOJ5Lnbw@mail.gmail.com>
2012-09-17 8:44 ` Raymond Yau
2012-09-08 1:10 ` Raymond Yau
2012-09-09 7:50 ` Takashi Iwai
2012-09-14 2:10 ` Raymond Yau
2012-09-17 7:39 ` David Henningsson
2012-09-18 8:26 ` Takashi Iwai
2012-09-18 8:40 ` David Henningsson
2012-09-18 8:58 ` Takashi Iwai
2012-09-19 0:35 ` Raymond Yau
2012-09-25 15:38 ` Raymond Yau
2012-09-19 15:20 ` Raymond Yau
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=504A0483.3050807@canonical.com \
--to=david.henningsson@canonical.com \
--cc=939161@bugs.launchpad.net \
--cc=alsa-devel@alsa-project.org \
--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.