LinuxForum.Fans
Тема

Creative Sound Blaster Z и Linux

Автор: baralgin 27 сообщений 13030 просмотров В конец обсуждения ↓
#367511

Вай-вай. После очередного ребута
[console]baralgin-pc:/home/baralgin # dmesg | grep 0132
[ 3.199177] ca0132 DOWNLOAD OK :-) DSP IS RUNNING.
[/console]
aplay -l

Показать
[console]baralgin-pc:/home/baralgin # aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC892 Analog [ALC892 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: ALC892 Digital [ALC892 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 8: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 9: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: Creative [HDA Creative], device 0: CA0132 Analog [CA0132 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: Creative [HDA Creative], device 1: CA0132 Digital [CA0132 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0[/console]

aplay -L

Показать
[console]baralgin-pc:/home/baralgin # aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
default
Default ALSA Output (currently PulseAudio Sound Server)
sysdefault:CARD=PCH
HDA Intel PCH, ALC892 Analog
Default Audio Device
front:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
Front speakers
surround40:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Digital
IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=NVidia,DEV=0
HDA NVidia, HDMI 0
HDMI Audio Output
hdmi:CARD=NVidia,DEV=1
HDA NVidia, HDMI 0
HDMI Audio Output
hdmi:CARD=NVidia,DEV=2
HDA NVidia, HDMI 0
HDMI Audio Output
hdmi:CARD=NVidia,DEV=3
HDA NVidia, HDMI 0
HDMI Audio Output
sysdefault:CARD=Creative
HDA Creative, CA0132 Analog
Default Audio Device
front:CARD=Creative,DEV=0
HDA Creative, CA0132 Analog
Front speakers
surround40:CARD=Creative,DEV=0
HDA Creative, CA0132 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=Creative,DEV=0
HDA Creative, CA0132 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Creative,DEV=0
HDA Creative, CA0132 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Creative,DEV=0
HDA Creative, CA0132 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Creative,DEV=0
HDA Creative, CA0132 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Creative,DEV=0
HDA Creative, CA0132 Digital
IEC958 (S/PDIF) Digital Audio Output
[/console]

Скрин alsamixer. Активны только 2 первых канала.

#367514

baralgin,
Покажите:
[console]pacmd list-sinks[/console]

#367515
"verg" написал:
pacmd list-sinks
Показать
[console]baralgin@baralgin-pc:~> pacmd list-sinks
2 sink(s) available.
* index: 0
name: <alsa_output.pci-0000_00_1b.0.iec958-stereo>
driver: <module-alsa-card.c>
flags: HARDWARE HW_MUTE_CTRL DECIBEL_VOLUME LATENCY FLAT_VOLUME DYNAMIC_LATENCY
state: SUSPENDED
suspend cause: IDLE
priority: 9958
volume: front-left: 42604 / 65% / -11,22 dB, front-right: 42604 / 65% / -11,22 dB
balance 0,00
base volume: 65536 / 100% / 0,00 dB
volume steps: 65537
muted: no
current latency: 0,00 ms
max request: 0 KiB
max rewind: 0 KiB
monitor source: 0
sample spec: s16le 2ch 48000Гц
channel map: front-left,front-right
Стерео
used by: 0
linked by: 0
configured latency: 0,00 ms; range is 0,50 .. 1837,50 ms
card: 1 <alsa_card.pci-0000_00_1b.0>
module: 7
properties:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "ALC892 Digital"
alsa.id = "ALC892 Digital"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "1"
alsa.card = "0"
alsa.card_name = "HDA Intel PCH"
alsa.long_card_name = "HDA Intel PCH at 0xfa500000 irq 59"
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 = "iec958:0"
device.buffering.buffer_size = "352800"
device.buffering.fragment_size = "176400"
device.access_mode = "mmap+timer"
device.profile.name = "iec958-stereo"
device.profile.description = "Цифровое стерео (IEC958)"
device.description = "Встроенное аудио Цифровое стерео (IEC958)"
alsa.mixer_name = "Realtek ALC892"
alsa.components = "HDA:10ec0892,14627673,00100302"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
ports:
iec958-stereo-output: Digital Output (S/PDIF) (priority 0, latency offset 0 usec, available: unknown)
properties:

active port: <iec958-stereo-output>
index: 1
name: <alsa_output.pci-0000_02_00.0.analog-stereo>
driver: <module-alsa-card.c>
flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY FLAT_VOLUME DYNAMIC_LATENCY
state: SUSPENDED
suspend cause: IDLE
priority: 9059
volume: front-left: 65536 / 100% / 0,00 dB, front-right: 65536 / 100% / 0,00 dB
balance 0,00
base volume: 46396 / 71% / -9,00 dB
volume steps: 65537
muted: no
current latency: 0,00 ms
max request: 0 KiB
max rewind: 0 KiB
monitor source: 2
sample spec: s16le 2ch 44100Гц
channel map: front-left,front-right
Стерео
used by: 0
linked by: 0
configured latency: 0,00 ms; range is 0,50 .. 1999,82 ms
card: 2 <alsa_card.pci-0000_02_00.0>
module: 8
properties:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "CA0132 Analog"
alsa.id = "CA0132 Analog"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "0"
alsa.card = "2"
alsa.card_name = "HDA Creative"
alsa.long_card_name = "HDA Creative at 0xfa404000 irq 16"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:02:00.0"
sysfs.path = "/devices/pci0000:00/0000:00:1c.0/0000:02:00.0/sound/card2"
device.bus = "pci"
device.vendor.id = "1102"
device.vendor.name = "Creative Labs"
device.product.id = "0012"
device.string = "front:2"
device.buffering.buffer_size = "352768"
device.buffering.fragment_size = "176384"
device.access_mode = "mmap+timer"
device.profile.name = "analog-stereo"
device.profile.description = "Аналоговое стерео"
device.description = "HDA Creative Аналоговое стерео"
alsa.mixer_name = "Creative CA0132"
alsa.components = "HDA:11020011,11020023,00100918"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
ports:
analog-output-lineout: Line Out (priority 9900, latency offset 0 usec, available: unknown)
properties:

analog-output-headphones: Аналоговые наушники (priority 9000, latency offset 0 usec, available: no)
properties:
device.icon_name = "audio-headphones"
active port: <analog-output-lineout>
[/console]
#390308

После выполнения команды
[console]sudo kill `ps uax |grep pulseaudio | grep -v grep | awk '{print $2}'` ; sudo rmmod snd-hda-intel; sleep 3; sudo modprobe snd-hda-intel[/console]
(ядро 3.16) в настройках звука yast все каналы этой звуковой карты активны. Но в alsamixer по прежнему активны только два как на скрине в 21 посте.
[console]dmesg | grep 0132[/console] говорит что

ca0132 DOWNLOAD OK :-) DSP IS RUNNING.
:(
#419833

Если модули не вкомпилены в ядро, достаточно пересобрать их. Я сейчас на вахте, после 15-го, скорее всего, буду дома, покопаюсь.
Но вообще, порядок действий примерно такой:
1. Установите исходные коды вашего ядра;
2. Скачайте архив tar.gz с патчами;
3. Выполните:

text
# cd /usr/src/linux
# zcat /proc/config.gz > .config
# make modules_prepare

4. Распакуйте и наложите патч:

text
# cd путь/к/исходникам/драйаера
# tar xf ~/Downloads/patch.tar.gz - | patch -p1 -i -
# make modules -C путь/к/исходникам/драйвера

Я это не проверял, да и могут быть нюансы с совместимостью патчсета и ядра.

Войдите или зарегистрируйтесь, чтобы ответить.