alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH - oxygen 1/1] Patch for the Xonar DG Patch by Roman Volkov
@ 2013-12-03 15:46 Marius Graefe
  2013-12-03 16:05 ` Clemens Ladisch
  0 siblings, 1 reply; 3+ messages in thread
From: Marius Graefe @ 2013-12-03 15:46 UTC (permalink / raw)
  To: patch; +Cc: alsa-devel, Marius Graefe, v1ron

I just tested Roman Volkovs oxygen patch for the xonar dg and it works like a charm, however I needed to change two lines in xonar_dg_mixer.c:

1) #include <linux/export.h> was missing which resulted in a warning when compiling.

2) I had to assign a .shortname in xonar_dg_model, otherwise my kernel (unmodified ubuntu 3.2.0-56-generic-pae) throws an oops, the backtrace led me to the missing string. Actually this is weird because the shortname is assigned in get_oxygen_model in oxygen.c, and alsamixer also shows that name later, but at some point in the kernel startup sequence it's NULL.

Volkovs Xonar DG 4-Patch series is required!

Signed-off-by: Marius Graefe <alsa@mgraefe.de>

diff --git a/sound/pci/oxygen/xonar_dg_mixer.c b/sound/pci/oxygen/xonar_dg_mixer.c
index 39a0da7..102cfce 100644
--- a/sound/pci/oxygen/xonar_dg_mixer.c
+++ b/sound/pci/oxygen/xonar_dg_mixer.c
@@ -26,6 +26,7 @@
 
 #include <linux/pci.h>
 #include <linux/delay.h>
+#include <linux/export.h>
 #include <sound/control.h>
 #include <sound/core.h>
 #include <sound/info.h>
@@ -456,6 +457,7 @@ static int xonar_control_filter(struct snd_kcontrol_new *template)
 }
 
 struct oxygen_model model_xonar_dg = {
+	.shortname = "Xonar DG/DGX",
 	.longname = "C-Media Oxygen HD Audio",
 	.chip = "CMI8786",
 	.init = dg_init,
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-12-03 17:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-03 15:46 [PATCH - oxygen 1/1] Patch for the Xonar DG Patch by Roman Volkov Marius Graefe
2013-12-03 16:05 ` Clemens Ladisch
2013-12-03 17:27   ` Marius Graefe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).