Restarting ALSA [Fedora 21]
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 4 of 4
  1. #1
    Join Date
    Jan 2007
    Posts
    94

    Restarting ALSA [Fedora 21]

    Okay, I know this question has been ask many times, but there has yet to be a definitive answer given on how to restart ALSA without a reboot.

    I am trying to write an asound.conf file that merges two sound devices. The first, a M-Audio Delta 1010LT, and the second, an Echo Audiofire12. The bummer is, anytime I make a change to it, I have to reboot. This makes it extremely difficult to create this file, and keep my mind on track of what I have done.

    I am guessing that the only way would be to restart udev, but that is really only a guess. I am not sure if it is even possible to restart udev for that matter without borking the system.

    Anyway, this is the file I have created, but sadly, it doesn't work:

    Code:
    #
    # Place your global alsa-lib configuration here...
    #
    
    
    pcm.multi_capture {
            type multi
            slaves.a.pcm hw:M1010LT
            slaves.a.channels 12
            slaves.b.pcm hw:AudioFire12
            slaves.b.channels 12
    
    # First 8 channels of first soundcard (capture)
            bindings.0.slave a
            bindings.0.channel 0
            bindings.1.slave a
            bindings.1.channel 1
            bindings.2.slave a
            bindings.2.channel 2
            bindings.3.slave a
            bindings.3.channel 3
            bindings.4.slave a
            bindings.4.channel 4
            bindings.5.slave a
            bindings.5.channel 5
            bindings.6.slave a
            bindings.6.channel 6
            bindings.7.slave a
            bindings.7.channel 7
        
    # First 12 channels of second soundcard (capture)
            bindings.8.slave b
            bindings.8.channel 0
            bindings.9.slave b
            bindings.9.channel 1
            bindings.10.slave b
            bindings.10.channel 2
            bindings.11.slave b
            bindings.11.channel 3
            bindings.12.slave b
            bindings.12.channel 4
            bindings.13.slave b
            bindings.13.channel 5
            bindings.14.slave b
            bindings.14.channel 6
            bindings.15.slave b
            bindings.15.channel 7
            bindings.16.slave b
            bindings.16.channel 8
            bindings.17.slave b
            bindings.17.channel 9
            bindings.18.slave b
            bindings.18.channel 10
            bindings.19.slave b
            bindings.19.channel 11
    
    # S/PDIF section. Uncomment bindings if required.
    
    # S/PDIF first soundcard (capture)
            #bindings.16.slave a
            #bindings.16.channel 8
            #bindings.17.slave a
            #bindings.17.channel 9
        
    # S/PDIF second soundcard (capture)
            #bindings.18.slave b
            #bindings.18.channel 8
            #bindings.19.slave b
            #bindings.19.channel 9
    }
    
    ctl.multi_capture {
            type hw
            card 0
    }
    
    pcm.multi_playback {
            type multi
            slaves.a.pcm hw:2
            slaves.a.channels 10
            slaves.b.pcm hw:4
            slaves.b.channels 12
    
    # First 8 channels of first soundcard (playback)
            bindings.0.slave a
            bindings.0.channel 0
            bindings.1.slave a
            bindings.1.channel 1
            bindings.2.slave a
            bindings.2.channel 2
            bindings.3.slave a
            bindings.3.channel 3
            bindings.4.slave a
            bindings.4.channel 4
            bindings.5.slave a
            bindings.5.channel 5
            bindings.6.slave a
            bindings.6.channel 6
            bindings.7.slave a
            bindings.7.channel 7
    
    # First 12 channels of second soundcard (playback)
            bindings.8.slave b
            bindings.8.channel 0
            bindings.9.slave b
            bindings.9.channel 1
            bindings.10.slave b
            bindings.10.channel 2
            bindings.11.slave b
            bindings.11.channel 3
            bindings.12.slave b
            bindings.12.channel 4
            bindings.13.slave b
            bindings.13.channel 5
            bindings.14.slave b
            bindings.14.channel 6
            bindings.15.slave b
            bindings.15.channel 7
            bindings.16.slave b
            bindings.16.channel 8
            bindings.17.slave b
            bindings.17.channel 9
            bindings.18.slave b
            bindings.18.channel 10
            bindings.19.slave b
            bindings.19.channel 11
    
    # S/PDIF section. Uncomment bindings if required.
    
    # S/PDIF first soundcard (playback)
            #bindings.16.slave a
            #bindings.16.channel 8
            #bindings.17.slave a
            #bindings.17.channel 9
        
    # S/PDIF second soundcard (playback)
            #bindings.18.slave b
            #bindings.18.channel 8
            #bindings.19.slave b
            #bindings.19.channel 9
    }
    
    ctl.multi_playback {
            type hw
            card 0
    When I attempt to run jack, using the input device multi_capture, jack errors:

    Code:
    jackd -R -d alsa -C multi_capture -P multi_playback
    jackdmp 1.9.10
    Copyright 2001-2005 Paul Davis and others.
    Copyright 2004-2014 Grame.
    jackdmp comes with ABSOLUTELY NO WARRANTY
    This is free software, and you are welcome to redistribute it
    under certain conditions; see the file COPYING for details
    no message buffer overruns
    no message buffer overruns
    no message buffer overruns
    JACK server starting in realtime mode with priority 20
    self-connect-mode is "Don't restrict self connect requests"
    audio_reservation_init
    Acquire audio card Audio0
    creating alsa driver ... multi_playback|multi_capture|1024|2|48000|0|0|nomon|swmeter|-|32bit
    ALSA: Cannot open PCM device alsa_pcm for playback. Falling back to capture-only mode
    Cannot initialize driver
    JackServer::Open failed with -1
    Failed to open server
    If there is anybody smarter than me on this, I sure would appreciate a reply. Also, having the ability to restart ALSA would certainly be a huge help as well.

    Thanks!

  2. #2
    Join Date
    Apr 2011
    Posts
    80

    Re: Restarting ALSA [Fedora 21]

    Hi,
    3 years later I have the same problem and nobody seems to know (or want to share it) how to solve it, it's a shame...

  3. #3
    Join Date
    Sep 2009
    Posts
    2,184

    Re: Restarting ALSA [Fedora 21]

    From the arch linux wiki, always a great place to start, this should work:

    Code:
    alsactl kill rescan
    dd_wizard

  4. #4
    Join Date
    Apr 2011
    Posts
    80

    Re: Restarting ALSA [Fedora 21]

    Thank you very much for your reply! It doesn't work with the snd_ice1724 driver.

Similar Threads

  1. Fedora 4 restarting automatically
    By Chaduke in forum Using Fedora
    Replies: 4
    Last Post: 19th March 2009, 02:33 AM
  2. Hang when restarting the system in Fedora 8
    By majdi in forum Installation, Upgrades and Live Media
    Replies: 9
    Last Post: 18th January 2008, 06:50 PM
  3. Restarting sound daemon - Fedora 7
    By erlend_oyen in forum Using Fedora
    Replies: 0
    Last Post: 14th May 2007, 07:11 PM
  4. restarting ALSA in Fedora Core 2
    By ravalox in forum Using Fedora
    Replies: 5
    Last Post: 16th July 2004, 02:18 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •