Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 111023
b: refs/heads/master
c: c2bc4ff
h: refs/heads/master
i:
  111021: 105c74d
  111019: a9d267e
  111015: 9bc53d2
  111007: f8f1739
v: v3
  • Loading branch information
Clemens Ladisch committed Sep 22, 2008
1 parent 9a252aa commit b5cca7d
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 397b1dcc449082ce3f720c548da9c59db01cb739
refs/heads/master: c2bc4ff58d7aabcf1fc96134200d685d796ae425
7 changes: 6 additions & 1 deletion trunk/sound/pci/oxygen/hifier.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ static void hifier_cleanup(struct oxygen *chip)
{
}

static void hifier_resume(struct oxygen *chip)
{
hifier_registers_init(chip);
}

static void set_ak4396_params(struct oxygen *chip,
struct snd_pcm_hw_params *params)
{
Expand Down Expand Up @@ -150,7 +155,7 @@ static const struct oxygen_model model_hifier = {
.init = hifier_init,
.control_filter = hifier_control_filter,
.cleanup = hifier_cleanup,
.resume = hifier_registers_init,
.resume = hifier_resume,
.set_dac_params = set_ak4396_params,
.set_adc_params = set_cs5340_params,
.update_dac_volume = update_ak4396_volume,
Expand Down
7 changes: 6 additions & 1 deletion trunk/sound/pci/oxygen/oxygen.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,11 @@ static void generic_resume(struct oxygen *chip)
wm8785_registers_init(chip);
}

static void meridian_resume(struct oxygen *chip)
{
ak4396_registers_init(chip);
}

static void set_ak4396_params(struct oxygen *chip,
struct snd_pcm_hw_params *params)
{
Expand Down Expand Up @@ -290,7 +295,7 @@ static int generic_probe(struct oxygen *chip, unsigned long driver_data)
{
if (driver_data == MODEL_MERIDIAN) {
chip->model.init = meridian_init;
chip->model.resume = ak4396_registers_init;
chip->model.resume = meridian_resume;
chip->model.set_adc_params = set_ak5385_params;
chip->model.device_config = PLAYBACK_0_TO_I2S |
PLAYBACK_1_TO_SPDIF |
Expand Down
25 changes: 20 additions & 5 deletions trunk/sound/pci/oxygen/virtuoso.c
Original file line number Diff line number Diff line change
Expand Up @@ -349,20 +349,35 @@ static void xonar_d1_init(struct oxygen *chip)
snd_component_add(chip->card, "CS5361");
}

static void xonar_cleanup(struct oxygen *chip)
static void xonar_disable_output(struct oxygen *chip)
{
struct xonar_data *data = chip->model_data;

oxygen_clear_bits16(chip, OXYGEN_GPIO_DATA, data->output_enable_bit);
}

static void xonar_d2_cleanup(struct oxygen *chip)
{
xonar_disable_output(chip);
}

static void xonar_d1_cleanup(struct oxygen *chip)
{
xonar_cleanup(chip);
xonar_disable_output(chip);
cs4362a_write(chip, 0x01, CS4362A_PDN | CS4362A_CPEN);
oxygen_clear_bits8(chip, OXYGEN_FUNCTION, OXYGEN_FUNCTION_RESET_CODEC);
}

static void xonar_d2_suspend(struct oxygen *chip)
{
xonar_d2_cleanup(chip);
}

static void xonar_d1_suspend(struct oxygen *chip)
{
xonar_d1_cleanup(chip);
}

static void xonar_d2_resume(struct oxygen *chip)
{
pcm1796_init(chip);
Expand Down Expand Up @@ -557,8 +572,8 @@ static const struct oxygen_model model_xonar_d2 = {
.init = xonar_d2_init,
.control_filter = xonar_d2_control_filter,
.mixer_init = xonar_d2_mixer_init,
.cleanup = xonar_cleanup,
.suspend = xonar_cleanup,
.cleanup = xonar_d2_cleanup,
.suspend = xonar_d2_suspend,
.resume = xonar_d2_resume,
.set_dac_params = set_pcm1796_params,
.set_adc_params = set_cs53x1_params,
Expand Down Expand Up @@ -591,7 +606,7 @@ static const struct oxygen_model model_xonar_d1 = {
.control_filter = xonar_d1_control_filter,
.mixer_init = xonar_d1_mixer_init,
.cleanup = xonar_d1_cleanup,
.suspend = xonar_d1_cleanup,
.suspend = xonar_d1_suspend,
.resume = xonar_d1_resume,
.set_dac_params = set_cs43xx_params,
.set_adc_params = set_cs53x1_params,
Expand Down

0 comments on commit b5cca7d

Please sign in to comment.