Linux за българи: Форуми

Linux секция за начинаещи => Настройка на хардуер => Темата е започната от: ivanatora в Jan 02, 2014, 08:44



Титла: Внезапно ми изчезнаха половината аудио канали в миксера
Публикувано от: ivanatora в Jan 02, 2014, 08:44
Здравейте,

Този компютър не го бях ползвал 2 седмици и сега като сядам на него откривам че половината аудио канали ги няма в alsamixer и микрофона не работи. До сега беше на предния панел, работел е и на задните жакове.

Започвам с дебъг инфото (системата е Ubuntu 12.04.3):

Код:
$ amixer 
Simple mixer control 'Master',0
  Capabilities: pvolume penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 64
  Mono:
  Front Left: Playback 54 [84%] [-10.00dB]
  Front Right: Playback 54 [84%] [-10.00dB]
Simple mixer control 'PCM',0
  Capabilities: pvolume penum
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 253 [99%] [0.40dB]
  Front Right: Playback 253 [99%] [0.40dB]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch penum
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 46
  Front Left: Capture 46 [100%] [30.00dB] [on]
  Front Right: Capture 46 [100%] [30.00dB] [on]
Simple mixer control 'Digital',0
  Capabilities: cvolume penum
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 120
  Front Left: Capture 0 [0%] [-30.00dB]
  Front Right: Capture 0 [0%] [-30.00dB]

Код:
$ lsmod |grep snd
snd_hda_intel          33719  4
snd_hda_codec         127706  1 snd_hda_intel
snd_hwdep              17764  1 snd_hda_codec
snd_pcm                97275  3 snd_hda_intel,snd_hda_codec
snd_seq_midi           13324  0
snd_rawmidi            30748  1 snd_seq_midi
snd_seq_midi_event     14899  1 snd_seq_midi
snd_seq                61929  2 snd_seq_midi,snd_seq_midi_event
snd_timer              29990  2 snd_pcm,snd_seq
snd_seq_device         14540  3 snd_seq_midi,snd_rawmidi,snd_seq
snd                    79041  15 snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
soundcore              15091  1 snd
snd_page_alloc         18529  2 snd_hda_intel,snd_pcm

Код:
# lspci -v
-- snippet --
00:1b.0 Audio device: Intel Corporation 6 Series/C200 Series Chipset Family High Definition Audio Controller (rev 04)
Subsystem: Gigabyte Technology Co., Ltd Device a002
Flags: bus master, fast devsel, latency 0, IRQ 44
Memory at f7c00000 (64-bit, non-prefetchable) [size=16K]
Capabilities: [50] Power Management version 2
Capabilities: [60] MSI: Enable+ Count=1/1 Maskable- 64bit+
Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
Capabilities: [100] Virtual Channel
Capabilities: [130] Root Complex Link
Kernel driver in use: snd_hda_intel
Kernel modules: snd-hda-intel
--/snippet--

Код:
$ pacmd list sinks
Welcome to PulseAudio! Use "help" for usage information.
>>> Memory blocks currently allocated: 44, size: 212.1 KiB.
Memory blocks allocated during the whole lifetime: 20983270, size: 3.9 GiB.
Memory blocks imported from other processes: 43, size: 148.1 KiB.
Memory blocks exported to other processes: 0, size: 0 B.
Total sample cache size: 0 B.
Default sample spec: s16le 2ch 44100Hz
Default channel map: front-left,front-right
Default sink name: alsa_output.pci-0000_00_1b.0.analog-stereo
Default source name: alsa_input.pci-0000_00_1b.0.analog-stereo
Memory blocks of type POOL: 1 allocated/1689166 accumulated.
Memory blocks of type POOL_EXTERNAL: 0 allocated/102169 accumulated.
Memory blocks of type APPENDED: 0 allocated/0 accumulated.
Memory blocks of type USER: 0 allocated/0 accumulated.
Memory blocks of type FIXED: 0 allocated/12462657 accumulated.
Memory blocks of type IMPORTED: 43 allocated/6831447 accumulated.
18 module(s) loaded.
    index: 0
name: <module-device-restore>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "Automatically restore the volume/mute state of devices"
module.version = "2.0"
    index: 1
name: <module-stream-restore>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "Automatically restore the volume/mute/device state of streams"
module.version = "2.0"
    index: 2
name: <module-card-restore>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "Automatically restore profile of cards"
module.version = "2.0"
    index: 3
name: <module-augment-properties>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "Augment the property sets of streams with additional static information"
module.version = "2.0"
    index: 4
name: <module-alsa-card>
argument: <device_id="0" name="pci-0000_00_1b.0" card_name="alsa_card.pci-0000_00_1b.0" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes card_properties="module-udev-detect.discovered=1">
used: 1
load once: no
properties:
module.author = "Lennart Poettering"
module.description = "ALSA Card"
module.version = "2.0"
    index: 5
name: <module-udev-detect>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "Detect available audio hardware and load matching drivers"
module.version = "2.0"
    index: 6
name: <module-native-protocol-unix>
argument: <>
used: -1
load once: no
properties:
module.author = "Lennart Poettering"
module.description = "Native protocol (UNIX sockets)"
module.version = "2.0"
    index: 7
name: <module-default-device-restore>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "Automatically restore the default sink and source"
module.version = "2.0"
    index: 8
name: <module-rescue-streams>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "When a sink/source is removed, try to move their streams to the default sink/source"
module.version = "2.0"
    index: 9
name: <module-always-sink>
argument: <>
used: -1
load once: yes
properties:
module.author = "Colin Guthrie"
module.description = "Always keeps at least one sink loaded even if it's a null one"
module.version = "2.0"
    index: 10
name: <module-intended-roles>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "Automatically set device of streams based of intended roles of devices"
module.version = "2.0"
    index: 11
name: <module-suspend-on-idle>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "When a sink/source is idle for too long, suspend it"
module.version = "2.0"
    index: 12
name: <module-console-kit>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "Create a client for each ConsoleKit session of this user"
module.version = "2.0"
    index: 13
name: <module-position-event-sounds>
argument: <>
used: -1
load once: yes
properties:
module.author = "Lennart Poettering"
module.description = "Position event sounds between L and R depending on the position on screen of the widget triggering them."
module.version = "2.0"
    index: 14
name: <module-filter-heuristics>
argument: <>
used: -1
load once: yes
properties:
module.author = "Colin Guthrie"
module.description = "Detect when various filters are desirable"
module.version = "2.0"
    index: 15
name: <module-filter-apply>
argument: <>
used: -1
load once: yes
properties:
module.author = "Colin Guthrie"
module.description = "Load filter sinks automatically when needed"
module.version = "2.0"
    index: 16
name: <module-switch-on-port-available>
argument: <>
used: -1
load once: no
properties:

    index: 17
name: <module-cli-protocol-unix>
argument: <>
used: -1
load once: no
properties:
module.author = "Lennart Poettering"
module.description = "Command line interface protocol (UNIX sockets)"
module.version = "2.0"
1 sink(s) available.
    index: 0
name: <alsa_output.pci-0000_00_1b.0.analog-stereo>
driver: <module-alsa-card.c>
flags: HARDWARE HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: RUNNING
suspend cause:
priority: 9959
volume: 0:  67% 1:  67%
        0: -10.40 dB 1: -10.40 dB
        balance 0.00
base volume: 100%
             0.00 dB
volume steps: 65537
muted: no
current latency: 19.69 ms
max request: 3 KiB
max rewind: 64 KiB
monitor source: 0
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
             Stereo
used by: 1
linked by: 1
configured latency: 20.00 ms; range is 4.00 .. 371.52 ms
card: 0 <alsa_card.pci-0000_00_1b.0>
module: 4
properties:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "HDA Generic"
alsa.id = "HDA Generic"
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 0xf7c00000 irq 44"
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.name = "6 Series/C200 Series Chipset Family High Definition Audio Controller"
device.form_factor = "internal"
device.string = "front:0"
device.buffering.buffer_size = "65536"
device.buffering.fragment_size = "32768"
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 ID 887"
alsa.components = "HDA:10ec0887,1458a002,00100302"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
ports:
analog-output: Analog Output (priority 9900, available: unknown)
properties:

active port: <analog-output>
2 source(s) available.
    index: 0
name: <alsa_output.pci-0000_00_1b.0.analog-stereo.monitor>
driver: <module-alsa-card.c>
flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: IDLE
suspend cause:
priority: 1950
volume: 0:  94% 1:  94%
        0: -1.68 dB 1: -1.68 dB
        balance 0.00
base volume: 100%
             0.00 dB
volume steps: 65537
muted: no
current latency: 0.00 ms
max rewind: 64 KiB
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
             Stereo
used by: 0
linked by: 0
configured latency: 371.52 ms; range is 4.00 .. 371.52 ms
monitor_of: 0
card: 0 <alsa_card.pci-0000_00_1b.0>
module: 4
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 0xf7c00000 irq 44"
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.name = "6 Series/C200 Series Chipset Family High Definition Audio Controller"
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_1b.0.analog-stereo>
driver: <module-alsa-card.c>
flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
state: SUSPENDED
suspend cause: IDLE
priority: 9959
volume: 0: 100% 1: 100%
        0: 0.00 dB 1: 0.00 dB
        balance 0.00
base volume:  32%
             -30.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 .. 341.33 ms
card: 0 <alsa_card.pci-0000_00_1b.0>
module: 4
properties:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "HDA Generic"
alsa.id = "HDA Generic"
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 0xf7c00000 irq 44"
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.name = "6 Series/C200 Series Chipset Family High Definition Audio Controller"
device.form_factor = "internal"
device.string = "front:0"
device.buffering.buffer_size = "65536"
device.buffering.fragment_size = "32768"
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 ID 887"
alsa.components = "HDA:10ec0887,1458a002,00100302"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
ports:
analog-input: Analog Input (priority 10000, available: unknown)
properties:

active port: <analog-input>
5 client(s) logged in.
    index: 0
driver: <module-console-kit.c>
owner module: 12
properties:
application.name = "ConsoleKit Session /org/freedesktop/ConsoleKit/Session2"
console-kit.session = "/org/freedesktop/ConsoleKit/Session2"
    index: 54
driver: <protocol-native.c>
owner module: 6
properties:
application.name = "Chrome input"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "26"
application.process.id = "3152"
application.process.user = "ivan"
application.process.host = "ivan-H61M-DS2"
application.process.binary = "chromium-browser"
window.x11.display = ":0.0"
application.language = "en_US.UTF-8"
application.process.machine_id = "fed66aeece3712b7d9156cb900000009"
application.process.session_id = "fed66aeece3712b7d9156cb900000009-1387438104.190479-926191524"
application.icon_name = "chromium-browser"
    index: 55
driver: <protocol-native.c>
owner module: 6
properties:
application.name = "Skype"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "26"
application.process.id = "3520"
application.process.user = "ivan"
application.process.host = "ivan-H61M-DS2"
application.process.binary = "skype"
application.language = "en_US.UTF-8"
window.x11.display = ":0.0"
application.process.machine_id = "fed66aeece3712b7d9156cb900000009"
application.process.session_id = "fed66aeece3712b7d9156cb900000009-1387438104.190479-926191524"
application.icon_name = "skype.png"
    index: 58
driver: <protocol-native.c>
owner module: 6
properties:
application.name = "ALSA plug-in [chromium-browser]"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "26"
application.process.id = "3354"
application.process.user = "ivan"
application.process.host = "ivan-H61M-DS2"
application.process.binary = "chromium-browser"
window.x11.display = ":0.0"
application.language = "en_US.UTF-8"
application.process.machine_id = "fed66aeece3712b7d9156cb900000009"
application.process.session_id = "fed66aeece3712b7d9156cb900000009-1387438104.190479-926191524"
application.icon_name = "chromium-browser"
    index: 61
driver: <cli.c>
owner module: 17
properties:
application.name = "UNIX socket client"
1 card(s) available.
    index: 0
name: <alsa_card.pci-0000_00_1b.0>
driver: <module-alsa-card.c>
owner module: 4
properties:
alsa.card = "0"
alsa.card_name = "HDA Intel PCH"
alsa.long_card_name = "HDA Intel PCH at 0xf7c00000 irq 44"
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.name = "6 Series/C200 Series Chipset Family High Definition Audio Controller"
device.form_factor = "internal"
device.string = "0"
device.description = "Built-in Audio"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
profiles:
output:analog-stereo: Analog Stereo Output (priority 6000)
output:analog-stereo+input:analog-stereo: Analog Stereo Duplex (priority 6060)
input:analog-stereo: Analog Stereo Input (priority 60)
off: Off (priority 0)
active profile: <output:analog-stereo+input:analog-stereo>
sinks:
alsa_output.pci-0000_00_1b.0.analog-stereo/#0: Built-in Audio Analog Stereo
sources:
alsa_output.pci-0000_00_1b.0.analog-stereo.monitor/#0: Monitor of Built-in Audio Analog Stereo
alsa_input.pci-0000_00_1b.0.analog-stereo/#1: Built-in Audio Analog Stereo
ports:
analog-output: Analog Output (priority 9900, available: unknown)
properties:

analog-input: Analog Input (priority 10000, available: unknown)
properties:

1 sink input(s) available.
    index: 60
driver: <protocol-native.c>
flags:
state: RUNNING
sink: 0 <alsa_output.pci-0000_00_1b.0.analog-stereo>
volume: 0: 100% 1: 100%
        0: 0.00 dB 1: 0.00 dB
        balance 0.00
muted: no
current latency: 442.81 ms
requested latency: 20.00 ms
sample spec: s16le 2ch 44100Hz
channel map: front-left,front-right
             Stereo
resample method: (null)
module: 6
client: 58 <ALSA plug-in [chromium-browser]>
properties:
media.name = "ALSA Playback"
application.name = "ALSA plug-in [chromium-browser]"
native-protocol.peer = "UNIX socket client"
native-protocol.version = "26"
application.process.id = "3354"
application.process.user = "ivan"
application.process.host = "ivan-H61M-DS2"
application.process.binary = "chromium-browser"
window.x11.display = ":0.0"
application.language = "en_US.UTF-8"
application.process.machine_id = "fed66aeece3712b7d9156cb900000009"
application.process.session_id = "fed66aeece3712b7d9156cb900000009-1387438104.190479-926191524"
application.icon_name = "chromium-browser"
module-stream-restore.id = "sink-input-by-application-name:ALSA plug-in [chromium-browser]"
0 source outputs(s) available.
0 cache entrie(s) available.


За capture имам само два канала - Capture0 и Digital0. Ако усиля Digital0, записва се пращене (без глас), както нормално.