You are not logged in.

#1 2020-06-01 20:57:27

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,686

No audio in headphones using JACK Audio Kit

I installed JACK in my Thnkpad X220 laptop. It's working OK including the pulseaudio bridge with Cadence but the only problem is I can't get an output when I plug in my headphones. If I don't use JACK and revert back to pulseaudio, then the headphones work normally.

pacmd list-sinks using pulseaudio alone:

1 sink(s) available.
  * index: 2
        name: <alsa_output.pci-0000_00_1b.0.analog-stereo>
        driver: <module-alsa-card.c>
        flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY FLAT_VOLUME DYNAMIC_LATENCY
        state: RUNNING
        suspend cause: (none)
        priority: 9039
        volume: front-left: 52964 /  81% / -5.55 dB,   front-right: 52964 /  81% / -5.55 dB
                balance 0.00
        base volume: 65536 / 100% / 0.00 dB
        volume steps: 65537
        muted: no
        current latency: 979.54 ms
        max request: 337 KiB
        max rewind: 337 KiB
        monitor source: 3
        sample spec: s32le 2ch 44100Hz
        channel map: front-left,front-right
                     Stereo
        used by: 1
        linked by: 1
        configured latency: 980.00 ms; range is 0.50 .. 2000.00 ms
        card: 0 <alsa_card.pci-0000_00_1b.0>
        module: 29
        properties:
                alsa.resolution_bits = "32"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "CX20590 Analog"
                alsa.id = "CX20590 Analog"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "0"
                alsa.card = "0"
                alsa.card_name = "HDA Intel PCH"
                alsa.long_card_name = "HDA Intel PCH at 0xf2620000 irq 40"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:00:1b.0"
                sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"
                device.bus = "pci"
                device.vendor.id = "8086"
                device.vendor.name = "Intel Corporation"
                device.product.id = "1c20"
                device.product.name = "6 Series/C200 Series Chipset Family High Definition Audio Controller"
                device.form_factor = "internal"
                device.string = "front:0"
                device.buffering.buffer_size = "705600"
                device.buffering.fragment_size = "352800"
                device.access_mode = "mmap+timer"
                device.profile.name = "analog-stereo"
                device.profile.description = "Analog Stereo"
                device.description = "Built-in Audio Analog Stereo"
                alsa.mixer_name = "Conexant CX20590"
                alsa.components = "HDA:14f1506e,17aa21da,00100002 HDA:80862805,80860101,00100000"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        ports:
                analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "audio-speakers"
                analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: yes)
                        properties:
                                device.icon_name = "audio-headphones"
        active port: <analog-output-headphones>

As you can see the active port is recognised as headphones.

pacmd list-sinks using JACK:

1 sink(s) available.
  * index: 0
        name: <jack_out>
        driver: <module-jack-sink.c>
        flags: DECIBEL_VOLUME LATENCY FLAT_VOLUME 
        state: RUNNING
        suspend cause: (none)
        priority: 0
        volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
                balance 0.00
        base volume: 65536 / 100% / 0.00 dB
        volume steps: 65537
        muted: no
        current latency: 22.92 ms
        max request: 2 KiB
        max rewind: 0 KiB
        monitor source: 0
        sample spec: float32le 2ch 48000Hz
        channel map: front-left,front-right
                     Stereo
        used by: 1
        linked by: 1
        fixed latency: 21.33 ms
        module: 8
        properties:
                device.api = "jack"
                device.description = "Jack sink (PulseAudio JACK Sink)"
                jack.client_name = "PulseAudio JACK Sink"
                device.icon_name = "audio-card"

Any help on how to debug this?

Offline

#2 2020-06-01 22:03:09

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,064

Re: No audio in headphones using JACK Audio Kit

Did you configure  it to go over the headphones while running with jack in cadence? Afaik it's pretty manual in that regard and you have to explicitly change the port you wish to use. Pacmd output for the jack case is kind of irrelevant if jack should be controlling your device state.

Last edited by V1del (2020-06-01 22:03:40)

Offline

#3 2020-06-01 22:33:23

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,686

Re: No audio in headphones using JACK Audio Kit

Did you configure  it to go over the headphones while running with jack in cadence?

I did try to find that in Cadence but didn't quite find the switch. This is a combo jack (one jack for both mic and headphone) so it could be that JACK is seeing it as microphone.
I'll have another look at Cadence.

Offline

#4 2020-06-02 20:34:24

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,686

Re: No audio in headphones using JACK Audio Kit

I had a look at Cadence but it lists only the default card (all the rests are HDMI which doesn't pertain to me). I think the problem is the laptop has a combo jack (one jack for both input and output) and I can see the JACK sink and the microphone in pavucontrol but not the headphone.

Offline

#5 2020-06-08 19:55:55

archdub
Member
From: Dublin, Ireland
Registered: 2018-03-04
Posts: 110

Re: No audio in headphones using JACK Audio Kit

I had the same problem with my desktop, which unlike your laptop has separate ports for speakers and microphone. I spent hours on it yesterday, and today the problem disappeared by itself. I don't know why, maybe because I rebooted the computer, so maybe give it a try.

Offline

Board footer

Powered by FluxBB