[+] Konfiguracja dźwi

Wszystko związane z jądrem systemowym, sterownikami, sprzętem itp.
Karol_K_
Posty: 13
Rejestracja: 28 czerwca 2012, 10:57

[+] Konfiguracja dźwięku

Post autor: Karol_K_ »

Witam.
Mam szukam, szukam i nie mogę zaleź, mam problem z sterownikami.

Kod: Zaznacz cały

root@raspberrypi:~# mocp
Running the server...
Trying JACK...
Trying ALSA...
Trying OSS...

FATAL_ERROR: No valid sound driver


FATAL_ERROR: Server exited

root@raspberrypi:~#

 

Musi być zainstalowany alsamixer?

Kod: Zaznacz cały

root@raspberrypi:~# sudo apt-get install alsamixer
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package alsamixer
root@raspberrypi:~#

Awatar użytkownika
Rafal_F
Moderator
Posty: 2350
Rejestracja: 29 sierpnia 2008, 16:45

Post autor: Rafal_F »

http://debian.linux.pl/threads/12771-Za ... #post81406 - przeczytaj i dostarcz odpowiednie informacje.
Karol_K_
Posty: 13
Rejestracja: 28 czerwca 2012, 10:57

Post autor: Karol_K_ »

Kod: Zaznacz cały

root@OCTOMEDIA:~# uname -a
Linux OCTOMEDIA 3.1.9+ #90 Wed Apr 18 18:23:05 BST 2012 armv6l GNU/Linux

Kod: Zaznacz cały

root@OCTOMEDIA:~# dpkg --print-architecture
armel

Kod: Zaznacz cały

root@OCTOMEDIA:~# lspci -k
pcilib: Cannot open /proc/bus/pci
lspci: Cannot find any working access method.

Kod: Zaznacz cały

root@OCTOMEDIA:~# lspci
pcilib: Cannot open /proc/bus/pci
lspci: Cannot find any working access method.

Kod: Zaznacz cały

root@OCTOMEDIA:~# update-pciids
Downloaded daily snapshot dated 2012-06-25 14:42:27
root@OCTOMEDIA:~# update-pciids
Downloaded daily snapshot dated 2012-06-25 14:42:27

Kod: Zaznacz cały

root@OCTOMEDIA:~# cat /proc/asound/cards
cat: /proc/asound/cards: No such file or directory

Kod: Zaznacz cały

root@OCTOMEDIA:~# cat /proc/asound/modules
cat: /proc/asound/modules: No such file or directory

Kod: Zaznacz cały

root@OCTOMEDIA:~# cat /proc/asound/version
cat: /proc/asound/version: No such file or directory

Kod: Zaznacz cały

root@OCTOMEDIA:~# wget -O alsa-info.sh http://alsa-project.org/alsa-info.sh && b                                                          ash ./alsa-info.sh
--2012-06-28 12:14:25--  http://alsa-project.org/alsa-info.sh
Resolving alsa-project.org... 77.48.224.243
Connecting to alsa-project.org|77.48.224.243|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://git.alsa-project.org/?p=alsa-driver.git;a=blob_plain;f=utils/al                                                          sa-info.sh [following]
--2012-06-28 12:14:25--  http://git.alsa-project.org/?p=alsa-driver.git;a=blob_p                                                          lain;f=utils/alsa-info.sh
Resolving git.alsa-project.org... 77.48.224.243
Reusing existing connection to alsa-project.org:80.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/plain]
Saving to: `alsa-info.sh'

    [  <=>                                  ] 27,785       109K/s   in 0.2s

2012-06-28 12:14:25 (109 KB/s) - `alsa-info.sh' saved [27785]

ALSA Information Script v 0.4.61
--------------------------------

This script visits the following commands/files to collect diagnostic
information about your ALSA installation and sound related hardware.

  dmesg
  lspci
  lsmod
  aplay
  amixer
  alsactl
  /proc/asound/
  /sys/class/sound/
  ~/.asoundrc (etc.)

See './alsa-info.sh --help' for command line options.

cat: /proc/asound/version: No such file or directory
pcilib: Cannot open /proc/bus/pci
lspci: Cannot find any working access method.
pcilib: Cannot open /proc/bus/pci
lspci: Cannot find any working access method.
grep: /proc/asound/cards: No such file or directory
cat: /proc/asound/cards: No such file or directory
pcilib: Cannot open /proc/bus/pci
lspci: Cannot find any working access method.
pcilib: Cannot open /proc/bus/pci
lspci: Cannot find any working access method.
cat: /proc/asound/modules: No such file or directory
grep: /proc/asound/cards: No such file or directory
/usr/sbin/alsactl: save_state:1504: No soundcards found...
cat: /tmp/alsa-info.B8MnoBG1tk/alsactl.tmp: No such file or directory
Automatically upload ALSA information to www.alsa-project.org? [y/N] : y
Uploading information to www.alsa-project.org ...  Done!

Your ALSA information is located at http://www.alsa-project.org/db/?f=12651b9e68                                                          d874ff95b1c5cc770b4bc09361219d

Please inform the person helping you.

root@OCTOMEDIA:~# ^C
root@OCTOMEDIA:~#  http://www.alsa-project.org/db/?f=12651b9e68                                                          d874ff95b1c5cc770b4bc09361219d
-bash: http://www.alsa-project.org/db/?f=12651b9e68: No such file or directory
root@OCTOMEDIA:~#
Awatar użytkownika
Rafal_F
Moderator
Posty: 2350
Rejestracja: 29 sierpnia 2008, 16:45

Post autor: Rafal_F »

Ok, nie doczytałem w nazwie komputera z pierwszego posta, jeżeli to faktycznie rasberrypi, to zacznij od tego http://elinux.org/R-Pi_Troubleshooting#Sound
Karol_K_
Posty: 13
Rejestracja: 28 czerwca 2012, 10:57

Post autor: Karol_K_ »

Tak to jest to rasberry. Dalej błędy:

Kod: Zaznacz cały

root@OCTOMEDIA:~# hdmi_drive=2
root@OCTOMEDIA:~# sudo apt-get install alsa-utils
sudo: unable to resolve host OCTOMEDIA
Reading package lists... Done
Building dependency tree
Reading state information... Done
alsa-utils is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@OCTOMEDIA:~#  sudo modprobe snd_bcm2835
sudo: unable to resolve host OCTOMEDIA
root@OCTOMEDIA:~#  sudo aplay /usr/share/sounds/alsa/Front_Center.wav
sudo: unable to resolve host OCTOMEDIA
aplay: main:654: audio open error: No such file or directory
root@OCTOMEDIA:~# sudo amixer cset numid=3 <n>
-bash: syntax error near unexpected token `newline'
root@OCTOMEDIA:~#
Awatar użytkownika
Rafal_F
Moderator
Posty: 2350
Rejestracja: 29 sierpnia 2008, 16:45

Post autor: Rafal_F »

1. Jak widzisz sudo przestało działać, bo coś pomieszałeś z hostami. Ale i tak wydajesz polecenia jako root (świadczą o tym nazwa użytkownika i symbol '#' na końcu linii poleceń) więc polecenia można pisać bezpośrednio, bez sudo.
2. Czytaj dokładnie informacje z linku, linie hdmi_drive=2 trzeba dodać do pliku konfiguracyjnego http://elinux.org/R-Pi_ConfigurationFile.
3. Z jakiego źródła chcesz mieć dźwięk HDMI czy analogowe (jack)? W zależności od odpowiedzi w linijce:

Kod: Zaznacz cały

amixer cset numid=3 <n>
za n trzeba podstawić: 0 - automat (HDMI jeżeli możliwe), 1 - analog, 2 - HDMI
4. Tam jest jeszcze dodatkowy akapit "Jeżeli używasz debiana" dlaczego jego nie wykonałeś?
Karol_K_
Posty: 13
Rejestracja: 28 czerwca 2012, 10:57

Post autor: Karol_K_ »

Dziękuję, już mi działa.
ODPOWIEDZ