Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 133180
b: refs/heads/master
c: d91b424
h: refs/heads/master
v: v3
  • Loading branch information
Clemens Ladisch authored and Takashi Iwai committed Feb 20, 2009
1 parent 1cd1ffc commit 898d5df
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1275d6f608abda23d101ada17dc39940192d4bc4
refs/heads/master: d91b424d6d7bda0773b6b6b606d48d089c4f5115
16 changes: 16 additions & 0 deletions trunk/sound/pci/oxygen/oxygen.c
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,12 @@ static void meridian_init(struct oxygen *chip)
ak5385_init(chip);
}

static void halo_init(struct oxygen *chip)
{
ak4396_init(chip);
ak5385_init(chip);
}

static void generic_cleanup(struct oxygen *chip)
{
}
Expand All @@ -211,6 +217,11 @@ static void meridian_resume(struct oxygen *chip)
ak4396_registers_init(chip);
}

static void halo_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 @@ -335,6 +346,11 @@ static int __devinit get_oxygen_model(struct oxygen *chip,
CAPTURE_0_FROM_I2S_2 |
CAPTURE_1_FROM_SPDIF;
break;
case MODEL_HALO:
chip->model.init = halo_init;
chip->model.resume = halo_resume;
chip->model.set_adc_params = set_ak5385_params;
break;
}
if (id->driver_data == MODEL_MERIDIAN ||
id->driver_data == MODEL_HALO) {
Expand Down

0 comments on commit 898d5df

Please sign in to comment.