Active Topics

 


Reply
Thread Tools
norayr's Avatar
Posts: 148 | Thanked: 216 times | Joined on Jul 2010 @ Yerevan
#1
hello,
I was using my Jolla 1 device till recently, the jack died.

So I bought Xperia XA2, to be able to listen to music.
As I did with Jolla - with headphones, and also by connecting via a longer wire to the AUX of my car's audio system.

Now, XA2 under android did recognize the wire to the AUX of the car.
Since I installed Sailfish on it, it only recognizes the connected headphones. The wire to the audio system is longer, and the device does not 'feel' the connected wire.

I also tried at home, I have a 2 meter wire which I connect to the home audio system, and XA2 with Sailfish does not feel the connection.

So I wonder if that's a kernel/sound driver issue, and if that driver could be tuned by writing something to /proc or /sys files.

Thank you!

Last edited by norayr; 2019-01-23 at 09:46. Reason: improve the text
 

The Following User Says Thank You to norayr For This Useful Post:
pichlo's Avatar
Posts: 6,447 | Thanked: 20,981 times | Joined on Sep 2012 @ UK
#2
I very much doubt it has anything to do with the wire length.
More like with what's at the end of it.

Headphones have a low impedance, usually 32Ω.
The audio line input impedance varies depending on the producer, but it is usually in the range of tens or kΩ (47kΩ and 100kΩ being quite common).

That's ten thousand times more! From the phone's point of view, that may look like an open circuit. Which is just a fancy way of saying "a cable with nothing connected at the other end".

A very easy way to check would be just connecting your headphones at the end of the long cable, perhaps with something like this:



A bit more advanced may be to use a Y splitter that allows to plug in two sets of headphones and instead of the other set just plug in the cable to your audio system. The sound will come out through both the headphones and the audio system but it will prove the concept.
__________________
Русский военный корабль, иди нахуй!
 

The Following 3 Users Say Thank You to pichlo For This Useful Post:
norayr's Avatar
Posts: 148 | Thanked: 216 times | Joined on Jul 2010 @ Yerevan
#3
thank you, i'll try tonight!

meanwhile i found this: https://together.jolla.com/question/...post-id-197858

they say it's detected as lineout, and lineouts are not supported.

now i think if i can get bluetooth to audio jack adapter to route audio via bt may be?
 

The Following User Says Thank You to norayr For This Useful Post:
pichlo's Avatar
Posts: 6,447 | Thanked: 20,981 times | Joined on Sep 2012 @ UK
#4
Originally Posted by norayr View Post
now i think if i can get bluetooth to audio jack adapter to route audio via bt may be?
That will definitely work. I use that setup at home, with an old audio system.
__________________
Русский военный корабль, иди нахуй!
 

The Following User Says Thank You to pichlo For This Useful Post:
norayr's Avatar
Posts: 148 | Thanked: 216 times | Joined on Jul 2010 @ Yerevan
#5
this solves my problem:

pacmd list-sinks

to get list of outputs

then

pacmd set-sink-port sink.primary_output output-wired_headphone

routes audio via jack, and

pacmd set-sink-port sink.primary_output output-line

also routes audio via jack, but the volume is a bit lower.

i guess this is a correct setting.

pacmd set-sink-port sink.primary_output output-speaker

routes back to speaker.

found it by following hints of someone helpful from telegram sailfish chat.
 

The Following 8 Users Say Thank You to norayr For This Useful Post:
Posts: 649 | Thanked: 762 times | Joined on Mar 2012 @ Ohio
#6
Originally Posted by norayr View Post
this solves my problem:

pacmd list-sinks

to get list of outputs

then

pacmd set-sink-port sink.primary_output output-wired_headphone

routes audio via jack, and

pacmd set-sink-port sink.primary_output output-line

also routes audio via jack, but the volume is a bit lower.

i guess this is a correct setting.

pacmd set-sink-port sink.primary_output output-speaker

routes back to speaker.

found it by following hints of someone helpful from telegram sailfish chat.
Are you saying that you have to manually change the output destination in order to get the phone to know how to route your audio?
 

The Following User Says Thank You to imaginaryenemy For This Useful Post:
mrsellout's Avatar
Posts: 889 | Thanked: 2,087 times | Joined on Sep 2010 @ Manchester
#7
Perhaps you could use the Situations app to execute a script containing those commands. The trigger could be plugging in a charge cable.
 

The Following 2 Users Say Thank You to mrsellout For This Useful Post:
norayr's Avatar
Posts: 148 | Thanked: 216 times | Joined on Jul 2010 @ Yerevan
#8
Originally Posted by imaginaryenemy View Post
Are you saying that you have to manually change the output destination in order to get the phone to know how to route your audio?
yes!
if the wire is connected to the audio system, not headphones.
apparently there is this thread https://together.jolla.com/question/...post-id-197869 as well.
 

The Following 2 Users Say Thank You to norayr For This Useful Post:
norayr's Avatar
Posts: 148 | Thanked: 216 times | Joined on Jul 2010 @ Yerevan
#9
Originally Posted by mrsellout View Post
Perhaps you could use the Situations app to execute a script containing those commands. The trigger could be plugging in a charge cable.
let me try situations.
if it provides just assignable buttons, it's cool.

i'll create two buttons, one for lineout, one for speaker.
ah, three, one for headphones.
 

The Following User Says Thank You to norayr For This Useful Post:
norayr's Avatar
Posts: 148 | Thanked: 216 times | Joined on Jul 2010 @ Yerevan
#10
i did not find how to execute my command line or script with situations.

i'll do that from console.

that is not a problem.
 

The Following User Says Thank You to norayr For This Useful Post:
Reply

Tags
audio, kernel, sailfish, sailfish x, xperia


 
Forum Jump


All times are GMT. The time now is 18:12.