diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2011-01-10 10:11:32 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-01-10 10:46:28 -0500 |
commit | bc29e262c3062682c6099bd455ae8544916f723e (patch) | |
tree | cd56d7c8b3bec9e52c8b30af1357c943e850444d /sound/pci/oxygen/xonar_pcm179x.c | |
parent | c97e2dc48457642e2f1c6183b986549b7fa0113a (diff) |
ALSA: virtuoso: use headphone gain setting only on front DAC
Do not apply the headphone gain offset to any but the front DAC. These
DACs would not be used in headphone mode, so this saves a few register
writes.
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/oxygen/xonar_pcm179x.c')
-rw-r--r-- | sound/pci/oxygen/xonar_pcm179x.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/pci/oxygen/xonar_pcm179x.c b/sound/pci/oxygen/xonar_pcm179x.c index 2d0a634a7239..e15ecee2ccf7 100644 --- a/sound/pci/oxygen/xonar_pcm179x.c +++ b/sound/pci/oxygen/xonar_pcm179x.c | |||
@@ -319,6 +319,7 @@ static void pcm1796_registers_init(struct oxygen *chip) | |||
319 | pcm1796_write(chip, i, 20, | 319 | pcm1796_write(chip, i, 20, |
320 | data->pcm1796_regs[0][20 - PCM1796_REG_BASE]); | 320 | data->pcm1796_regs[0][20 - PCM1796_REG_BASE]); |
321 | pcm1796_write(chip, i, 21, 0); | 321 | pcm1796_write(chip, i, 21, 0); |
322 | gain_offset = 0; | ||
322 | } | 323 | } |
323 | } | 324 | } |
324 | 325 | ||
@@ -615,6 +616,7 @@ static void update_pcm1796_volume(struct oxygen *chip) | |||
615 | + gain_offset); | 616 | + gain_offset); |
616 | pcm1796_write_cached(chip, i, 17, chip->dac_volume[i * 2 + 1] | 617 | pcm1796_write_cached(chip, i, 17, chip->dac_volume[i * 2 + 1] |
617 | + gain_offset); | 618 | + gain_offset); |
619 | gain_offset = 0; | ||
618 | } | 620 | } |
619 | } | 621 | } |
620 | 622 | ||