diff options
Diffstat (limited to 'sound/pci/oxygen/hifier.c')
-rw-r--r-- | sound/pci/oxygen/hifier.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/sound/pci/oxygen/hifier.c b/sound/pci/oxygen/hifier.c index dad393ae040a..1ab833f843eb 100644 --- a/sound/pci/oxygen/hifier.c +++ b/sound/pci/oxygen/hifier.c | |||
@@ -94,6 +94,11 @@ static void hifier_cleanup(struct oxygen *chip) | |||
94 | { | 94 | { |
95 | } | 95 | } |
96 | 96 | ||
97 | static void hifier_resume(struct oxygen *chip) | ||
98 | { | ||
99 | hifier_registers_init(chip); | ||
100 | } | ||
101 | |||
97 | static void set_ak4396_params(struct oxygen *chip, | 102 | static void set_ak4396_params(struct oxygen *chip, |
98 | struct snd_pcm_hw_params *params) | 103 | struct snd_pcm_hw_params *params) |
99 | { | 104 | { |
@@ -150,16 +155,16 @@ static const struct oxygen_model model_hifier = { | |||
150 | .init = hifier_init, | 155 | .init = hifier_init, |
151 | .control_filter = hifier_control_filter, | 156 | .control_filter = hifier_control_filter, |
152 | .cleanup = hifier_cleanup, | 157 | .cleanup = hifier_cleanup, |
153 | .resume = hifier_registers_init, | 158 | .resume = hifier_resume, |
154 | .set_dac_params = set_ak4396_params, | 159 | .set_dac_params = set_ak4396_params, |
155 | .set_adc_params = set_cs5340_params, | 160 | .set_adc_params = set_cs5340_params, |
156 | .update_dac_volume = update_ak4396_volume, | 161 | .update_dac_volume = update_ak4396_volume, |
157 | .update_dac_mute = update_ak4396_mute, | 162 | .update_dac_mute = update_ak4396_mute, |
158 | .dac_tlv = ak4396_db_scale, | 163 | .dac_tlv = ak4396_db_scale, |
159 | .model_data_size = sizeof(struct hifier_data), | 164 | .model_data_size = sizeof(struct hifier_data), |
160 | .pcm_dev_cfg = PLAYBACK_0_TO_I2S | | 165 | .device_config = PLAYBACK_0_TO_I2S | |
161 | PLAYBACK_1_TO_SPDIF | | 166 | PLAYBACK_1_TO_SPDIF | |
162 | CAPTURE_0_FROM_I2S_1, | 167 | CAPTURE_0_FROM_I2S_1, |
163 | .dac_channels = 2, | 168 | .dac_channels = 2, |
164 | .dac_volume_min = 0, | 169 | .dac_volume_min = 0, |
165 | .dac_volume_max = 255, | 170 | .dac_volume_max = 255, |
@@ -180,7 +185,7 @@ static int __devinit hifier_probe(struct pci_dev *pci, | |||
180 | ++dev; | 185 | ++dev; |
181 | return -ENOENT; | 186 | return -ENOENT; |
182 | } | 187 | } |
183 | err = oxygen_pci_probe(pci, index[dev], id[dev], &model_hifier); | 188 | err = oxygen_pci_probe(pci, index[dev], id[dev], &model_hifier, 0); |
184 | if (err >= 0) | 189 | if (err >= 0) |
185 | ++dev; | 190 | ++dev; |
186 | return err; | 191 | return err; |