Forums

stassen
stassen
Offline
Resolved
0 votes
I just spent a day on getting audio to work in my ClearOs machine. Yum install also and other tricks didn't do what I was hoping for. Is there a installation procedure that eliminates all dependencies and have alsa installed in less than 30 minutes ?

Thanks in advance
Sunday, October 31 2010, 04:45 PM
Share this post:
Responses (8)
  • Accepted Answer

    stassen
    stassen
    Offline
    Monday, November 08 2010, 04:17 PM - #Permalink
    Resolved
    0 votes
    Summary of day 8 ;-) -> Solved

    Part 1 of my goal is achieved. My Shuttle K45 is playing music.

    What was changed since the last time:
    - connected local speaker to the K45
    - update /etc/modprobe.conf manually with
    'options snd-hda-intel model=3stack-6ch-dig'
    - verified settings of alsamixer and enabled everything (incl none existing outputs)

    via mplayer -ao oss * I was able to play any .mp3. (I'm half way ...)

    Part 2 is to get VirtualBox to work with Windows XP SP3
    The reply is currently minimized Show
  • Accepted Answer

    stassen
    stassen
    Offline
    Saturday, November 06 2010, 03:37 PM - #Permalink
    Resolved
    0 votes
    After days of reading I came to the conclusion that my Intel Audio card (Shuttle K45 system), needed a kernel refresh. Tim's unofficial guide was helpfull and easy as 1-2-3. After fixing my upgraded VirtualBox startup issue, I was ready for my original audio problem. Stil not working but a step further (I think ;-) ), because I was able to install the ALSA driver succesfully.

    I'm running my server from the garage via Mremote(NG). So I'm not checking the HW audio output from the K45..... I would like to have this on my local desktop or any windows machine started within the virtualbox.

    My ultimate setup is to have audio from a WIndows XP machine (via VirtualBox) -> Laptop running Mremote.....

    So far this is what I accomplised.......


    [root@clarkconnect downloads]# cat /proc/asound/card0/codec#* | grep Codec
    Codec: Realtek ALC662 rev1

    check http://www.kernel.org/doc/Documentation/sound/alsa/HD-Audio-Models.txt for HW support -> OK

    ALC662/663/272
    ==============
    3stack-dig 3-stack (2-channel) with SPDIF
    3stack-6ch 3-stack (6-channel)
    3stack-6ch-dig 3-stack (6-channel) with SPDIF
    6stack-dig 6-stack with SPDIF
    lenovo-101e Lenovo laptop
    eeepc-p701 ASUS Eeepc P701
    eeepc-ep20 ASUS Eeepc EP20
    ecs ECS/Foxconn mobo
    m51va ASUS M51VA
    g71v ASUS G71V
    h13 ASUS H13
    g50v ASUS G50V
    asus-mode1 ASUS
    asus-mode2 ASUS
    asus-mode3 ASUS
    asus-mode4 ASUS
    asus-mode5 ASUS
    asus-mode6 ASUS
    dell Dell with ALC272
    dell-zm1 Dell ZM1 with ALC272
    samsung-nc10 Samsung NC10 mini notebook
    auto auto-config reading BIOS (default)

    [root@clarkconnect ~]# uname -r
    2.6.32.21-166.timb4.i686
    [root@clarkconnect ~]# rpm -q --whatprovides `locate bin/amixer`
    alsa-utils-1.0.17-1.el5
    [root@clarkconnect ~]# rpm -qa | grep alsa
    alsa-lib-1.0.17-1.el5
    alsa-utils-1.0.17-1.el5
    [root@clarkconnect ~]# amixer -v
    amixer version 1.0.17
    [root@clarkconnect ~]# lsmod | grep snd
    snd_hda_codec_realtek 205171 1
    snd_pcsp 6967 0
    snd_seq_dummy 1432 0
    snd_seq_oss 23895 0
    snd_seq_midi_event 5052 1 snd_seq_oss
    snd_hda_intel 19000 0
    snd_seq 41302 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
    snd_hda_codec 70395 2 snd_hda_codec_realtek,snd_hda_intel
    snd_hwdep 4791 1 snd_hda_codec
    snd_seq_device 5029 3 snd_seq_dummy,snd_seq_oss,snd_seq
    snd_pcm_oss 31860 0
    snd_mixer_oss 11822 1 snd_pcm_oss
    snd_pcm 59462 4 snd_pcsp,snd_hda_intel,snd_hda_codec,snd_pcm_oss
    snd_timer 15119 2 snd_seq,snd_pcm
    snd 45618 13 snd_hda_codec_realtek,snd_pcsp,snd_seq_dummy,snd_seq_oss,snd_hda_intel,snd_seq,snd_hda_codec,snd_hwdep,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
    soundcore 5159 1 snd
    snd_page_alloc 6269 2 snd_hda_intel,snd_pcm


    [root@clarkconnect ~]# cat /etc/modprobe.conf
    alias eth1 r8169
    alias scsi_hostadapter ata_piix
    alias eth0 r8169

    And then it stops.......................... Day 7 ;-)
    The reply is currently minimized Show
  • Accepted Answer

    Monday, November 01 2010, 08:39 AM - #Permalink
    Resolved
    0 votes
    My sound is still running with ClearOS 5.2
    Versions etc

    [root@via-epia The Very Best of, CD1]# uname -r
    2.6.18-194.8.1.v5
    [root@via-epia The Very Best of, CD1]# rpm -q --whatprovides `locate bin/amixer`
    alsa-utils-1.0.17-1.el5
    [root@via-epia The Very Best of, CD1]# rpm -qa | grep alsa
    alsa-lib-1.0.17-1.el5
    alsa-utils-1.0.17-1.el5
    [root@via-epia The Very Best of, CD1]# amixer -v
    amixer version 1.0.17
    [root@via-epia The Very Best of, CD1]# lsmod | grep snd
    snd_via82xx 30232 0
    gameport 18568 1 snd_via82xx
    snd_ac97_codec 92832 1 snd_via82xx
    ac97_bus 6272 1 snd_ac97_codec
    snd_seq_dummy 7812 0
    snd_seq_oss 32512 0
    snd_seq_midi_event 10880 1 snd_seq_oss
    snd_seq 49520 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
    snd_pcm_oss 42752 0
    snd_mixer_oss 18944 1 snd_pcm_oss
    snd_pcm 72068 3 snd_via82xx,snd_ac97_codec,snd_pcm_oss
    snd_timer 24452 2 snd_seq,snd_pcm
    snd_page_alloc 14216 2 snd_via82xx,snd_pcm
    snd_mpu401_uart 12032 1 snd_via82xx
    snd_rawmidi 26368 1 snd_mpu401_uart
    snd_seq_device 11660 4 snd_seq_dummy,snd_seq_oss,snd_seq,snd_rawmidi
    snd 55684 11 snd_via82xx,snd_ac97_codec,snd_seq_oss,snd_seq,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
    soundcore 11488 1 snd
    [root@via-epia The Very Best of, CD1]# cat /etc/modprobe.conf
    # Network
    alias eth0 tulip
    alias eth1 via-rhine
    alias eth2 rtl8150
    alias wlan0 rt2500pci
    #alias rausb0 rt2570
    #alias eth3 asix
    # I2C module options for sensors
    alias char-major-89 i2c-dev
    # Sound
    alias snd-card-0 snd-via82xx
    options snd-card-0 index=0
    options snd-via82xx index=0
    remove snd-via82xx { /usr/sbin/alsactl store 0 >/dev/null 2>&1 || : ; }; /sbin/modprobe -r --ignore-remove snd-via82xx
    [root@via-epia The Very Best of, CD1]#
    Using mplayer
    [code]
    [root@via-epia The Very Best of, CD1]# mplayer -ao oss "12-Strauss, Der Rosenkavalier - Da geht er hin.mp3"
    MPlayer SVN-r29417-4.1.2 (C) 2000-2009 MPlayer Team
    Can't open joystick device /dev/input/js0: No such file or directory
    Can't init input joystick
    mplayer: could not connect to socket
    mplayer: No such file or directory
    Failed to open LIRC support. You will not be able to use your remote control.

    Playing 12-Strauss, Der Rosenkavalier - Da geht er hin.mp3.
    Audio only file format detected.
    ==========================================================================
    Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
    AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
    Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
    ==========================================================================
    AO: [oss] 44100Hz 2ch s16le (2 bytes per sample)
    Video: no video
    Starting playback...
    A: 4.4 (04.4) of 334.0 (05:34.0) 3.9%

    MPlayer interrupted by signal 2 in module: play_audio
    A: 4.5 (04.4) of 334.0 (05:34.0) 3.9%
    Exiting... (Quit)
    [root@via-epia The Very Best of, CD1]#

    I didn't compile anything...
    Why do you have different alsa versions for lib and oss?
    alsa-lib-1.0.23
    alsa-oss-1.0.17
    The reply is currently minimized Show
  • Accepted Answer

    stassen
    stassen
    Offline
    Monday, November 01 2010, 07:16 AM - #Permalink
    Resolved
    0 votes
    Thanks for the help so far. I did run into this page earlier but without succes.. I did install mplayer to check if I missed soemthing. Mplayer installed fine. Alsa utils also, but amixer is not available

    [root@clarkconnect alsa-driver-1.0.23]# amixer controls
    amixer: Control default open error: No such file or directory

    I ran into the following error after installing
    alsa-lib-1.0.23
    alsa-oss-1.0.17
    succesfully


    alsa-driver-1.0.23

    ./configure && make && make install

    make[1]: Leaving directory `/downloads/alsa-driver-1.0.23'
    make -C /lib/modules/2.6.18-128.2.16.v5/source SUBDIRS=/downloads/alsa-driver-1.0.23 CPP="gcc -E" CC="gcc" modules
    make[1]: Entering directory `/usr/src/kernels/2.6.18-128.2.16.v5-i686'
    CC [M] /downloads/alsa-driver-1.0.23/acore/hwdep.o
    In file included from /downloads/alsa-driver-1.0.23/acore/hwdep.c:1:
    /downloads/alsa-driver-1.0.23/include/adriver.h:1830: error: redefinition of typedef ‘bool’
    include/linux/types.h:36: error: previous declaration of ‘bool’ was here
    make[3]: *** [/downloads/alsa-driver-1.0.23/acore/hwdep.o] Error 1
    make[2]: *** [/downloads/alsa-driver-1.0.23/acore] Error 2
    make[1]: *** [_module_/downloads/alsa-driver-1.0.23] Error 2
    make[1]: Leaving directory `/usr/src/kernels/2.6.18-128.2.16.v5-i686'
    make: *** [compile] Error 2

    I'm missing an appropriate ALSA driver (I think ;-) ) and can't get it installed

    [root@clarkconnect alsa-driver-1.0.23]# uname -r
    2.6.18-128.2.16.v5
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, October 31 2010, 10:08 PM - #Permalink
    Resolved
    0 votes
    This link will also help with an example of installing a sound mixer...

    http://danda.poweredbyclear.com/master-frame-sound-ClearOS.html
    The reply is currently minimized Show
  • Accepted Answer

    stassen
    stassen
    Offline
    Sunday, October 31 2010, 08:38 PM - #Permalink
    Resolved
    0 votes
    Some more info



    [root@clarkconnect downloads]# ./checkaudiocard.sh
    ALSA Information Script v 0.4.59
    --------------------------------

    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 './checkaudiocard.sh --help' for command line options.

    cat: /proc/asound/version: No such file or directory
    grep: /proc/asound/cards: No such file or directory
    cat: /proc/asound/cards: No such file or directory
    cat: /proc/asound/modules: No such file or directory
    ls: /dev/snd/*: No such file or directory
    grep: /proc/asound/cards: No such file or directory
    /usr/sbin/alsactl: save_state:1501: No soundcards found...
    cat: /tmp/alsa-info.aOtXE25375/alsactl.tmp: No such file or directory
    The reply is currently minimized Show
  • Accepted Answer

    stassen
    stassen
    Offline
    Sunday, October 31 2010, 05:56 PM - #Permalink
    Resolved
    0 votes
    After some fiddeling with locations in relation to

    [root@clarkconnect esound-0.2.41]# yum install alsa-driver alsa-kmdl-`uname -r`
    Loading "protect-packages" plugin
    base-kernels | 951 B 00:00
    atrpms | 2.6 kB 00:00
    b81fc8f8bca027146107d1fe6f6d505d6eda450f-primary.sqlite.bz2 | 1.0 MB 00:01
    base-updates | 951 B 00:00
    centos-updates | 951 B 00:00
    centos-os | 951 B 00:00
    base-supplements | 951 B 00:00
    base-os | 1.1 kB 00:00
    Excluding Packages from EL $releasever - $basearch - ATrpms
    Finished
    Reducing EL $releasever - $basearch - ATrpms to included packages only
    Finished
    Setting up Install Process
    Parsing package install arguments
    No package alsa-kmdl-2.6.18-128.2.16.v5 available.
    Resolving Dependencies
    --> Running transaction check
    ---> Package alsa-driver.i386 0:1.0.23-84.el5 set to be updated
    --> Processing Dependency: alsa-kmdl-1.0.23-84.el5 for package: alsa-driver
    --> Running transaction check
    ---> Package alsa-kmdl-2.6.18-194.17.4.el5.i686 0:1.0.23-84.el5 set to be updated
    filelists.xml.gz | 1.7 MB 00:08
    323ce34520c483cc2dbab322d5e972d30986f092-filelists.sqlite.bz2 | 983 kB 00:01
    filelists.xml.gz | 6.5 kB 00:00
    filelists.xml.gz | 678 kB 00:02
    --> Processing Dependency: /boot/vmlinuz-2.6.18-194.17.4.el5 for package: alsa-kmdl-2.6.18-194.17.4.el5
    --> Finished Dependency Resolution
    Error: Missing Dependency: /boot/vmlinuz-2.6.18-194.17.4.el5 is needed by package alsa-kmdl-2.6.18-194.17.4.el5

    I gave up .... Even compiling it myself would end up in independancies issues
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, October 31 2010, 05:05 PM - #Permalink
    Resolved
    0 votes
    Have you seen this on the old CC forums I've given it a quick scan and one difference I noted is that ClearOS uses udev, the lack of which was causing a problem on CC.?
    The reply is currently minimized Show
Your Reply