[SOLVED] Mic. not working in PanasonicCF54 intel ALC256 chip

Getting your soundcard to work, using Debian on non-i386 hardware, etc

[SOLVED] Mic. not working in PanasonicCF54 intel ALC256 chip

Postby gurfle » 2017-10-06 04:20

Software: Stretch 9.1, mate desktop, pulseaudio and alsa all installed correctly.
Hardware: Panasonic CF-54 with headset jack and ALC256 sound chip.

Summary of problem: Earphones of headset connected to the jack work, but microphone functionality fails.

Test performed (speaking into microphone for 5 seconds):
arecord -d 5 test.wav; aplay test.wav
with only 5 seconds of static heard.

Of course, I've ensured that everything is unmuted :)
EDIT: (AND that hardware is NOT the issue -- see response to first reply below)

cat /etc/modprobe.d/sound.conf
Code: Select all
options snd-hda-intel model=laptop-dmic

pactl list sources
Code: Select all
Source #0
   State: SUSPENDED
   Name: alsa_output.pci-0000_00_1f.3.analog-stereo.monitor
   Description: Monitor of Built-in Audio Analog Stereo
   Driver: module-alsa-card.c
   Sample Specification: s16le 2ch 48000Hz
   Channel Map: front-left,front-right
   Owner Module: 6
   Mute: no
   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
   Monitor of Sink: alsa_output.pci-0000_00_1f.3.analog-stereo
   Latency: 0 usec, configured 0 usec
   Flags: DECIBEL_VOLUME LATENCY
   Properties:
      device.description = "Monitor of Built-in Audio Analog Stereo"
      device.class = "monitor"
      alsa.card = "0"
      alsa.card_name = "HDA Intel PCH"
      alsa.long_card_name = "HDA Intel PCH at 0xf7448000 irq 128"
      alsa.driver_name = "snd_hda_intel"
      device.bus_path = "pci-0000:00:1f.3"
      sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
      device.bus = "pci"
      device.vendor.id = "8086"
      device.vendor.name = "Intel Corporation"
      device.product.id = "9d70"
      device.product.name = "Sunrise Point-LP HD Audio"
      device.form_factor = "internal"
      device.string = "0"
      module-udev-detect.discovered = "1"
      device.icon_name = "audio-card-pci"
   Formats:
      pcm

Source #1
   State: RUNNING
   Name: alsa_input.pci-0000_00_1f.3.analog-stereo
   Description: Built-in Audio Analog Stereo
   Driver: module-alsa-card.c
   Sample Specification: s16le 2ch 44100Hz
   Channel Map: front-left,front-right
   Owner Module: 6
   Mute: no
   Volume: front-left: 65540 / 100% / 0.00 dB,   front-right: 65540 / 100% / 0.00 dB
           balance 0.00
   Base Volume: 6554 /  10% / -60.00 dB
   Monitor of Sink: n/a
   Latency: 9472 usec, configured 40000 usec
   Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY
   Properties:
      alsa.resolution_bits = "16"
      device.api = "alsa"
      device.class = "sound"
      alsa.class = "generic"
      alsa.subclass = "generic-mix"
      alsa.name = "ALC256 Analog"
      alsa.id = "ALC256 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 0xf7448000 irq 128"
      alsa.driver_name = "snd_hda_intel"
      device.bus_path = "pci-0000:00:1f.3"
      sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
      device.bus = "pci"
      device.vendor.id = "8086"
      device.vendor.name = "Intel Corporation"
      device.product.id = "9d70"
      device.product.name = "Sunrise Point-LP HD Audio"
      device.form_factor = "internal"
      device.string = "front:0"
      device.buffering.buffer_size = "352800"
      device.buffering.fragment_size = "176400"
      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 = "Realtek ALC256"
      alsa.components = "HDA:10ec0256,10f70500,00100002 HDA:80862809,80860101,00100000"
      module-udev-detect.discovered = "1"
      device.icon_name = "audio-card-pci"
   Ports:
      analog-input-rear-mic: Rear Microphone (priority: 8200, not available)
      analog-input-internal-mic: Internal Microphone (priority: 8900)
      analog-input-mic: Microphone (priority: 8700, not available)
   Active Port: analog-input-mic
   Formats:
      pcm

pacmd list-sources
Code: Select all
2 source(s) available.
    index: 0
   name: <alsa_output.pci-0000_00_1f.3.analog-stereo.monitor>
   driver: <module-alsa-card.c>
   flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
   state: SUSPENDED
   suspend cause: IDLE
   priority: 1950
   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: 0.00 ms
   max rewind: 0 KiB
   sample spec: s16le 2ch 48000Hz
   channel map: front-left,front-right
                Stereo
   used by: 0
   linked by: 0
   configured latency: 0.00 ms; range is 0.50 .. 1837.50 ms
   monitor_of: 0
   card: 0 <alsa_card.pci-0000_00_1f.3>
   module: 6
   properties:
      device.description = "Monitor of Built-in Audio Analog Stereo"
      device.class = "monitor"
      alsa.card = "0"
      alsa.card_name = "HDA Intel PCH"
      alsa.long_card_name = "HDA Intel PCH at 0xf7448000 irq 128"
      alsa.driver_name = "snd_hda_intel"
      device.bus_path = "pci-0000:00:1f.3"
      sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
      device.bus = "pci"
      device.vendor.id = "8086"
      device.vendor.name = "Intel Corporation"
      device.product.id = "9d70"
      device.product.name = "Sunrise Point-LP HD Audio"
      device.form_factor = "internal"
      device.string = "0"
      module-udev-detect.discovered = "1"
      device.icon_name = "audio-card-pci"
  * index: 1
   name: <alsa_input.pci-0000_00_1f.3.analog-stereo>
   driver: <module-alsa-card.c>
   flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
   state: RUNNING
   suspend cause:
   priority: 9959
   volume: front-left: 65540 / 100% / 0.00 dB,   front-right: 65540 / 100% / 0.00 dB
           balance 0.00
   base volume: 6554 /  10% / -60.00 dB
   volume steps: 65537
   muted: no
   current latency: 1.27 ms
   max rewind: 0 KiB
   sample spec: s16le 2ch 44100Hz
   channel map: front-left,front-right
                Stereo
   used by: 1
   linked by: 1
   configured latency: 40.00 ms; range is 0.50 .. 2000.00 ms
   card: 0 <alsa_card.pci-0000_00_1f.3>
   module: 6
   properties:
      alsa.resolution_bits = "16"
      device.api = "alsa"
      device.class = "sound"
      alsa.class = "generic"
      alsa.subclass = "generic-mix"
      alsa.name = "ALC256 Analog"
      alsa.id = "ALC256 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 0xf7448000 irq 128"
      alsa.driver_name = "snd_hda_intel"
      device.bus_path = "pci-0000:00:1f.3"
      sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
      device.bus = "pci"
      device.vendor.id = "8086"
      device.vendor.name = "Intel Corporation"
      device.product.id = "9d70"
      device.product.name = "Sunrise Point-LP HD Audio"
      device.form_factor = "internal"
      device.string = "front:0"
      device.buffering.buffer_size = "352800"
      device.buffering.fragment_size = "176400"
      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 = "Realtek ALC256"
      alsa.components = "HDA:10ec0256,10f70500,00100002 HDA:80862809,80860101,00100000"
      module-udev-detect.discovered = "1"
      device.icon_name = "audio-card-pci"
   ports:
      analog-input-rear-mic: Rear Microphone (priority 8200, latency offset 0 usec, available: no)
         properties:
            device.icon_name = "audio-input-microphone"
      analog-input-internal-mic: Internal Microphone (priority 8900, latency offset 0 usec, available: unknown)
         properties:
            device.icon_name = "audio-input-microphone"
      analog-input-mic: Microphone (priority 8700, latency offset 0 usec, available: no)
         properties:
            device.icon_name = "audio-input-microphone"
   active port: <analog-input-mic>

cat /proc/asound/card*/codec#*
Code: Select all
Codec: Realtek ALC256
Address: 0
AFG Function Id: 0x1 (unsol 1)
Vendor Id: 0x10ec0256
Subsystem Id: 0x10f70500
Revision Id: 0x100002
No Modem Function Group found
Default PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
Default Amp-In caps: N/A
Default Amp-Out caps: N/A
State of AFG node 0x01:
  Power states:  D0 D1 D2 D3 D3cold CLKSTOP EPSS
  Power: setting=D0, actual=D0
GPIO: io=3, o=0, i=0, unsolicited=1, wake=0
  IO[0]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
  IO[1]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
  IO[2]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
Node 0x02 [Audio Output] wcaps 0x41d: Stereo Amp-Out
  Control: name="Speaker Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Amp-Out caps: ofs=0x57, nsteps=0x57, stepsize=0x02, mute=0
  Amp-Out vals:  [0x00 0x00]
  Converter: stream=1, channel=0
  PCM:
    rates [0x60]: 44100 48000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x03 [Audio Output] wcaps 0x41d: Stereo Amp-Out
  Control: name="Headphone Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Device: name="ALC256 Analog", type="Audio", device=0
  Amp-Out caps: ofs=0x57, nsteps=0x57, stepsize=0x02, mute=0
  Amp-Out vals:  [0x37 0x37]
  Converter: stream=1, channel=0
  PCM:
    rates [0x60]: 44100 48000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x04 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x05 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x06 [Audio Output] wcaps 0x611: Stereo Digital
  Converter: stream=0, channel=0
  Digital:
  Digital category: 0x0
  IEC Coding Type: 0x0
  PCM:
    rates [0x5e0]: 44100 48000 88200 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D3, actual=D3
Node 0x07 [Audio Input] wcaps 0x10051b: Stereo Amp-In
  Amp-In caps: ofs=0x17, nsteps=0x3f, stepsize=0x02, mute=1
  Amp-In vals:  [0x97 0x97]
  Converter: stream=0, channel=0
  SDI-Select: 0
  PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D3, actual=D3
  Connection: 1
     0x24
Node 0x08 [Audio Input] wcaps 0x10051b: Stereo Amp-In
  Control: name="Capture Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Capture Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Device: name="ALC256 Analog", type="Audio", device=0
  Amp-In caps: ofs=0x17, nsteps=0x3f, stepsize=0x02, mute=1
  Amp-In vals:  [0x3f 0x3f]
  Converter: stream=1, channel=0
  SDI-Select: 0
  PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x23
Node 0x09 [Audio Input] wcaps 0x10051b: Stereo Amp-In
  Amp-In caps: ofs=0x17, nsteps=0x3f, stepsize=0x02, mute=1
  Amp-In vals:  [0x97 0x97]
  Converter: stream=0, channel=0
  SDI-Select: 0
  PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D3, actual=D3
  Connection: 1
     0x22
Node 0x0a [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x0b [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x0c [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x0d [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x0e [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x0f [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x10 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x11 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x12 [Pin Complex] wcaps 0x40040b: Stereo Amp-In
  Control: name="Internal Mic Boost Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00]
  Pincap 0x00000020: IN
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x20: IN
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x13 [Pin Complex] wcaps 0x40040b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00]
  Pincap 0x00000020: IN
  Pin Default 0x40000000: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0x0, Sequence = 0x0
  Pin-ctls: 0x00:
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D3, actual=D3
Node 0x14 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
  Control: name="Speaker Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x80 0x80]
  Pincap 0x00010014: OUT EAPD Detect
  EAPD 0x2: EAPD
  Pin Default 0x90170110: [Fixed] Speaker at Int N/A
    Conn = Analog, Color = Unknown
    DefAssociation = 0x1, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x02
Node 0x15 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x16 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x17 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x18 [Pin Complex] wcaps 0x40048b: Stereo Amp-In
  Control: name="Rear Mic Boost Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00]
  Pincap 0x00003724: IN Detect
    Vref caps: HIZ 50 GRD 80 100
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x24: IN VREF_80
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D3, actual=D3
Node 0x19 [Pin Complex] wcaps 0x40048b: Stereo Amp-In
  Control: name="Mic Boost Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals:  [0x02 0x02]
  Pincap 0x00003724: IN Detect
    Vref caps: HIZ 50 GRD 80 100
  Pin Default 0x04a11040: [Jack] Mic at Ext Right
    Conn = 1/8, Color = Black
    DefAssociation = 0x4, Sequence = 0x0
  Pin-ctls: 0x24: IN VREF_80
  Unsolicited: tag=03, enabled=1
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D3, actual=D3
Node 0x1a [Pin Complex] wcaps 0x40048b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00]
  Pincap 0x00003724: IN Detect
    Vref caps: HIZ 50 GRD 80 100
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x00: VREF_HIZ
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D3, actual=D3
Node 0x1b [Pin Complex] wcaps 0x40058f: Stereo Amp-In Amp-Out
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00]
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x80 0x80]
  Pincap 0x00013734: IN OUT EAPD Detect
    Vref caps: HIZ 50 GRD 80 100
  EAPD 0x2: EAPD
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x20: IN VREF_HIZ
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D3, actual=D3
  Connection: 2
     0x02* 0x03
Node 0x1c [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x1d [Pin Complex] wcaps 0x400400: Mono
  Pincap 0x00000020: IN
  Pin Default 0x40669a45: [N/A] Modem Line at Ext N/A
    Conn = Digital, Color = Pink
    DefAssociation = 0x4, Sequence = 0x5
  Pin-ctls: 0x20: IN
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D3, actual=D3
Node 0x1e [Pin Complex] wcaps 0x400781: Stereo Digital
  Pincap 0x00000014: OUT Detect
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D3, actual=D3
  Connection: 1
     0x06
Node 0x1f [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x20 [Vendor Defined Widget] wcaps 0xf00040: Mono
  Processing caps: benign=0, ncoeff=91
Node 0x21 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
  Control: name="Headphone Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x00 0x00]
  Pincap 0x0001001c: OUT HP EAPD Detect
  EAPD 0x2: EAPD
  Pin Default 0x04211020: [Jack] HP Out at Ext Right
    Conn = 1/8, Color = Black
    DefAssociation = 0x2, Sequence = 0x0
  Pin-ctls: 0xc0: OUT HP
  Unsolicited: tag=01, enabled=1
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D3, actual=D3
  Connection: 2
     0x02 0x03*
Node 0x22 [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals:  [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
  Connection: 5
     0x18 0x19 0x1a 0x1b 0x1d
Node 0x23 [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals:  [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x00 0x00]
  Connection: 6
     0x18 0x19 0x1a 0x1b 0x1d 0x12
Node 0x24 [Audio Selector] wcaps 0x300101: Stereo
  Connection: 2
     0x12* 0x13
Codec: Intel Skylake HDMI
Address: 2
AFG Function Id: 0x1 (unsol 0)
Vendor Id: 0x80862809
Subsystem Id: 0x80860101
Revision Id: 0x100000
No Modem Function Group found
Default PCM:
    rates [0x0]:
    bits [0x0]:
    formats [0x0]:
Default Amp-In caps: N/A
Default Amp-Out caps: N/A
State of AFG node 0x01:
  Power states:  D0 D3 CLKSTOP EPSS
  Power: setting=D0, actual=D0, Clock-stop-OK
GPIO: io=0, o=0, i=0, unsolicited=0, wake=0
Node 0x02 [Audio Output] wcaps 0x6611: 8-Channels Digital
  Converter: stream=0, channel=0
  Digital: Enabled KAE
  Digital category: 0x0
  IEC Coding Type: 0x0
  PCM:
    rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
    bits [0x1a]: 16 24 32
    formats [0x5]: PCM AC3
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x03 [Audio Output] wcaps 0x6611: 8-Channels Digital
  Converter: stream=0, channel=0
  Digital: Enabled KAE
  Digital category: 0x0
  IEC Coding Type: 0x0
  PCM:
    rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
    bits [0x1a]: 16 24 32
    formats [0x5]: PCM AC3
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x04 [Audio Output] wcaps 0x6611: 8-Channels Digital
  Converter: stream=0, channel=0
  Digital: Enabled KAE
  Digital category: 0x0
  IEC Coding Type: 0x0
  PCM:
    rates [0x7f0]: 32000 44100 48000 88200 96000 176400 192000
    bits [0x1a]: 16 24 32
    formats [0x5]: PCM AC3
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x05 [Pin Complex] wcaps 0x40778d: 8-Channels Digital Amp-Out CP
  Control: name="IEC958 Playback Con Mask", index=0, device=0
  Control: name="IEC958 Playback Pro Mask", index=0, device=0
  Control: name="IEC958 Playback Default", index=0, device=0
  Control: name="IEC958 Playback Switch", index=0, device=0
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x00 0x00]
  Pincap 0x0b000094: OUT Detect HBR HDMI DP
  Pin Default 0x18560010: [Jack] Digital Out at Int HDMI
    Conn = Digital, Color = Unknown
    DefAssociation = 0x1, Sequence = 0x0
  Pin-ctls: 0x00:
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Devices: 0
  Connection: 0
  In-driver Connection: 3
     0x02 0x03 0x04
Node 0x06 [Pin Complex] wcaps 0x40778d: 8-Channels Digital Amp-Out CP
  Control: name="IEC958 Playback Con Mask", index=1, device=0
  Control: name="IEC958 Playback Pro Mask", index=1, device=0
  Control: name="IEC958 Playback Default", index=1, device=0
  Control: name="IEC958 Playback Switch", index=1, device=0
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x00 0x00]
  Pincap 0x0b000094: OUT Detect HBR HDMI DP
  Pin Default 0x18560020: [Jack] Digital Out at Int HDMI
    Conn = Digital, Color = Unknown
    DefAssociation = 0x2, Sequence = 0x0
  Pin-ctls: 0x00:
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Devices: 0
  Connection: 0
  In-driver Connection: 3
     0x02 0x03 0x04
Node 0x07 [Pin Complex] wcaps 0x40778d: 8-Channels Digital Amp-Out CP
  Control: name="IEC958 Playback Con Mask", index=2, device=0
  Control: name="IEC958 Playback Pro Mask", index=2, device=0
  Control: name="IEC958 Playback Default", index=2, device=0
  Control: name="IEC958 Playback Switch", index=2, device=0
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x00 0x00]
  Pincap 0x0b000094: OUT Detect HBR HDMI DP
  Pin Default 0x18560030: [Jack] Digital Out at Int HDMI
    Conn = Digital, Color = Unknown
    DefAssociation = 0x3, Sequence = 0x0
  Pin-ctls: 0x00:
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D3 EPSS
  Power: setting=D0, actual=D0
  Devices: 0
  Connection: 0
  In-driver Connection: 3
     0x02 0x03 0x04
Node 0x08 [Vendor Defined Widget] wcaps 0xf00000: Mono

amixer scontents -c 0
Code: Select all
Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 87
  Mono: Playback 55 [63%] [-24.00dB] [on]
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 87
  Mono:
  Front Left: Playback 87 [100%] [0.00dB] [on]
  Front Right: Playback 87 [100%] [0.00dB] [on]
Simple mixer control 'Speaker',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 87
  Mono:
  Front Left: Playback 0 [0%] [-65.25dB] [off]
  Front Right: Playback 0 [0%] [-65.25dB] [off]
Simple mixer control 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 255 [100%] [0.00dB]
  Front Right: Playback 255 [100%] [0.00dB]
Simple mixer control 'Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 2 [67%] [20.00dB]
  Front Right: 2 [67%] [20.00dB]
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'IEC958',1
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958',2
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 63
  Front Left: Capture 63 [100%] [30.00dB] [on]
  Front Right: Capture 63 [100%] [30.00dB] [on]
Simple mixer control 'Auto-Mute Mode',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Enabled'
Simple mixer control 'Digital',0
  Capabilities: cvolume
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 120
  Front Left: Capture 120 [100%] [30.00dB]
  Front Right: Capture 120 [100%] [30.00dB]
Simple mixer control 'Internal Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 3 [100%] [30.00dB]
  Front Right: 3 [100%] [30.00dB]
Simple mixer control 'Rear Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 3 [100%] [30.00dB]
  Front Right: 3 [100%] [30.00dB]

Following some rather sketchy suggestions here, I have tried using hdajackretask to assign unconnected pins to the "Microphone" jack (as opposed to the one labeled "Internal mic"), but unfortunately without any improvement: Curiously, while in alsamixer some new "Capture" devices show up after new assignments made through hdajackretask, these appear in there with no volume control slider.

It should be noted that there actually is no internal microphone on this laptop, though of course it is supported by the ALC256 chip, and therefore shows up in all the software controls. This is the reason that it would be especially handy for me to get a microphone to work in the headset jack of a Panasonic CF54 8)
Last edited by gurfle on 2017-10-10 22:39, edited 7 times in total.
User avatar
gurfle
 
Posts: 333
Joined: 2009-06-04 02:08
Location: Seattle, Washington, US

Re: Headset microphone not working in ALC256 sound chip

Postby debiman » 2017-10-06 16:16

hmm.
maybe i'm stating the obvious here, but... maybe the headphoen jack does not integrate a microphone input?
is there a separate mic/line input?
User avatar
debiman
 
Posts: 1619
Joined: 2013-03-12 07:18

Re: Headset microphone not working in ALC256 sound chip

Postby gurfle » 2017-10-06 17:06

debiman wrote:hmm.
maybe i'm stating the obvious here, but... maybe the headphoen jack does not integrate a microphone input?
is there a separate mic/line input?

No, it definitely is a headset jack with four connectors. I know the hardware being tested (i.e. laptop jack and headset with both in- and output on same plug) works, because from a Win10 partition on the same machine, both microphone and earphone are recognized and function the instant the headset is plugged into that jack. For now, it would be great if I could just get the microphone to work at all in debian stretch. It would be best if headset insertion could be detected so sound could be immediately switched from internal to external, but I don't want to ask for too much yet :wink:
User avatar
gurfle
 
Posts: 333
Joined: 2009-06-04 02:08
Location: Seattle, Washington, US

Re: Headset microphone not working in ALC256 sound chip

Postby debiman » 2017-10-07 05:21

searching your model for linux and sound mic problems brings up some stuff, i suggest you research deeper.

why is this:
Code: Select all
options snd-hda-intel model=laptop-dmic
there? did you put that last option there? what does it mean?

troubleshooting:
i'd try to disable pulseaudio first and see if i can get it to work on alsa; maybe because i know nothing about pulseaudio, but what i see is this:

Ports:
analog-input-rear-mic: Rear Microphone (priority: 8200, not available)
analog-input-internal-mic: Internal Microphone (priority: 8900)
analog-input-mic: Microphone (priority: 8700, not available)
Active Port: analog-input-mic


some discrepancy there.
User avatar
debiman
 
Posts: 1619
Joined: 2013-03-12 07:18

Re: Headset microphone not working in ALC256 sound chip

Postby gurfle » 2017-10-07 11:03

debiman wrote:why is this:
Code: Select all
options snd-hda-intel model=laptop-dmic
there? did you put that last option there? what does it mean?
This turns out to be what's needed for the ALC256 chip in the Panasonic CF-54. See the list under "ALC25x" here and/or this post.
EDIT: In fact "model=headset-mode" is the option that works with this hardware (as explained in my last post at the bottom of this thread).

Actually, the real good news is that I got the mic. to work, with this "model=laptop-dmic" option right after following your suggestion of disabling pulseaudio :idea:

However the bad news is that it only lasted for about an hour :(

EDIT: After a lot of frustrating troubleshooting, I now know what caused this mysterious appearance and disappearance of sound. See this.
Last edited by gurfle on 2017-10-10 22:36, edited 4 times in total.
User avatar
gurfle
 
Posts: 333
Joined: 2009-06-04 02:08
Location: Seattle, Washington, US

Re: Headset microphone not working in ALC256 sound chip

Postby gurfle » 2017-10-07 17:32

Some of the modules running:

lsmod | grep snd
Code: Select all
snd_hda_codec_hdmi     49152  1
snd_hda_codec_realtek    90112  1
snd_hda_codec_generic    69632  1 snd_hda_codec_realtek
snd_soc_skl            65536  0
snd_soc_skl_ipc        45056  1 snd_soc_skl
snd_soc_sst_ipc        16384  1 snd_soc_skl_ipc
snd_soc_sst_dsp        28672  1 snd_soc_skl_ipc
snd_hda_ext_core       28672  1 snd_soc_skl
snd_soc_sst_match      16384  1 snd_soc_skl
snd_soc_core          212992  1 snd_soc_skl
snd_compress           20480  1 snd_soc_core
snd_hda_intel          36864  3
snd_hda_codec         135168  4 snd_hda_intel,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
snd_hda_core           81920  7 snd_hda_intel,snd_hda_codec,snd_hda_ext_core,snd_soc_skl,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
snd_hwdep              16384  1 snd_hda_codec
snd_pcm               110592  7 snd_hda_intel,snd_hda_codec,snd_hda_ext_core,snd_hda_core,snd_soc_skl,snd_hda_codec_hdmi,snd_soc_core
snd_timer              32768  1 snd_pcm
snd                    86016  16 snd_compress,snd_hda_intel,snd_hwdep,snd_hda_codec,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek,snd_soc_core,snd_pcm
soundcore              16384  1 snd

lsmod | grep usb
Code: Select all
btusb                  45056  0
btrtl                  16384  1 btusb
btbcm                  16384  1 btusb
btintel                16384  1 btusb
bluetooth             552960  26 btrtl,btintel,bnep,btbcm,btusb
usbhid                 53248  0
hid                   122880  3 hid_generic,usbhid,wacom
usbcore               249856  4 usbhid,xhci_pci,btusb,xhci_hcd
usb_common             16384  1 usbcore

and just in case, here they all are
lsmod
Code: Select all
Module                  Size  Used by
nls_ascii              16384  1
nls_cp437              20480  1
vfat                   20480  1
fat                    69632  1 vfat
uas                    24576  0
usb_storage            73728  2 uas
ctr                    16384  2
ccm                    20480  1
cpufreq_powersave      16384  0
cpufreq_userspace      16384  0
cpufreq_conservative    16384  0
cmac                   16384  1
bnep                   20480  2
intel_rapl             20480  0
x86_pkg_temp_thermal    16384  0
intel_powerclamp       16384  0
coretemp               16384  0
kvm_intel             192512  0
kvm                   589824  1 kvm_intel
irqbypass              16384  1 kvm
snd_hda_codec_hdmi     49152  1
snd_hda_codec_realtek    90112  1
snd_hda_codec_generic    69632  1 snd_hda_codec_realtek
snd_soc_skl            65536  0
snd_soc_skl_ipc        45056  1 snd_soc_skl
crct10dif_pclmul       16384  0
snd_soc_sst_ipc        16384  1 snd_soc_skl_ipc
crc32_pclmul           16384  0
arc4                   16384  2
snd_soc_sst_dsp        28672  1 snd_soc_skl_ipc
ghash_clmulni_intel    16384  0
iwlmvm                245760  0
mac80211              671744  1 iwlmvm
snd_hda_ext_core       28672  1 snd_soc_skl
snd_soc_sst_match      16384  1 snd_soc_skl
snd_soc_core          212992  1 snd_soc_skl
snd_compress           20480  1 snd_soc_core
btusb                  45056  0
intel_cstate           16384  0
btrtl                  16384  1 btusb
btbcm                  16384  1 btusb
iwlwifi               147456  1 iwlmvm
intel_uncore          118784  0
cfg80211              589824  3 iwlmvm,iwlwifi,mac80211
btintel                16384  1 btusb
snd_hda_intel          36864  2
bluetooth             552960  26 btrtl,btintel,bnep,btbcm,btusb
intel_rapl_perf        16384  0
pcspkr                 16384  0
snd_hda_codec         135168  4 snd_hda_intel,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
snd_hda_core           81920  7 snd_hda_intel,snd_hda_codec,snd_hda_ext_core,snd_soc_skl,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
efi_pstore             16384  0
rfkill                 24576  6 bluetooth,cfg80211
joydev                 20480  0
evdev                  24576  14
iTCO_wdt               16384  0
iTCO_vendor_support    16384  1 iTCO_wdt
snd_hwdep              16384  1 snd_hda_codec
snd_pcm               110592  7 snd_hda_intel,snd_hda_codec,snd_hda_ext_core,snd_hda_core,snd_soc_skl,snd_hda_codec_hdmi,snd_soc_core
snd_timer              32768  1 snd_pcm
mei_me                 36864  0
sg                     32768  0
efivars                20480  1 efi_pstore
serio_raw              16384  0
acpi_als               16384  0
battery                20480  0
shpchp                 36864  0
kfifo_buf              16384  1 acpi_als
i915                 1232896  4
drm_kms_helper        155648  1 i915
drm                   360448  5 i915,drm_kms_helper
int3402_thermal        16384  0
dptf_power             16384  0
panasonic_laptop       16384  0
intel_lpss_acpi        16384  0
intel_lpss             16384  1 intel_lpss_acpi
industrialio           69632  2 acpi_als,kfifo_buf
sparse_keymap          16384  1 panasonic_laptop
mfd_core               16384  1 intel_lpss
int3406_thermal        16384  0
int3403_thermal        16384  0
tpm_infineon           20480  0
ac                     16384  0
acpi_pad               24576  0
snd                    86016  14 snd_compress,snd_hda_intel,snd_hwdep,snd_hda_codec,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek,snd_soc_core,snd_pcm
soundcore              16384  1 snd
video                  40960  2 int3406_thermal,i915
mei                   102400  1 mei_me
button                 16384  1 i915
processor_thermal_device    16384  0
int340x_thermal_zone    16384  3 int3402_thermal,int3403_thermal,processor_thermal_device
int3400_thermal        16384  0
acpi_thermal_rel       16384  1 int3400_thermal
intel_pch_thermal      16384  0
intel_soc_dts_iosf     16384  1 processor_thermal_device
i2c_algo_bit           16384  1 i915
parport_pc             28672  0
ppdev                  20480  0
lp                     20480  0
parport                49152  3 lp,parport_pc,ppdev
efivarfs               16384  1
ip_tables              24576  0
x_tables               36864  1 ip_tables
autofs4                40960  2
ext4                  585728  3
crc16                  16384  2 bluetooth,ext4
jbd2                  106496  1 ext4
crc32c_generic         16384  0
fscrypto               28672  1 ext4
ecb                    16384  0
mbcache                16384  4 ext4
hid_generic            16384  0
dm_mod                118784  19
wacom                  94208  0
usbhid                 53248  0
hid                   122880  3 hid_generic,usbhid,wacom
sr_mod                 24576  0
sd_mod                 45056  4
cdrom                  61440  1 sr_mod
crc32c_intel           24576  4
aesni_intel           167936  4
sdhci_pci              28672  0
aes_x86_64             20480  1 aesni_intel
sdhci                  45056  1 sdhci_pci
glue_helper            16384  1 aesni_intel
lrw                    16384  1 aesni_intel
gf128mul               16384  1 lrw
ablk_helper            16384  1 aesni_intel
cryptd                 24576  3 ablk_helper,ghash_clmulni_intel,aesni_intel
mmc_core              147456  2 sdhci,sdhci_pci
psmouse               135168  0
i2c_i801               24576  0
i2c_smbus              16384  1 i2c_i801
ahci                   36864  1
libahci                32768  1 ahci
e1000e                245760  0
ptp                    20480  1 e1000e
pps_core               16384  1 ptp
xhci_pci               16384  0
libata                249856  2 ahci,libahci
xhci_hcd              188416  1 xhci_pci
scsi_mod              225280  6 sd_mod,usb_storage,libata,uas,sr_mod,sg
usbcore               249856  6 usbhid,usb_storage,xhci_pci,btusb,uas,xhci_hcd
usb_common             16384  1 usbcore
thermal                20480  0
fan                    16384  0
User avatar
gurfle
 
Posts: 333
Joined: 2009-06-04 02:08
Location: Seattle, Washington, US

Re: Microphone not working in Panasonic CF-54, ALC256 sound

Postby gurfle » 2017-10-08 19:47

Brief update:

Still not able to reproduce that "magical" hour (when everything with the headset jack worked like a charm) with

1) Completely clean (i.e. on a reformatted partition) installation of stretch (with default mate desktop) from the 9..0 DVD-1

2) Pulsaudio disabled, then all its packages removed (Though, as before, a couple of puseaudio library packages had to remain in order not to loose mate.)

3) Upgrade from 9.1.1 DVD-1

2) Upgrade from the latest 9.2 DVD set (of 2).

So now I have a completely clean 9.2 mate desktop system with alsa but no running pulseaudio deamon and microphone remains nonfunctional :(
What could I have done to get it to work for a while :? ? Unfortunately, I failed to get the pulseaudio, alsa and running module dumps while it was (for comparison with the posted ones) :x
User avatar
gurfle
 
Posts: 333
Joined: 2009-06-04 02:08
Location: Seattle, Washington, US

Re: Microphone not working in Panasonic CF-54, ALC256 sound

Postby gurfle » 2017-10-09 05:10

OK . . . now I know what's going on:

It has nothing to do with pulseaudio or alsa, but some firmware initialization that is done by Windows 10, but not by plain "free" debian. I am downloading firmware-9.2.0-amd64-DVD-1 that has the debian non-free firmware, and will report if anything from there helps.

Here is the reason I only briefly had everything working:
When I boot into Windows 10, and then into stretch (without turning off power), everything works as expected in stretch. Starting stretch directly after a power cycle however results in (1) the microphone not working at all, and (2) headset plug insertion not being recognized by pulseaudio.
User avatar
gurfle
 
Posts: 333
Joined: 2009-06-04 02:08
Location: Seattle, Washington, US

Re: Microphone not working in Panasonic CF-54, ALC256 sound

Postby gurfle » 2017-10-09 05:59

gurfle wrote:I am downloading firmware-9.2.0-amd64-DVD-1 that has the debian non-free firmware, and will report if anything from there helps.

There is a package called firmware-intel-sound, but that seem not to have anything relevant.
User avatar
gurfle
 
Posts: 333
Joined: 2009-06-04 02:08
Location: Seattle, Washington, US

Re: Microphone not working in Panasonic CF-54, ALC256 sound

Postby dilberts_left_nut » 2017-10-09 06:11

You don't need to download the non-free dvd to get the firmware - it's all available in the regular non-free repo's, just not included in the official installation media.
AdrianTM wrote:There's no hacker in my grandma...
User avatar
dilberts_left_nut
 
Posts: 4703
Joined: 2009-10-05 07:54
Location: enzed

Re: Microphone not working in Panasonic CF-54, ALC256 sound

Postby gurfle » 2017-10-10 22:32

Finally solved !!!
Here's what it takes:

1) kernel upgrade to 4.9.0-4 (as comes in stretch 9.2 -- kernel 4.9.0-3 in 9.1 does not do sound properly on this hardware).

2) change /etc/modprobe.d/sound.conf to
Code: Select all
options snd-hda-intel model=headset-mode

I had mistakenly thought the option "model=laptop-dmic" was correct because that happened to be what was in place when everything worked after the unwitting warm start from Win10 (as described above). Then all tests, even after the upgrade to stretch 9.2 failed until the "headset-mode" model option was tried once again.
User avatar
gurfle
 
Posts: 333
Joined: 2009-06-04 02:08
Location: Seattle, Washington, US


Return to Hardware

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable