diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-12-10 16:44:08 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-12-15 14:01:28 +0100 |
commit | 4f0189be3d0b2ba7f23b46295e4063fa3298aa74 (patch) | |
tree | 0421aa9680b4cf824cadb23aecdea164b3a7df26 /sound/pci/hda/hda_controller.c | |
parent | 17074c1a5f1bbbf352fe071b2947a498db42661f (diff) | |
download | op-kernel-dev-4f0189be3d0b2ba7f23b46295e4063fa3298aa74.zip op-kernel-dev-4f0189be3d0b2ba7f23b46295e4063fa3298aa74.tar.gz |
ALSA: hda - Clean up the code to check bdl_pos_adj option
Just a minor cleanup; instead of passing an array, pass the assigned
bdl_pos_adj option value directory in struct azx. Also split the code
to get the default bdl_pos_adj value for the change that will follow
after this.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/hda_controller.c')
-rw-r--r-- | sound/pci/hda/hda_controller.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/pci/hda/hda_controller.c b/sound/pci/hda/hda_controller.c index 22dbfa5..10c7707 100644 --- a/sound/pci/hda/hda_controller.c +++ b/sound/pci/hda/hda_controller.c @@ -1050,8 +1050,7 @@ int azx_bus_init(struct azx *chip, const char *model, if (chip->get_position[0] != azx_get_pos_lpib || chip->get_position[1] != azx_get_pos_lpib) bus->core.use_posbuf = true; - if (chip->bdl_pos_adj) - bus->core.bdl_pos_adj = chip->bdl_pos_adj[chip->dev_index]; + bus->core.bdl_pos_adj = chip->bdl_pos_adj; if (chip->driver_caps & AZX_DCAPS_CORBRP_SELF_CLEAR) bus->core.corbrp_self_clear = true; |