Skip to contentSkip to conversation

: ALSA: oxygen: Move the Xonar DG mixer code away from this file and actual driver changes

PATCH New Roman Volkov 1 participant 1 message Nov 21, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 3/4 : ALSA: oxygen: Move the Xonar DG mixer code away from this file and actual driver changes

Move the mixer controls and other system structures to a separate file. Also there are actual driver changes: Multichannel routing, CS4245 initialization, CS4245 SPI reading and writing, DAC/ADC settings, suspend/resume logic.

---
I can confirm, the driver also works with OXYGEN_FUNCTION_ENABLE_SPI_4_5 removed.

sound/pci/oxygen/oxygen_mixer.c +1 -0
diff -uprN linux-3.12/sound/pci/oxygen/oxygen_mixer.c linux-3.12-my/sound/pci/oxygen/oxygen_mixer.c
@@ -190,6 +190,7 @@ void oxygen_update_dac_routing(struct ox
 	if (chip->model.update_center_lfe_mix)
 		chip->model.update_center_lfe_mix(chip, chip->dac_routing > 2);
 }
+EXPORT_SYMBOL(oxygen_update_dac_routing);
 
 static int upmix_put(struct snd_kcontrol *ctl, struct snd_ctl_elem_value *value)
 {
sound/pci/oxygen/cs4245.h +3 -2
diff -uprN linux-3.12/sound/pci/oxygen/cs4245.h linux-3.12-my/sound/pci/oxygen/cs4245.h
@@ -103,5 +103,6 @@
 #define CS4245_ADC_UNDRFL	0x01
 
 
-#define CS4245_SPI_ADDRESS	(0x9e << 16)
-#define CS4245_SPI_WRITE	(0 << 16)
+#define CS4245_SPI_ADDRESS	0x9e
+#define CS4245_SPI_WRITE	0
+#define CS4245_SPI_READ		1
sound/pci/oxygen/xonar_dg.h +45 -0

51 lines not on this page · raw message

sound/pci/oxygen/xonar_dg.c +164 -495

754 lines not on this page · raw message

Signature · 7 lines
Kind regards,
Roman Volkov,
[email protected]
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel