ALSA: oxygen: Xonar DG(X): modify high-pass filter control

Change the 'put' function of the high-pass filter control to use the new
SPI functions.

Signed-off-by: Roman Volkov <v1ron@mail.ru>
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>

authored by Roman Volkov and committed by Clemens Ladisch fc114e9f 70e0d82d

+6 -2
+6 -2
sound/pci/oxygen/xonar_dg_mixer.c
··· 325 325 return changed; 326 326 } 327 327 328 + /* ADC high-pass filter */ 329 + 328 330 static int hpf_info(struct snd_kcontrol *ctl, struct snd_ctl_elem_info *info) 329 331 { 330 332 static const char *const names[2] = { "Active", "Frozen" }; ··· 356 354 if (value->value.enumerated.item[0]) 357 355 reg |= CS4245_HPF_FREEZE; 358 356 changed = reg != data->cs4245_shadow[CS4245_ADC_CTRL]; 359 - if (changed) 360 - cs4245_write(chip, CS4245_ADC_CTRL, reg); 357 + if (changed) { 358 + data->cs4245_shadow[CS4245_ADC_CTRL] = reg; 359 + cs4245_write_spi(chip, CS4245_ADC_CTRL); 360 + } 361 361 mutex_unlock(&chip->mutex); 362 362 return changed; 363 363 }