* muteing speakers if headphones were plugged in?
@ 2002-04-16 17:05 Matthias Grimm
2002-04-16 17:30 ` Benjamin Herrenschmidt
0 siblings, 1 reply; 4+ messages in thread
From: Matthias Grimm @ 2002-04-16 17:05 UTC (permalink / raw)
To: PPC-Dev Mailingliste
Hi,
I was asked to built a new feature into pbbuttons: To mute the speakers
if headphones are plugged in.
I don't know where to get the information if headphones are plugged in
or not, so I had a look into the recent kernel and I saw some code (for
eg. headphone_intr() ) that seems to do what I am asked for. On the
other hand the code seems very experimental and not really complete as I
could see at some comments.
What is the status? Should this feature (muting the speakers ...) be
part of the kernel or was it only a fast shot to get it work?
I saw the most headphone code within the Tumbler section so I assume
that it would only work on new TiBooks and iBooks?
Nevertheless is there a method to get the information of the line-in
jack status from user space?
Thanks for your help and best regards
Matthias
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: muteing speakers if headphones were plugged in?
2002-04-16 17:05 muteing speakers if headphones were plugged in? Matthias Grimm
@ 2002-04-16 17:30 ` Benjamin Herrenschmidt
2002-04-17 15:23 ` Matthias Grimm
0 siblings, 1 reply; 4+ messages in thread
From: Benjamin Herrenschmidt @ 2002-04-16 17:30 UTC (permalink / raw)
To: Matthias Grimm, PPC-Dev Mailingliste
>
>Hi,
>
>I was asked to built a new feature into pbbuttons: To mute the speakers
>if headphones are plugged in.
It's already implemented at the driver level for some chipsets.
>I don't know where to get the information if headphones are plugged in
>or not, so I had a look into the recent kernel and I saw some code (for
>eg. headphone_intr() ) that seems to do what I am asked for. On the
>other hand the code seems very experimental and not really complete as I
>could see at some comments.
>
>What is the status? Should this feature (muting the speakers ...) be
>part of the kernel or was it only a fast shot to get it work?
It works with recent drivers though only if your chipset is Tumbler afaik.
>I saw the most headphone code within the Tumbler section so I assume
>that it would only work on new TiBooks and iBooks?
Yes.
>Nevertheless is there a method to get the information of the line-in
>jack status from user space?
Not that I know of, but I don't know the OSS API that well, it may
be possible to add this information to what is returned from the driver.
Ben.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: muteing speakers if headphones were plugged in?
2002-04-16 17:30 ` Benjamin Herrenschmidt
@ 2002-04-17 15:23 ` Matthias Grimm
2002-04-17 18:56 ` benh
0 siblings, 1 reply; 4+ messages in thread
From: Matthias Grimm @ 2002-04-17 15:23 UTC (permalink / raw)
To: Benjamin Herrenschmidt; +Cc: LinuxPPC-Dev
Benjamin Herrenschmidt wrote:
>>I don't know where to get the information if headphones are plugged in
>>or not, so I had a look into the recent kernel and I saw some code (for
>>eg. headphone_intr() ) that seems to do what I am asked for. On the
>>other hand the code seems very experimental and not really complete as I
>>could see at some comments.
>>
>>What is the status? Should this feature (muting the speakers ...) be
>>part of the kernel or was it only a fast shot to get it work?
>>
>
> It works with recent drivers though only if your chipset is Tumbler afaik.
Is someone working on that issue to implement it for the other chipsets?
Matthias
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: muteing speakers if headphones were plugged in?
2002-04-17 15:23 ` Matthias Grimm
@ 2002-04-17 18:56 ` benh
0 siblings, 0 replies; 4+ messages in thread
From: benh @ 2002-04-17 18:56 UTC (permalink / raw)
To: Matthias Grimm; +Cc: LinuxPPC-Dev
>
>Is someone working on that issue to implement it for the other chipsets?
I think the Alsa driver can work on other chipsets. I don't know if
someone is working on it for dmasound, I don't think so.
On these (awacs, burgundy), I think you don't have to register a second
interrupt, the main chip interrupt will be called when the jack state
changes, you can probably act from there. A good source of info is the
darwin source code which contains source code for all of Apple sound
drivers.
Ben.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-04-17 18:56 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-16 17:05 muteing speakers if headphones were plugged in? Matthias Grimm
2002-04-16 17:30 ` Benjamin Herrenschmidt
2002-04-17 15:23 ` Matthias Grimm
2002-04-17 18:56 ` benh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).