LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-24-2014, 07:44 AM   #1
Shodan30
LQ Newbie
 
Registered: Dec 2010
Posts: 10

Rep: Reputation: 0
alsa config for 2 different card slots.


I'm trying to qualify some new hardware for an image. We want the same image to be applied to old hardware and new, yet the new hardware needs the default card set to card 1 and the old hardware needs the default set to card 0 in alsa.conf to work. Can this be setup in the config file to detect or support both possible options?

Thanks

Lemme add some information:
/proc/asound/cards on the new hardware:
0 [Intel ]: HDA-Intel -HDA Intel
HDA Intel at 0xf7c34000 irq 16
1 [Intel_1 ]: HDA-Intel - HDA Intel
HDA Intel at 0xf7c30000 irq 22

Old hardware /proc/asound/cards:
0 [Intel ]: HDA-Intel - HDA Intel
HDA Intel at 0xfc520000 irq 16

lspci on the new hardware for the audio devices:

00:03.0 Audio device: Intel Corporation Device 0c0c (rev 06)
Subsystem: Lenovo Device 309f
Flags: bus master, fast devsel, latency 0, IRQ 16
Memory at f7c34000 (64-bit, non-prefetchable) [size=16K]
Capabilities: [50] Power Management version 2
Capabilities: [60] Message Signalled Interrupts: Mask- 64bit- Count=1/1 Enable-
Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
Kernel driver in use: HDA Intel
Kernel modules: snd-hda-intel

00:1b.0 Audio device: Intel Corporation Device 8c20 (rev 04)
Subsystem: Lenovo Device 309f
Flags: bus master, fast devsel, latency 0, IRQ 22
Memory at f7c30000 (64-bit, non-prefetchable) [size=16K]
Capabilities: [50] Power Management version 2
Capabilities: [60] Message Signalled Interrupts: Mask- 64bit+ Count=1/1 Enable-
Capabilities: [70] Express Root Complex Integrated Endpoint, MSI 00
Capabilities: [100] Virtual Channel <?>
Kernel driver in use: HDA Intel
Kernel modules: snd-hda-intel

/usr/share/alsa/alsa.conf:
Old system uses
defaults.ctl.card 0
defaults.pcm.card 0

New system to get sound working i had to change this to
defaults.ctl.card 1
defaults.pcm.card 1

I've been trying to make indexing of the cards work by adding a /etc/modprobe.d/alsa.conf file but since both cards use the same name, I'm not sure how to identify the vid or pid to use.

Last edited by Shodan30; 06-24-2014 at 11:05 AM. Reason: Updated
 
Old 06-25-2014, 09:38 AM   #2
Shodan30
LQ Newbie
 
Registered: Dec 2010
Posts: 10

Original Poster
Rep: Reputation: 0
I've tried a few more things, so wanted to update.

I've tried options snd slots=,snd_hda_intel which does swap the order of the load on the new system, unfortunately this also breaks the old system for some reason.

the vid= and pid= options are not valid on my version of alsa/linux/modprobe, getting an error trying to load the alsa.conf file in the modprobe.d directory.

Mostly the problem is that both sound cards use the same name and drivers so the options to alias the cards does not seem possible in this case.
 
Old 06-25-2014, 01:01 PM   #3
DJ Shaji
Member
 
Registered: Dec 2004
Location: Yo Momma's house
Distribution: Fedora Rawhide, ArchLinux
Posts: 518
Blog Entries: 15

Rep: Reputation: 106Reputation: 106
Quote:
Originally Posted by Shodan30 View Post
the vid= and pid= options are not valid on my version of alsa/linux/modprobe,
So update the kernel. With any recent-ish distro, you might be able to do this by just installing a new kernel from your package repo, or in almost all cases you will be able to compile from source. See here for a solution that requires the vid= and pid= options. This is the simplest way to do it.

Quote:
Mostly the problem is that both sound cards use the same name and drivers so the options to alias the cards does not seem possible in this case.
Exactly. So compile a new kernel and use index=
 
Old 06-25-2014, 02:06 PM   #4
Shodan30
LQ Newbie
 
Registered: Dec 2010
Posts: 10

Original Poster
Rep: Reputation: 0
Found a workaround.

We set a udev rule defining the sound card i wanted the system to use by its bus (which is the same on all of the hardware we are verifying it works on), which let us give it an id that we then used in alsa.conf to define the default card.

I know we could have updated the kernel, but we were going for as minimal changes as possible to the image. we have to go through a lot more testing and verification to do a suse update. As it is with this change, i just need to change 4 files.

Thanks for the help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Total harddisk slots and free slots in linux linuxguy08 Linux - Server 2 03-19-2013 08:07 PM
video card slots - extra cards. casperdaghost Linux - Hardware 4 11-27-2011 06:27 AM
No pc-card slots found Ephracis Linux - Laptop and Netbook 2 03-24-2005 09:59 PM
sound card config with alsa aherrys Slackware 16 11-03-2004 02:36 AM
Toshiba Satellites' built in SD card slots. DrSkeezix Linux - Laptop and Netbook 0 07-23-2004 02:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration