How to retask Audio Jack?

A place to talk about all the Operating Systems, Software & Hardware
Post Reply
User avatar
Exoridus
Posts: 2
Joined: Wed Mar 13, 2019 9:44 am

Wed Mar 13, 2019 10:14 am

Hello there, first of all I love the new Lattepanda Alpha board as it does fulfill all of my needs - except one thing: I want to use the combo audio jack as a line-in only on Ubuntu 18.04.1 LTS.

My goal is to connect a male to male (aux) cable from one device (e.g. headphone jack of another computer) to the lattepanda board and process the audio stream via nodejs. I searched everywhere but could not find a working solution. I tried to retask it via HDAJackRetask, but every combination I try does not work, at least no signal is coming through. Is it even possible to reconfigure it with HDAJackRetask to make it work that way? Is it even technically possible?

Any help is really appreciated.

User avatar
ccs_hello
Posts: 623
Joined: Sat Oct 13, 2018 9:16 pm

Wed Mar 13, 2019 4:27 pm

AFAIK, the Realtek ALC269's pin assignment is not any-to-any type of flexible.
Indeed the LINE IN/OUT pins can be switched thru retasking. However, they are not exposed.

On the other hand, 3.5mm audio jack (in addition to Mic, it) only has stereo headphone out. The headphone pins are not swappable/retaskable to be LINE_IN.
(Check ALC269 datasheet...)

User avatar
Exoridus
Posts: 2
Joined: Wed Mar 13, 2019 9:44 am

Wed Mar 13, 2019 8:20 pm

Thank you for your answer. I looked into the datasheet, but to be honest, I could not get much information out of it. I can confirm that the headphone pins cannot be set to line in but I have to find a solution for this problem. Maybe add an addition line in jack to the board? If so how can this be achieved? Maybe via I2s?

Post Reply