Re: [pulseaudio-discuss] [RFC] Pulseaudio jack sense

2011-04-13 Thread Liam Girdwood
On Tue, 2011-04-12 at 21:58 +0100, Mark Brown wrote: > On Tue, Apr 12, 2011 at 02:14:04PM -0500, pl bossart wrote: > > > Jack detect does not use the ALSA kernel subsystem but does instead > > > use the input subsystem for jack status. It makes sense to create a > > > new module so we can then use

Re: [pulseaudio-discuss] [RFC] Pulseaudio jack sense

2011-04-12 Thread Mark Brown
On Tue, Apr 12, 2011 at 02:14:04PM -0500, pl bossart wrote: > > Jack detect does not use the ALSA kernel subsystem but does instead > > use the input subsystem for jack status. It makes sense to create a > > new module so we can then use jack detect for non ALSA sound devices. > I'm a bit lost her

Re: [pulseaudio-discuss] [RFC] Pulseaudio jack sense

2011-04-12 Thread pl bossart
> Jack detect does not use the ALSA kernel subsystem but does instead > use the input subsystem for jack status. It makes sense to create a > new module so we can then use jack detect for non ALSA sound devices. I'm a bit lost here. What are 'non ALSA sound devices'? And to the best of my knowledg

Re: [pulseaudio-discuss] [RFC] Pulseaudio jack sense

2011-04-11 Thread Margarita Olaya
Hi Pierre, On Fri, Apr 8, 2011 at 3:42 PM, pl bossart wrote: >>> I've not looked specifically at the code, but I'd have expected that >>> jack detection would somehow be built into module-alsa-card or >>> module-alsa-source/sink rather than shipped as a separate module (tho' >>> I'm maybe not app

Re: [pulseaudio-discuss] [RFC] Pulseaudio jack sense

2011-04-08 Thread pl bossart
>> I've not looked specifically at the code, but I'd have expected that >> jack detection would somehow be built into module-alsa-card or >> module-alsa-source/sink rather than shipped as a separate module (tho' >> I'm maybe not appreciating some intricacy here)... I'll try and review >> the code s

Re: [pulseaudio-discuss] [RFC] Pulseaudio jack sense

2011-04-07 Thread Margarita Olaya
Hi Colin, On Thu, Apr 7, 2011 at 5:12 PM, Colin Guthrie wrote: > Hiya Maggie, > > 'Twas brillig, and Margarita Olaya at 11/03/11 16:50 did gyre and gimble: >>> > The second thing is to figure out what we should really do once we have >>> > detected jack insertion or removal. Adding a hook event a

Re: [pulseaudio-discuss] [RFC] Pulseaudio jack sense

2011-04-07 Thread Colin Guthrie
Hiya Maggie, 'Twas brillig, and Margarita Olaya at 11/03/11 16:50 did gyre and gimble: >> > The second thing is to figure out what we should really do once we have >> > detected jack insertion or removal. Adding a hook event and let other >> > modules act on that, seems reasonable to me. But we sh

Re: [pulseaudio-discuss] [RFC] Pulseaudio jack sense

2011-04-04 Thread Margarita Olaya
Hi Pierre, On Mon, Apr 4, 2011 at 1:05 PM, pl bossart wrote: > Margarita: > I wasn't really able to try out your patches and figure out what they entail > since your version of pulseaudio is _very_ old. I tried to merge them one by > one, you'll find the result attached. I compiles with git maste

Re: [pulseaudio-discuss] [RFC] Pulseaudio jack sense

2011-04-04 Thread pl bossart
Margarita: I wasn't really able to try out your patches and figure out what they entail since your version of pulseaudio is _very_ old. I tried to merge them one by one, you'll find the result attached. I compiles with git master and if UCM is disabled in module-alsa-card things seem to work fine,

Re: [pulseaudio-discuss] [RFC] Pulseaudio jack sense

2011-03-11 Thread Margarita Olaya
Hi David, On Fri, Mar 11, 2011 at 1:12 AM, David Henningsson wrote: > On 2011-03-10 22:47, Margarita Olaya wrote: >> >> Hi, >> >> I have some initial code for jack sense implementation, the approach >> is to listen /dev/input/eventX and pass that data as argument to a new >> module called module-

Re: [pulseaudio-discuss] [RFC] Pulseaudio jack sense

2011-03-10 Thread David Henningsson
On 2011-03-10 22:47, Margarita Olaya wrote: Hi, I have some initial code for jack sense implementation, the approach is to listen /dev/input/eventX and pass that data as argument to a new module called module-jack-detect where a thread wakes when the jack has been inserted. Using the current co