[ALSA] oxygen: move model-specific data out of common header
Instead of having model-specific fields in the common struct oxygen, put
them into a private structure that is allocated together with the card
structure.
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
diff --git a/sound/pci/oxygen/oxygen.h b/sound/pci/oxygen/oxygen.h
index 4f4a56a..4894dbd 100644
--- a/sound/pci/oxygen/oxygen.h
+++ b/sound/pci/oxygen/oxygen.h
@@ -49,6 +49,7 @@
struct snd_rawmidi *midi;
int irq;
const struct oxygen_model *model;
+ void *model_data;
unsigned int interrupt_mask;
u8 dac_volume[8];
u8 dac_mute;
@@ -56,7 +57,6 @@
u8 pcm_running;
u8 dac_routing;
u8 spdif_playback_enable;
- u8 ak4396_ctl2;
u8 revision;
u8 has_ac97_0;
u8 has_ac97_1;
@@ -84,6 +84,7 @@
struct snd_pcm_hw_params *params);
void (*update_dac_volume)(struct oxygen *chip);
void (*update_dac_mute)(struct oxygen *chip);
+ size_t model_data_size;
u8 used_channels;
u8 function_flags;
u16 dac_i2s_format;