Announcement

Collapse
No announcement yet.

Is audio card detection predictable?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Is audio card detection predictable?

    My system just got down due to electricity issue, now I lost my previously well setup audio. alsamixer shows "this device does not have any controls", vlc can't play any song, smplayer has no sound, etc. When I finally try "aplay -l" I find out that the order has changed:
    Code:
    **** List of PLAYBACK Hardware Devices ****
    card 0: Loopback [Loopback], device 0: Loopback PCM [Loopback PCM]
      Subdevices: 8/8
      Subdevice #0: subdevice #0
      Subdevice #1: subdevice #1
      Subdevice #2: subdevice #2
      Subdevice #3: subdevice #3
      Subdevice #4: subdevice #4
      Subdevice #5: subdevice #5
      Subdevice #6: subdevice #6
      Subdevice #7: subdevice #7
    card 0: Loopback [Loopback], device 1: Loopback PCM [Loopback PCM]
      Subdevices: 8/8
      Subdevice #0: subdevice #0
      Subdevice #1: subdevice #1
      Subdevice #2: subdevice #2
      Subdevice #3: subdevice #3
      Subdevice #4: subdevice #4
      Subdevice #5: subdevice #5
      Subdevice #6: subdevice #6
      Subdevice #7: subdevice #7
    card 1: PCH [HDA Intel PCH], device 0: ALC892 Analog [ALC892 Analog]
      Subdevices: 0/1
      Subdevice #0: subdevice #0
    card 1: PCH [HDA Intel PCH], device 1: ALC892 Digital [ALC892 Digital]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 2: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 2: NVidia [HDA NVidia], device 7: HDMI 0 [HDMI 0]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 2: NVidia [HDA NVidia], device 8: HDMI 0 [HDMI 0]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 2: NVidia [HDA NVidia], device 9: HDMI 0 [HDMI 0]
      Subdevices: 1/1
      Subdevice #0: subdevice #0
    card 0 and card 1 have switched their places, making loopback device to be the default. Can I return the order back? Because I would need to reconfigure QJackCtl to use card 1 instead of default, calling alsamixer with "-c 1" parameter, and so on which is not the default.
    Last edited by SteveRiley; Dec 02, 2012, 09:02 PM. Reason: Wrapped output in [ CODE ] tags.

    #2
    Do you have any of the following files anywhere on your computer:

    * .asoundrc
    * asound.conf
    * alsa.conf
    * asound.state

    Comment


      #3
      Originally posted by SteveRiley View Post
      Do you have any of the following files anywhere on your computer:

      * .asoundrc
      * asound.conf
      * alsa.conf
      * asound.state
      Yes:
      Code:
      leledumbo@Lelebuntu:~/Documents$ locate .asoundrc
      /home/leledumbo/.asoundrc
      leledumbo@Lelebuntu:~/Documents$ locate asound.conf
      /usr/share/doc/libasound2-plugins/examples/asound.conf_jack
      /usr/share/doc/libasound2-plugins/examples/asound.conf_oss
      leledumbo@Lelebuntu:~/Documents$ locate alsa.conf
      /usr/share/alsa/alsa.conf
      /usr/share/alsa/alsa.conf.d
      /usr/share/alsa/alsa.conf.d/50-pulseaudio.conf
      /usr/share/alsa/alsa.conf.d/99-pulseaudio-default.conf.example
      /usr/share/alsa/alsa.conf.d/README
      /usr/share/alsa/alsa.conf.d/bluetooth.conf
      leledumbo@Lelebuntu:~/Documents$ locate asound.state
      /var/lib/alsa/asound.state
      leledumbo@Lelebuntu:~/Documents$
      I created .asoundrc to make it work with JACK, here's the content:
      Code:
      pcm.rawjack {
          type jack
          playback_ports {
              0 system:playback_1
              1 system:playback_2
          }
          capture_ports {
              0 system:capture_1
              1 system:capture_2
          }
      }
      
      pcm.jack {
          type plug
          slave { pcm "rawjack" }
          hint {
              description "JACK Audio Connection Kit"
          }
      }
      
      pcm.!default {
          type plug
          slave { pcm "rawjack" }
      }
      Last edited by SteveRiley; Dec 02, 2012, 09:02 PM. Reason: Wrapped output in [ CODE ] tags.

      Comment


        #4
        I don't have any experience with JACK, so I'm not able to provide much advice. I have read in some places that there's no guarantee Udev will always arrange devices in the same order, and I wonder if you've now encountered this exact situation. Perhaps a bit of Googling around might find an answer. Wish I could be more helpful, sorry.

        Comment


          #5
          I have read in some places that there's no guarantee Udev will always arrange devices in the same order
          Well, this is bad, but I guess I have to live with it. Anyway, it doesn't seem to happen so often. AFAIR, it happens due to some package upgrade. And I guess I would only need to adapt it with QJackCtl and alsamixer only, other applications seem to be unaffected. Thanks anyway.

          Comment

          Working...
          X