linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Nokia N900 headset detection & MIC Bias + TVOUT
@ 2017-01-06 23:07 Pali Rohár
  2017-01-09 11:27 ` Mark Brown
  0 siblings, 1 reply; 7+ messages in thread
From: Pali Rohár @ 2017-01-06 23:07 UTC (permalink / raw)
  To: Tony Lindgren, Peter Ujfalusi, Jarkko Nikula, Liam Girdwood,
	Mark Brown
  Cc: Lars-Peter Clausen, Aaro Koskinen, Nishanth Menon,
	Sebastian Reichel, Pavel Machek, Ivaylo Dimitrov,
	joerg Reisenweber, linux-omap, linux-kernel

[-- Attachment #1: Type: Text/Plain, Size: 915 bytes --]

Hi!

For jack cable and headset detection in Nokia N900 I would need to 
enable/disable MIC Bias and also enable/disable TVOUT output.

All that is needed in N900 sound driver, file sound/soc/omap/rx51.c. Can 
you help me which functions should I call to enable/disable it 
correctly? In headset detection code I need to be sure that nobody 
(other kernel drivers or userspace via alsamixer) except current 
function could change Bias settings.

MIC Bias is controlled by MICBIAS_CTRL in aic34 'B' part codec, file 
tlv320aic3x.c.

And according to RX-51 Schematics TVOUT is controlled by OMAP3430 pins: 
TV_OUT1 and TV_VFB1. I have not found any references to them in kernel, 
just in omap trm. How is OMAP3430's TV_OUT1 controlled?

(Existing code in Maemo 2.6.28 kernel is doing it by big hack - exports 
function which directly modify MICBIAS_CTRL)

-- 
Pali Rohár
pali.rohar@gmail.com

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-01-09 20:33 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-06 23:07 Nokia N900 headset detection & MIC Bias + TVOUT Pali Rohár
2017-01-09 11:27 ` Mark Brown
2017-01-09 13:13   ` Pali Rohár
2017-01-09 19:22     ` Mark Brown
2017-01-09 19:29       ` Pali Rohár
2017-01-09 19:38         ` Mark Brown
2017-01-09 20:32           ` Pali Rohár

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).