Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 11-01-2012, 05:19 AM   #1
LQ Newbie
Registered: Oct 2012
Posts: 6

Rep: Reputation: Disabled
How to use ALSA and PCI correctly


I am trying to create a simple driver for my PCI sound card in which I will use the ALSA api. And of course I face a problem: I can't make my driver work.

So here are some details:

1. As I mentioned my sound card is a PCI device. In order to start my driver I had to stop the originally running snd_intel8x0 driver, as it had occupied the device and it was not accessible(the probe function of my driver was never executed). So I blacklisted the snd_intel8x0 driver (added line in /etc/modporbe.d/blacklist.conf).
From this moment on my driver can be started - the probe function is started.

2. Unfortunately when snd_intel8x0 driver is blacklisted ALSA api also seems to disappear. I observe the following:

- when I start my driver I get these errors in dmesg:
[...] alsa: Unknown symbol snd_card_register (err 0)
[...] alsa: Unknown symbol snd_card_create (err 0)
[...] alsa: Unknown symbol snd_card_free (err 0)
[...] alsa: Unknown symbol snd_device_new (err 0)

- in file /proc/kallsyms there are no snd* symbols (if the original driver snd_intel8x0 is running all of the above mentioned snd* functions are available in /proc/kallsyms)

- there is folder /proc/asound (if snd_intel8x0 is running asound folder is present)

So my questions:
1. How can I make my PCI audio card use my driver and not snd_intel8x0?
2. How do I make ALSA available for my driver?
3. In general: why does ALSA disappear when snd_intel8x0 is blacklisted?

Thank you in advance
Grts, Nedelin


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
ALSA in Mandriva 2009.1 doesn't always load correctly at Boot up. moshebagelfresser Linux - Hardware 10 12-07-2009 07:09 PM
Creative Soundblaster Audigy 4 non-pro not detected correctly in alsa disbeliever Linux - Hardware 8 09-23-2006 03:30 AM
How to use ALSA hooks plugin correctly. Xplosion Linux - Software 0 08-28-2006 07:47 AM
Alsa not setting up sound card correctly on boot rickh Debian 17 11-26-2005 09:53 AM
Alsa not working correctly with SB Live under Slack Current njbrain Linux - General 5 04-01-2004 09:42 PM > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 11:40 AM.

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