All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pavel Hofman <pavel.hofman@ivitera.com>
To: alsa-devel@alsa-project.org
Subject: Changing default card using its name
Date: Sun, 21 Nov 2010 22:10:08 +0100	[thread overview]
Message-ID: <4CE98AB0.4030601@ivitera.com> (raw)

Hi,

Please excuse my ignorance but I have not been able to figure out this 
simple task. Nowadays most PCs have multiple soundcards (onboard plus 
HDMI, often another PCI card). Order of the cards is not stable. How do 
I define in /etc/asound.conf another default card using its name and 
keep the PCMs defined by its corresponding alsa card/pcm config files?

In my case aplay -L:
null
     Discard all samples (playback) or generate zero samples (capture)
front:CARD=Intel,DEV=0
     HDA Intel, STAC92xx Analog
     Front speakers
surround40:CARD=Intel,DEV=0
     HDA Intel, STAC92xx Analog
     4.0 Surround output to Front and Rear speakers
surround41:CARD=Intel,DEV=0
     HDA Intel, STAC92xx Analog
     4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Intel,DEV=0
     HDA Intel, STAC92xx Analog
     5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Intel,DEV=0
     HDA Intel, STAC92xx Analog
     5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Intel,DEV=0
     HDA Intel, STAC92xx Analog
     7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=NVidia
     HDA NVidia, NVIDIA HDMI
     HDMI Audio Output
front:CARD=CMI8768,DEV=0
     C-Media CMI8768, C-Media PCI DAC/ADC
     Front speakers
rear:CARD=CMI8768,DEV=0
     C-Media CMI8768, C-Media PCI 2nd DAC
     Rear speakers
surround40:CARD=CMI8768,DEV=0
     C-Media CMI8768, C-Media PCI 2nd DAC
     4.0 Surround output to Front and Rear speakers
surround41:CARD=CMI8768,DEV=0
     C-Media CMI8768, C-Media PCI 2nd DAC
     4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=CMI8768,DEV=0
     C-Media CMI8768, C-Media PCI 2nd DAC
     5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=CMI8768,DEV=0
     C-Media CMI8768, C-Media PCI 2nd DAC
     5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=CMI8768,DEV=0
     C-Media CMI8768, C-Media PCI 2nd DAC
     7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=CMI8768,DEV=0
     C-Media CMI8768, C-Media PCI DAC/ADC
     IEC958 (S/PDIF) Digital Audio Output

Is it actually possible to have iec958:CARD=CMI8768,DEV=0 as the 
system-wide device iec958? I have not been successful with

defaults.ctl.card "CMI8768"

which IMO would have been the simplest solution.

Thanks a lot for help.

Regards,


Pavel Hofman.

             reply	other threads:[~2010-11-21 21:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-21 21:10 Pavel Hofman [this message]
2010-11-23  8:54 ` Changing default card using its name Pavel Hofman
2010-11-23  9:11   ` Jaroslav Kysela

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4CE98AB0.4030601@ivitera.com \
    --to=pavel.hofman@ivitera.com \
    --cc=alsa-devel@alsa-project.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.