D
D
D0ct0r_Murder2018-02-14 10:07:08
C++ / C#
D0ct0r_Murder, 2018-02-14 10:07:08

Is it possible to find out if anything is connected to the headphone port?

Is it possible to find out if anything is connected to the headphone port?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Alexandrov, 2018-02-14
@jamakasi666

On linux systems, see /proc/asound/card0/codec#number , there are nodes in it and they have a Pin-ctls field, so you can determine whether something is connected or not by the value in it. There are also many variations in the form of libraries. There is an api
in windows Pro smartphones above answered.

P
pfg21, 2018-02-14
@pfg21

Mozho, if such a possibility is provided in the equipment and there is an implementation in the driver.
see the technical description on the soundtrack. although maybe these details are marked chipboard :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question