[SOLVED] Alsa is trolling me! (It's changing card orders)

Hello, I have 3 dispositives capables of sound.
GPU's HDMI
My sound card
Monitor's webcam
In that order.
So I wrote a .asoundrc file:
defaults.pcm.card 1
defaults.pcm.device 0
defaults.ctl.card 1
So far so good, but it seems that every 2-3 reboots (or something like that) the order changes.
So, maybe I reboot and I find that my card is now the number 0, so I have to change that values. Maybe 2-3 reboots after, the card is the number 1 again.
Any idea?
Last edited by Foxandxss (2012-04-22 19:11:21)

6ng4n wrote:
I think this is easiest way
Create a file in /etc/modprobe.d called sound.conf and put these
options snd_your_default_card index=0
options snd_your_second_card index=1
options snd_etc.. index=2
I have cmi8768 ,onboard hda and usb audio
options snd_cmipci index=0
options snd_hda_intel index=1
options snd_usb-audio index=2
Indeed.
Thanks.

Similar Messages

  • [Solved] ALSA with multiple applications

    I know this issue has been dealt with many times before, but I can't figure out how to conform those fixes to my use case.
    I rebuilt my computer today (old motherboard died). Sound worked fine out of box on the old onboard -- I didn't even have an /etc/asound.conf or ~/.asoundrc -- but on this motherboard I'm encountering the problem with ALSA only allowing one process to output sound.
    lspci -vvv output:
    00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD] FCH Azalia Controller (rev 01)
    Subsystem: Biostar Microtech Int'l Corp Device 8228
    Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
    Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=slow >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
    Latency: 32, Cache Line Size: 64 bytes
    Interrupt: pin A routed to IRQ 16
    Region 0: Memory at fef40000 (64-bit, non-prefetchable) [size=16K]
    Capabilities: [50] Power Management version 2
    Flags: PMEClk- DSI- D1- D2- AuxCurrent=55mA PME(D0+,D1-,D2-,D3hot+,D3cold+)
    Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
    Kernel driver in use: snd_hda_intel
    Kernel modules: snd_hda_intel
    I have a 5.1 setup on device 1 that works perfectly fine with whatever audio stream has managed to grab the device. I have looked at breb's asoundrc and changed "card 0" to "card 1" but noticed no change at all, and I don't know enough about the structure of the rc to know if there is anything else to change (although I did also replace all "hw:0" with "hw:1" to no avail). In order to get audio working at all I found a post instructing to put the following in my /etc/asound.conf:
    pcm.!default {
    type hw
    card 1
    ctl.!default {
    type hw
    card 1
    I went back to the Arch Wiki and reread the notice: "For ALSA 1.0.9rc2 and higher on analog sound outputs you do not need to setup dmix. Dmix is enabled as default for soundcards which do not support hardware mixing." This is probably what made my last install run without hitches, I am guessing. It then says that if you are still having issues with mixing, to manually add dmix to your asoundrc. So I did that, and my .asoundrc simply looks like:
    pcm.dsp {
    type plug
    slave.pcm "dmix"
    I don't know what to do at this point. The only thought I have is that maybe the dmix only mixes to card 0 (which is my disabled HDMI output) and not card 1 (which is my analog out).
    aplay -l output (like I said, I have HDMI output disabled in BIOS. After I post this I can reboot to re-enable it just in case it makes a difference, but by all means if it does then there has to be some sort of issue there with how either dmix works or with how this sound card deals with its mixing or something).
    **** List of PLAYBACK Hardware Devices ****
    card 1: Generic [HD-Audio Generic], device 0: ALC892 Analog [ALC892 Analog]
    Subdevices: 0/1
    Subdevice #0: subdevice #0
    card 1: Generic [HD-Audio Generic], device 1: ALC892 Digital [ALC892 Digital]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    Also, for instance, when I have mpd running, and try to open a video in VLC, I get this error:
    Audio output failed:
    The audio device "sysdefault:CARD=Generic" could not be used:
    Device or resource busy.
    and in mpv (I don't know how much of this is relevant. Probably only the bit after "Selected audio codec..." but here's the whole thing:
    The round option must be an integer: 16/9
    Error parsing option round (option parameter could not be parsed)
    Option vf: Error while parsing expand parameter round (16/9)
    Error parsing option vf (option parameter could not be parsed)
    /etc/mpv/mpv.conf:24: setting option vf='expand=::::1:16/9:16' failed.
    Option af-add: pan has only 2 params, so you can't give more than 2 unnamed params.
    Error parsing option af-add (parameter is outside values allowed for option)
    /etc/mpv/mpv.conf:58: setting option af-add='pan=6:1:0:.4:0:.6:2:0:1:0:.4:.6:2' failed.
    Option af-add: pan has only 2 params, so you can't give more than 2 unnamed params.
    Error parsing option af-add (parameter is outside values allowed for option)
    /etc/mpv/mpv.conf:63: setting option af-add='pan=2:0.7:0:0:0.7:0.5:0:0:0.5:0.6:0.6:0:0' failed.
    Playing: /media/Videos/Other/Samsung_Galaxy_Note_3_4K_Video_sample-XgalnuBlSNE.mp4
    Detected file format: QuickTime / MOV (libavformat)
    Clip info:
    major_brand: mp42
    minor_version: 0
    compatible_brands: isommp42
    creation_time: 2013-09-30 13:12:57
    [stream] Video (+) --vid=1 (*) (h264)
    [stream] Audio (+) --aid=1 --alang=und (*) (aac)
    Selected video codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 [lavc:h264]
    Selected audio codec: AAC (Advanced Audio Coding) [lavc:aac]
    [ao/alsa] Playback open error: Device or resource busy
    [ao] Failed to initialize audio driver 'alsa'
    [ao/oss] Can't open audio device /dev/dsp: No such file or directory
    [ao] Failed to initialize audio driver 'oss'
    Could not open/initialize audio device -> no sound.
    Audio: no audio
    Audio: no audio
    VO: [xv] 3840x2160 => 3840x2160 420p
    V: 00:00:05 / 00:00:38 (12%)
    Last edited by Zopiac (2014-01-28 16:57:49)

    Apparently I knew less than I thought I did about the HDMI out and device numbers. Here's the aplay -l output after re-enabling HDMI out:
    **** List of PLAYBACK Hardware Devices ****
    card 1: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 2: Generic [HD-Audio Generic], device 0: ALC892 Analog [ALC892 Analog]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    card 2: Generic [HD-Audio Generic], device 1: ALC892 Digital [ALC892 Digital]
    Subdevices: 1/1
    Subdevice #0: subdevice #0
    I am currently getting nothing out of my speakers (lsof /dev/snd/* shows no processes using the soundcard even though mpd is "playing" (also ncmpcpp shows "Vol: n/a")). Even after I switched my /etc/asound.conf to "card 2" I get nothing. I am wondering if I needed what I already have in there after all. Maybe I added that and then rebooted, switching off the HDMI out as I did so. I'll check...
    Edit: Nope. As I understand it, in order to have sound at all I need to have HDMI out disabled in BIOS and asound.conf set with the two clauses with "card 1", and I then encounter the singe process ALSA problem.
    Last edited by Zopiac (2014-01-28 02:40:17)

  • [SOLVED] ALSA not working for "default" device

    If I try to use alsamixer I get a "cannot open mixer: No such file or directory" error but if I try alsamixer -c 1 to select card 1, it works but seems to be causing issues with applications that are using default.  Doing lspci shows that there are two entries labeled "Audio Device:", one an "intel series 8 HD audio controller" and one an "intel haswell-ult audio controller"
    Any thoughts?
    Last edited by 3mpach3r (2014-09-19 02:39:18)

     Several. What are your Alsa configuration files? Did you change the default setup in any way? Do you use card 1 as default? Do you use Pulseaudio?
     To change the default sound cards control for alsa only use defaults.ctl node:
    $ cat ~/.asoundrc
    defaults.ctl.card 1; # although the name identifier
    # should be preferred
    # execute
    echo defaults.ctl.card \"$(cat /proc/asound/card1/id)\"\; > ~/.asoundrc
     To change the default sound card using the preferred way, use modprobe options. In your case most probably:
    $ cat /etc/modprobe.d/50-alsa.conf
    options snd-hda-intel index=1,0
    Edit: Added ";".
    Last edited by emeres (2014-09-18 23:00:21)

  • Is there a way to change the order of the listing on Hub for Z 10?

    Is there a way to move the order the listing is set for the Hub on Z 10?

    I've messed around with my Hub settings for a while and I don't see any way of changing the order so I'm pretty sure it can't be done.  That's just a guess but I make pretty good guesses. 
    Cheers. 
    - If my response has helped you, please click "Options" beside my post and mark it as solved. Clicking the "thumbs up" icon near the bottom of my response would also be appreciated.

  • How to change the order of the buttons in MIDlet?

    Hi everybody,
    I need to put at the right side of my screen the button menu which includes �Save� and �Save Group� buttons and at the left side the button �Back�. I declared commends like these:
    private Command backCommand = new Command("Back", Command.BACK, 1);
    private Command saveCommand = new Command("Save", Command.OK, 3);
    private Command saveGroupCommand = new Command("Save Group", Command.OK, 3);
    and got the completely different order from what I need. I can�t change the order even if I try to change the priority of commends.
    Does anyone know how to solve this?

    You don't have any real control over the positioning of the Commands. The implementation decides where to put them. You can have some influence by using the command type and priority arguments. Usually type has more weight in that decision. For example, if a Command is of type BACK, then the implementation will usually do it's best to put it on the "negative" soft button (ie, the right soft button on Nokia handsets usually hold the negative commands).
    So playing around with the Command types you'll probably manage to arrange those Commands how you want, but giving the appropiate type will ensure that they are mapped in a way that's closer to the phone's native UI.
    shmoove

  • Change Purchase Order : Document Date

    Hi Gurus,
    I would like to change Purchase Order: Document Date due to wrong input but I found out this field has been grayed out from change (ME22/ME22N) after save.
    Can anyone tell me how to solve this problem?
    Thanks & regards,
    Loi

    Dear Gurus,
    Is there is any effect of changing the PO's Document date? What is the usage of PO's Document date, in which area?
    If no effect, can I customize the PO: Document Date field through Application transaction variant function?
    Pls adivse.
    Thanks & regards,
    Loi

  • CO02 - Change Production Order

    Hello,
    I have setup a workflow event to trigger if a production order is released using tcode BSVZ - System/user status events (which I read about in the SDN forum).  This seems to work just fine for an order release.  However, I have not found a way to trigger an event if a production order changes using tcode CO02, for example.  Any ideas?
    Thanks,
    Kenneth

    I think I may have solved the problem.  In tcode BSVW - Status Management, I had setup ORH for ZBUS2005 Release Event.  I had restricted this event with status I0002 - Release.  Therefore changing an order in CO02 would only trigger the event if you released the order.  I removed the restriction I0002 and tried changing the order total quantity.  The event now triggers when changing the total quantity.
    I had tried adding the restriction I0558 - Changed, as Imthiaz had suggested, but this did not work in our system.  Totally removing the restrictions did work for this scenario.
    Setting up change documents in SWEC did not work for some reason neither with change document ORDER nor RKAUFTRAG.
    Thanks Imthiaz for heading me back in the right direction again.

  • Firefox changes the "order" of my multiple display from 4-3-1-2 to 2-1-3-4

    When my PC starts, the "order" of my monitors in Control Panel | Display | Screen Resolution is: 4-3-1-2
    After I start Firefox, it changes the "order" to 2-1-3-4
    I have to go into the Control panel and Change the appearance of your displays back to 4-3-1-2
    I'm using Windows 8.1 with Firefox as my default browser. Everything is up-to-date.
    I've had this problem for a long, long time, I've just never gotten around to seeking help for it. Always having to go into the Control Panel to "rearrange" by monitors is a nuisance.
    Any assistance to resolve this problem would be greatly appreciated!

    I've never heard of something like this. But I suppose it's possible that it has something to do with hardware acceleration. Try disabling graphics hardware acceleration. Since this feature was added to Firefox, it has gradually improved, but there still are a few glitches.
    You might need to restart Firefox in order for this to take effect, so save all work first (e.g., mail you are composing, online documents you're editing, etc.).
    Then perform these steps:
    #Open Firefox ''Options'' window (''Preferences'' on Mac or Linux) as follows:
    #* In Firefox 29.0 and above, click the menu button [[Image:New Fx Menu]] and select ''Options'' for Windows or ''Preferences'' on Mac or Linux.
    #* In Firefox 28.0 and previous versions, click the orange Firefox button at the top left, then select the "Options" button, or, if there is no Firefox button at the top, go to Tools > Options.
    #In the Firefox Options (or Preferences) window, click the ''Advanced'' tab, then select ''General''.
    #In the settings list, you should find the ''Use hardware acceleration when available'' checkbox. Uncheck this checkbox.
    #Now, restart Firefox and see if the problems persist.
    Additionally, please check for updates for your graphics driver by following the steps mentioned in the following Knowledge base articles:
    * [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]
    * [[Upgrade your graphics drivers to use hardware acceleration and WebGL]]
    Did this fix your problems? Please report back to us!
    Thank you.

  • Changing folder order in project

    This may be a dumb question, but is there a way to rearrange the order that the folders show up in a project tree?  It seems by default CVI has them in the order of "User Interface Files", "Source Files", "Include Files", which is fine.  However, I have an old project where the "User Interface Files" for some reason comes after the "Include Files" which is driving me crazy .  How can I change the order that they show up?  There doesn't seem to be a way in the Project Tree and the Edit->Project... window doesn't seem to have a way to do this either.  Thanks!
    Solved!
    Go to Solution.

    This is not the most elegant solution but the "brute force" approach is to open the project file in a text editor, locate the [Folders] section and arrange the listed folders to meet your needs. Once the folders are arranged, rename the Folder keys numerically from 0 to n.

  • Changed column order not applied to interactive report

    Hi,
    I've changed column order for interactive report.
    But it is not applied.
    How can I solve this issue?
    Thanks,
    Guy

    Hi Guy
    It depends on where you have changed the column order. If you change the column order using the 'Select Columns' function when you click on the 'Wheel of Magic', then it should work.
    If you are changing the column order from the Interactive Reports Attributes page then this will only affect the column order for non displayed items and the single row view.
    I hope that helps
    Shunt

  • Can we change card details without changing subscr...

    Hy i used a frendz card to pay for the subscription for the first time.can we change card details and resune with our ongoing subscription? I had to.cancel the original subscription but it still asks... Reactivate it ? Will thr be an option to change the card details ?
    Solved!
    Go to Solution.

    Hi oyeitsmee,
    I can see from your account that your subscription is no longer active. If you click 'Reactivate' button next to your expired subscription, you will be asked to enter payment details and repurchase it.
    You'll need to delete your friend's card details first from your stored payment method as follows:
    1. Sign in to your account: https://secure.skype.com/account/
    2. In the 'Account details' section, select 'Billing & payments'.
    3. Click 'Stored payment details'.
    4. Next to your friend's card details, click the 'Delete' button.
    Once you have managed to delete your friend's card details, you can proceed with entering your own card details.
    Please note that Skype needs to authorize your credit card by creating a temporary payment request to your card issuer for €1 or similar amount in your currency. Don't worry - you won't need to pay this amount.
    Hope this helps.
    If answer was helpful please mark it with Kudos and if issue is resolved mark it with solution. This will help other users find this answer more easily. Thanks in advance!

  • Changing the order that pages print

    how do i change the order that document pages print? I want to print the last page first.
    This question was solved.
    View Solution.

    Please read this post then provide some details.  What printer model? What operating system? What program are you printing from?
    There are generally two places that page order can be set, but this will depend on the printer model, operating system and program.  The first would be in the print options of the driver.  Click on the Advanced tab and look for "page order".  The other option would be that some applications allow selection of page order as an option.  For example, in Word 2010 this would be found in File, Options, Advanced, Print, Print pages in reverse order.
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

  • How can I change the order SubVIs are loaded?

    Hello,
    I have a SubVI which needs to be called before any other SubVI. I tried to put that SubVI in another VI which again calls a second SubVI with the rest of the application:
    MainSubVI  --- call ---> 'Need-to-be-loaded-first-VI'
                |
                '- call ---> 'Start-VI'
                                 |
                                 '- call ---> 'Rest-of-application-VI'
    The problem is that there is one SubVI - saved in 'Rest-of-application-VI' - which is loaded before the 'Need-to-be-loaded-first-VI'.
    How can I change the order SubVIs are loaded?
    Thanks,
    Johannes

    Hai,
    If you wish to load the VI into memory or block the VI from loading the memory immediatly after the parent VI loads....Use "Call by referance Node" with call setup as "Reload for each call" which will load theVI into memory only when the VI is supposed to execute.
    With regards,
    JK
    Message Edited by JK1 on 09-10-2008 05:07 AM
    With regards,
    JK
    (Certified LabVIEW Developer)
    Give Kudos for Good Answers, and Mark it a solution if your problem is solved.

  • Change variable order by number

    Working in Teststand 2013 on equipment that is shared by several developers.  It appears that something got changed with the way that variables are ordered in the Variables Pane, but can't identify how to change it back, or who may have changed it.
    I have a list of FileGlobals that are numbered sequentially, (i.e. Test0, Test1, Test2, etc).  Previously, they were displayed in the pane in that same sequential order.  Now, the variables are ordered based on the first digit (i.e. Test0, Test100, Test10, Test11, ... Test18, Test19, Test1, Test20...).  Makes it difficult to go through the list in order when debugging, particularly since there are more than 100 of them.  Any ideas how this could have been changed and how to change it back?  Thanks.
    GSinMN
    Solved!
    Go to Solution.

    Not sure if this is it or not but at the top of your variables pane for each column you can click on the column header.  It will change the ordering.  There are 3 modes.  If you see an up arrow appear that means the column is sorted A-Z.  If you see a down arrow appear that means the column is sorted Z-A.  If you don't see an arrow it means the column is sorted based on the index in which the variable exists within the file.  You can click on the column header to change to each mode.
    Hope this helps,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • How can i change my order shipping address~

    I'm now being abroad , my family moved to NY from CA a few days ago ,but my order shipping adress was still my CA address ,how can i change my order shipping address except phonecall ,can someone please give me the apple serve Email which can chage my shipping address before Oct 8th when the product post~
    thx a lot!
    my email ad:[email protected]

    Have you tried to change your address with DHL? I think that will solve your problem if changing address with Apple is so hard, or too late at the moment.
    And I suggest you to call instead of sending emails, it's way more efficient. I know you are in China, but I don't see why you can't make a phone call from there.
    In addition, you can try track your DHL shipment via this service, http://dhl.trackingnumber.org/, it shows the location on a map.

Maybe you are looking for