[campcaster-support] Soundcard changes hw ubuntu
  • Vote Up0Vote Down importimport
    Posts: 0Member
    Hello,
    On campcaster I have made up hw:3,0 as gstream output but sometimes the
    hardware output has changed after reboot.
    In most cases it is:
    0 [I82801DBICH4 ]: ICH4 - Intel 82801DB-ICH4
    Intel 82801DB-ICH4 with AD1980 at 0xeb800000, irq
    209
    1 [R15 ]: RME9652 - RME Digi9652 (Rev 1.5)
    RME Digi9652 (Rev 1.5) at 0xec000000, irq 169
    2 [UART ]: MPU-401 UART - MPU-401 UART
    MPU-401 UART at 0x330, irq 10
    3 [CMI8738MC6 ]: CMI8738-MC6 - C-Media PCI CMI8738-MC6
    C-Media PCI CMI8738-MC6 (model 55) at 0xb800, irq
    201
    But again sometimes is CMI8738MC6 hw:2,0 or hw:1,0
    I edit the .asoundrc file temporaly, now I call hw:pcmcmi.
    After reboot I MUST give sudo /etc/init.d/campcaster-schedule
    force-reload to get the sound on the pcmcmi output.

    Also the scheduler wont stop when it's playing I get the error:
    Warning: Cannot modify header information - headers already sent
    in /opt/campcaster/var/Campcaster/htmlUI/var/html/ui_handler.php on line
    470
    I use the original script ../bin/campcaster-scheduler.sh
    How can I solve these problems,
    Thanks,
    Han.
  • 2 Comments sorted by
  • Hi Han,

    This is a problem that has bothered most users of the ALSA sound layer for
    quite some time. The cheap answer is simply "don't reboot" Wink but in real
    life that won't work.

    Luckily, there is a page that might be able to provide you with some
    directions:

    http://alsa.opensrc.org/MultipleCards


    As for your problem with stopping the scheduler, you should be able to
    stop/start the scheduler in /etc/init.d/ by running 'sudo
    ./campcaster-scheduler stop (or start or restart). The problem then,
    though, is your web UI might become confused and think the scheduled items
    are still playing.

    If you're just testing Campcaster, this is a good reason to use short
    scheduled items; that way if you do run into a situation where the
    scheduled items need to be stopped, in a worst-case scenario it won't take
    you so much time to clear things up.

    Another option would be to use the development environment version, which
    draws directly from our Subversion server and enables you to quickly wipe
    the entire schedule if necessary. Those instructions are on the Campcaster
    technical information page at:

    http://code.campware.org/projects/campcaster


    Hope this helps,


    douglas


    =============================================
    Media Development Loan Fund
    =============================================
    Douglas Arellanes
    Head of Research and Development
    Center for Advanced Media--Prague (CAMP)
    Na vinicnich horach 24a/1834, 160 00 Prague 6
    Czech Republic
    Tel: + 420 2 3333 5356, Fax: +420 2 2431 5419
    Mobile: +420 724 073 364
    http://www.mdlf-camp.net
    http://www.campware.org
    =============================================
    http://www.mdlf.org
    =============================================




    han sommen
    Sent by: campcaster-support-bounces@netfinity-4.mdlf.org
    05/09/2007 11:25 PM
    Please respond to Support mailing list for the Campcaster software project


    To: campcaster-support@netfinity-4.mdlf.org
    cc:
    Subject: [campcaster-support] Soundcard changes hw ubuntu


    Hello,
    On campcaster I have made up hw:3,0 as gstream output but sometimes the
    hardware output has changed after reboot.
    In most cases it is:
    0 [I82801DBICH4 ]: ICH4 - Intel 82801DB-ICH4
    Intel 82801DB-ICH4 with AD1980 at 0xeb800000, irq
    209
    1 [R15 ]: RME9652 - RME Digi9652 (Rev 1.5)
    RME Digi9652 (Rev 1.5) at 0xec000000, irq 169
    2 [UART ]: MPU-401 UART - MPU-401 UART
    MPU-401 UART at 0x330, irq 10
    3 [CMI8738MC6 ]: CMI8738-MC6 - C-Media PCI CMI8738-MC6
    C-Media PCI CMI8738-MC6 (model 55) at 0xb800, irq
    201
    But again sometimes is CMI8738MC6 hw:2,0 or hw:1,0
    I edit the .asoundrc file temporaly, now I call hw:pcmcmi.
    After reboot I MUST give sudo /etc/init.d/campcaster-schedule
    force-reload to get the sound on the pcmcmi output.

    Also the scheduler wont stop when it's playing I get the error:
    Warning: Cannot modify header information - headers already sent
    in /opt/campcaster/var/Campcaster/htmlUI/var/html/ui_handler.php on line
    470
    I use the original script ../bin/campcaster-scheduler.sh
    How can I solve these problems,
    Thanks,
    Han.
  • In ubuntu is very easy to set the order of the sound cards:

    1. cat /proc/asound/modules
    Shows the cards in order (0 is the first)

    2. Do the following
    sudo kate /etc/modprobe.d/alsa-base

    and look at the end

    options snd-A index=0
    options snd-B index=1

    where snd-A and snd-B are the names of the soundcards in the order that we want.

    I hope it helps you

    Regards,

    Juan Manuel Triana