Sound Card install Xonar DX

Hello,
I bought this card a few days ago and I tried to install the drivers with YaST. It didn’t work because of a well know bug that causes YaST to recognize the card as snd-oxygen and not snd-virtuoso. Anyhow, I’ve decided to install the alsa files and I’ve followed the instructions downloading alsa-driver-1.0.24 as well as the utils and library.
I’ve copied them to a directory usr/src/alsa. Following the instructions that are here I’ve configured the drivers yet I cannot install them because when i make install the following error occurs.

install: cannot stat `include/sound/*.h': No such file or directory
make: *** [install-headers] Error 1

I accessed the directory include/sound are there are no .h files since there are only .patch files. I’ve tried using kompare to solve the issue but there appear to be LOTS of .patch files in the directory alsa-driver-1.0.24 . I do not know why this occurs but can someone help me since I cannot find a solution to the problem.
Thanks in advance.

openSUSE 11.3
64-bit system.

I have no idea as to what you applied from that guide, because that guide has different possibilities and hence not clear what might have been done on your PC.

IMHO that is the wrong approach to follow. You may have changed things that might only be solvable by a re-install, dependent on your Linux knowledge.

Please note we have a stickie which requests some different information be provided so users like myself can try help (where we are not smart enough to understand the error messages like the one you posted). The stickie is here: Welcome to multimedia sub-area and just to help you focus on this, the specific quote relevant to you is here:

please post … providing in your post the following information:

/usr/sbin/alsa-info.sh 

and select the SHARE/UPLOAD option and after the script finishes it will give you a URL to pass to the support personnel. Please post here the output URL/website-address that gives. Just the URL/website-address. You may need to run that script twice (the first time with root permissions to update in the /usr/sbin directory, and the second time to get the URL).
.
Note if for some reason that gives you no website/url/address then run it with the no-upload option:

/usr/sbin/alsa-info.sh --no-upload

and post the file /etc/alsa-info.txt it creates to Pastebin.com and press SUBMIT on that site and again post here the URL/website-address it provides.

.
… some clarification on running the script “alsa-info.sh” … when you run:

/usr/sbin/alsa-info.sh 

you should get something like this (if it asks for an update, select NO):
http://thumbnails33.imagebam.com/9280/a5973e92794041.jpg](http://www.imagebam.com/image/a5973e92794041)

followed by this (select the SHARE/UPLOAD option):
http://thumbnails30.imagebam.com/9280/5e84f992794044.jpg](ImageBam)

followed by this (its quickest if you simply select ‘NO’ to seeing the output - you will see it on the web page) :
http://thumbnails32.imagebam.com/9280/214da092794048.jpg](ImageBam)

followed by this (where in RED is the URL).
http://thumbnails23.imagebam.com/9280/d9858092794051.jpg](ImageBam)

Just post the URL you get (similar to the RED URL in my example, but yours will be different).

Again, if you can not get that, then run this with the no upload option:

/usr/sbin/alsa-info.sh --no-upload

which will create the file /tmp/alsa-info.txt.  Copy that file and paste it on [Pastebin.com](http://pastebin.com) and press submit. That will give you a URL address. Please post that URL here.

Also provide the following:

  • in a terminal, or xterm, or konsole, type: rpm -qa ‘alsa#and post output here
  • in a terminal, or xterm, or konsole, type: rpm -qa ‘pulse#and post output here
  • in a terminal, or xterm, or konsole, type: rpm -q libasound2 #and post output here
  • in a terminal, or xterm, or konsole, type: uname -a #and post output here
  • for openSUSE-11.2 or newer, in a terminal, or xterm, or konsole, type: cat /etc/modprobe.d/50-sound.conf #and post output here

I can say the xsonar is a difficult case wrt sound functioning in Linux and many many users have complained about the difficulty in configuring it. If you do a search on xsonar on our forum you will read of the many problems. I don’t have the card/device myself, so it is likely my recommendations will be limited.

Hello,
Thanks for the reply. Just so we are clear lol my knowledge on Linux is close to 0.

http://www.alsa-project.org/db/?f=4605fc08f0d8924db5ba51788e72f8e0e125e69d

rpm -qa '*alsa*'
alsa-utils-1.0.23-1.8.x86_64
alsa-oss-1.0.17-29.2.x86_64
alsa-plugins-1.0.23-1.9.x86_64
alsa-plugins-pulse-32bit-1.0.23-1.9.x86_64
alsa-plugins-32bit-1.0.23-1.9.x86_64
alsa-oss-32bit-1.0.17-29.2.x86_64
alsa-devel-1.0.23-2.12.x86_64
alsa-1.0.23-1.1.x86_64
alsa-plugins-pulse-1.0.23-1.9.x86_64
rpm -qa '*pulse*'
pulseaudio-module-bluetooth-0.9.21-10.1.1.x86_64
pulseaudio-module-gconf-0.9.21-10.1.1.x86_64
libpulse0-0.9.21-10.1.1.x86_64
alsa-plugins-pulse-32bit-1.0.23-1.9.x86_64
libpulse-devel-0.9.21-10.1.1.x86_64
libpulse-mainloop-glib0-0.9.21-10.1.1.x86_64
pulseaudio-module-zeroconf-0.9.21-10.1.1.x86_64
libpulse0-32bit-0.9.21-10.1.1.x86_64
libpulse-browse0-0.9.21-10.1.1.x86_64
pulseaudio-module-lirc-0.9.21-10.1.1.x86_64
pulseaudio-module-x11-0.9.21-10.1.1.x86_64
pulseaudio-0.9.21-10.1.1.x86_64
pulseaudio-utils-0.9.21-10.1.1.x86_64
alsa-plugins-pulse-1.0.23-1.9.x86_64
libxine1-pulse-1.1.19-2.pm.48.15.x86_64
pulseaudio-esound-compat-0.9.21-10.1.1.x86_64
rpm -q libasound2
libasound2-1.0.23-2.12.x86_64

Linux linux-gebp 2.6.34.7-0.7-desktop #1 SMP PREEMPT 2010-12-13 11:13:53 +0100 x86_64 x86_64 x86_64 GNU/Linux

cat /etc/modprobe.d/50-sound.conf

options snd slots=snd-hda-intel
# WL76.VpL4uDMMuV9:MCP73 High Definition Audio
alias snd-card-0 snd-hda-intel

Thx

Ok, … that might explain a few things …

I note:


!!ALSA Version
!!------------

Driver version:     1.0.22.1
Library version:    1.0.24.1
Utilities version:  1.0.23

Clearly your driver was NOT updated to 1.0.24. Only the library. Thats not IMHO a good practise. If you are going to update the library you should also update the driver.

I also note HP-Pavilion KQ495AA-A2L a6500f on a 64-bit openSUSE-11.3 with the 2.6.34.7-0.7-desktop kernel. Wrt sound devices, I note:


!!Soundcards recognised by ALSA
!!-----------------------------

 0 [NVidia         ]: HDA-Intel - HDA NVidia
                      HDA NVidia at 0xefff4000 irq 23
 1 [DX             ]: AV200 - Xonar DX
                      Asus Virtuoso 100 (rev 2) at 0xde00, irq 16

!!PCI Soundcards installed in the system
!!--------------------------------------

00:09.0 Audio device: nVidia Corporation MCP73 High Definition Audio (rev a1)
05:04.0 Multimedia audio controller: C-Media Electronics Inc CMI8788 [Oxygen HD Audio]

So it appears to me you have a sound device on the motherboard, and perhaps as well an PCI-e sound card. The first sound device is a Realtek ALC1200 and the second sound device a Xonar DX.

By default, sound will come out of the 1st sound device which your PC has setup as the nVidia MCP73 HDA (ALC1200) and NOT your Xonar DX. So its possible that was the original problem, and its now been made worse by the custom compile of the alsa library.

Plus, when I look in the 50-sound.conf configuration file:


cat /etc/modprobe.d/50-sound.conf

options snd slots=snd-hda-intel
# WL76.VpL4uDMMuV9:MCP73 High Definition Audio
alias snd-card-0 snd-hda-intel

I see no mention of the Xonar DX which makes me think it was not configured by yourself with the YaST configuration tool ? Did you try YaST > Hardware > Sound and make the Xonar DX the 1st sound device (see lower right corner for options of that menu) and also did you configure the Xonar DX in YaST ?

I also note many pulse audio applications, where pulse audio is a layer on top of alsa. I assume that means your PC has a gnome desktop. What did you do to try to configure gnome? Did you install and try the pavucontrol app ?

If the 1.0.24 alsa library has messed up the interface to the 1.0.22.1 alsa driver, I’m not sure what to recommend. A new install would be cleanest and dependant on how much custom configuring you have done possible quickest.

Else you could try to update alsa via rpm (instead of custom compiling) per the guidance here: SDB:Alsa-update - openSUSE … ie using that guide I linked, update libasound2, alsa-utils, alsa-oss, alsa-plugins, alsa-plugins-pulse-32bit, alsa-plugins-32bit, alsa-oss-32bit, alsa-devel, alsa-1.0.23, and alsa-plugins-pulse … and also install the alsa-driver-kmp-desktop version that is consistent with your kernel …

… but given whats been done so far, I don’t know if that will work. You still MUST ensure your default sound device is made the Xonar DX (although if you install pavucontrol one can tune that).

Something you MUST learn about Linux is there are risks when one custom compiles, which is multiplied 100 fold if one does not know what they are doing. Anything you custom compile is NOT handled by the rpm database that is behind openSUSE software management, and hence your install is now subject to all sorts of hiccups that an advanced user would handle with no problem, but would drive a new user to distraction and to leave Linux.

So it appears to me you have a sound device on the motherboard, and perhaps as well an PCI-e sound card. The first sound device is a Realtek ALC1200 and the second sound device a Xonar DX.

By default, sound will come out of the 1st sound device which your PC has setup as the nVidia MCP73 HDA (ALC1200) and NOT your Xonar DX. So its possible that was the original problem, and its now been made worse by the custom compile of the alsa library.

That is correct, the main sound device is the onboard one.

I see no mention of the Xonar DX which makes me think it was not configured by yourself with the YaST configuration tool ? Did you try YaST > Hardware > Sound and make the Xonar DX the 1st sound device (see lower right corner for options of that menu) and also did you configure the Xonar DX in YaST ?

I did try. It did not work. I tried making it the 1st sound device, did not work. As for configuring with YaST the configuration was not completed since I got the following error.

An error occured during the installation of Virtuoso 100 (Xonar DX)
The kernel module snd-oxygen for sound support could not be loaded. This can be caused by incorrect module parameters, including invalid IO or IRQ parameters 

Now, this error appeared BEFORE I tried to manually compile the alsa-driver, library and utils.

 I also note many pulse audio applications, where pulse audio is a layer on top of alsa. I assume that means your PC has a gnome desktop. What did you do to try to configure gnome? Did you install and try the pavucontrol app ? 

I have not yet configured the card under gnome.

I will try to update alsa via the guide you gave me and see if it is still possible to update the alsa-library. Otherwise when you alk about a new install what do you mean by that. Installing alsa again? or an open-suse reinstall.

Thank you for your help. It is appreciated.

It is done. Alsa was updated.
http://www.alsa-project.org/db/?f=1b6e9ce89776ecd7d527ab8f5e58b308e0114f45

Its possible Xonar DX needs alsa-firmware. Ensure you also install that application.

Try updating alsa via the rpms. Double check that your alsa rpms (including libasound2) are updated. Many users fail there. You need to ensure the rpms are updated to the multidia repository versions. Try removing the 50-sound.conf file and reboot. Alsa can work without the file. If you run YaST > Hardware > Sound and edit the configuration, it will create a new 50-sound.conf file.

If that fails, you may wish to try an openSUSE re-install, depending on how fast your PC is and how fast you are. Typically it takes me less than an hour to install a clean openSUSE version, and then less than one more hour to add all my 3rd party applications. But not everyone can do this in less than 2 hours.

I don’t think you succeeded in doing the update. I type that because:


Driver version:     1.0.24-git20110303
Library version:    1.0.23
Utilities version:  1.0.23

It looks to me like you just rolled your library back to 1.0.23 and did NOT update the utilities.

what is the output of

rpm -qa '*alsa*' 

If those version numbers have not changed from when you ran this for me from before, then your update effort was a failure.

It appears i have failed haha.


rpm -qa '*alsa*'
alsa-plugins-32bit-1.0.23-1.9.x86_64
alsa-oss-1.0.17-29.2.x86_64
alsa-oss-32bit-1.0.17-29.2.x86_64
alsa-utils-1.0.23-1.8.x86_64
alsa-1.0.24.1-72.1.x86_64
alsa-devel-1.0.23-2.12.x86_64
alsa-plugins-pulse-1.0.23-1.9.x86_64
alsa-driver-kmp-desktop-1.0.23.20110303_k2.6.34.7_0.7-4.1.x86_64
alsa-plugins-pulse-32bit-1.0.23-1.9.x86_64
alsa-plugins-1.0.23-1.9.x86_64

OK i have updated it and here’s the output.
http://www.alsa-project.org/db/?f=19b9d0142a7dd731aea8fd6fc9585f000420fcbf

rpm -qa '*alsa*'
alsa-plugins-32bit-1.0.24-36.1.x86_64
alsa-oss-1.0.17-56.3.x86_64
alsa-1.0.24.1-72.1.x86_64
alsa-utils-1.0.24.2-33.1.x86_64
alsa-plugins-pulse-1.0.24-36.1.x86_64
alsa-plugins-pulse-32bit-1.0.24-36.1.x86_64
alsa-plugins-1.0.24-36.1.x86_64
alsa-driver-kmp-desktop-1.0.23.20110303_k2.6.34.7_0.7-4.1.x86_64
alsa-oss-32bit-1.0.17-56.3.x86_64
alsa-devel-1.0.24.1-72.1.x86_64

It does look like you did not update.

The pix on that page on how to update is for KDE. Take a look at this Gnome example (from YaST > Software > Software Management using gnomes ‘yast --gtk’) which I just made for one of the apps to be updated:
http://thumbnails23.imagebam.com/12198/2466f4121977626.jpg](http://www.imagebam.com/image/2466f4121977626)
[click on the pix to get a larger view]

Don’t forget to ALSO install alsa-firmware.

I just installed alsa-firmware


alsa-plugins-32bit-1.0.24-36.1.x86_64
alsa-oss-1.0.17-56.3.x86_64
alsa-1.0.24.1-72.1.x86_64
alsa-utils-1.0.24.2-33.1.x86_64
alsa-plugins-pulse-1.0.24-36.1.x86_64
alsa-plugins-pulse-32bit-1.0.24-36.1.x86_64
alsa-plugins-1.0.24-36.1.x86_64
alsa-driver-kmp-desktop-1.0.23.20110303_k2.6.34.7_0.7-4.1.x86_64
alsa-oss-32bit-1.0.17-56.3.x86_64
alsa-firmware-1.0.24.1-11.2.noarch
alsa-devel-1.0.24.1-72.1.x86_64 

http://www.alsa-project.org/db/?f=0433c54ad6e132370dcfe92e845743e86e99f891

Ok I have sound and the card is recognized

cat /proc/asound/cards
0 [NVidia ]: HDA-Intel - HDA NVidia
HDA NVidia at 0xefff4000 irq 23
1 [DX ]: AV200 - Xonar DX
Asus Virtuoso 100 at 0xde00, irq 16

But i do not have sound on firefox or kaffeine. And the card is still not set to primary card.

Firefox will default to the primary sound card, which is our HDA NVida. Plug speakers in there and you probably will hear sound. So did you go to YaST and make the Xonar DX your primary sound card? What is the content of your /etc/modprobe.d/50-sound.conf file ? For firefox, you could also install pavucontrol, and then see if you can use it to configure sound in firefox.

Its possible kaffeine is also setup to use your primary sound card. Have you installed the packman pager version of kaffeine and libxine1 and gstreamer apps ? Read these guides

Glad to read you are making progress.

I’m not sure if you know, but we are openSUSE enthusiast/volunteers on this forum. We are NOT Novell nor SuSE-GmbH employees. Simply volunteers.

Yeah I have tried to use YaST to make the Xonar DX my primary sound card. It hasn’t worked. I have sound on both my speakers connected to the Xonar DX but YaST still states the card as Not Configured. As for the 50-sound.conf file the contents are:

options snd slots=snd-hda-intel
# WL76.VpL4uDMMuV9:MCP73 High Definition Audio
alias snd-card-0 snd-hda-intel

I am curious wether or not should I follow this guide. MultipleCards - ALSA wiki .

Thanks again for your patience and your time. It is much appreciated :).

They have an interesting suggestion in that guide which is this:

Reordering the driver for a particular card

You can tell /etc/modprobe.d/alsa.conf (or alsa-base.conf, or similar) to keep a driver in out of the default slot. For example, if you have a a Creative Labs soundcard driven by the “emu10k1” driver and you don’t want it to be your default card 0, append

options snd slots=**,**snd-emu10k1

Note the comma in this line that moves the driver to the second slot.

so in your case, you could edit the /etc/modprobe.d/50-sound.conf file to read (note the comma - I highlighted it in read to make it easier for you to see):


options snd slots=**,**snd-hda-intel
# WL76.VpL4uDMMuV9:MCP73 High Definition Audio
alias snd-card-0 snd-hda-intel

The type with root permissions:

rcalsasound restart

and test.

You can always remove that ‘comma’ if it makes things worse.

Its possible you may need to try:


options snd slots=**,**snd-hda-intel
# WL76.VpL4uDMMuV9:MCP73 High Definition Audio
alias snd-card-**1** snd-hda-intel

It didn’t work there now there is no sound at all lol. ALSA was able to restart.

I also tried adding snd-virtuoso before snd-hda-intel and it didn’t work. ALSA wasn’t able to restart.