summaryrefslogtreecommitdiffstats
path: root/sound/pci/oxygen/xonar_dg.h
diff options
context:
space:
mode:
authorRoman Volkov <v1ron@mail.ru>2014-01-24 16:18:11 +0400
committerClemens Ladisch <clemens@ladisch.de>2014-01-29 20:45:48 +0100
commit1f91ecc14deea9461aca93273d78871ec4d98fcd (patch)
tree9d3c09e4a4c710d375d8ea16d168d45e14bc56ca /sound/pci/oxygen/xonar_dg.h
parentfddc106bc35ac2663f42c99bdf404c155a34b9a7 (diff)
downloadop-kernel-dev-1f91ecc14deea9461aca93273d78871ec4d98fcd.zip
op-kernel-dev-1f91ecc14deea9461aca93273d78871ec4d98fcd.tar.gz
ALSA: oxygen: modify adjust_dg_dac_routing function
When selecting the audio output destinations (headphones, FP headphones, multichannel output), the channel routing should be changed depending on what destination selected. Also unnecessary I2S channels are digitally muted. This function called when the user selects the destination in the ALSA mixer. Signed-off-by: Roman Volkov <v1ron@mail.ru> Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Diffstat (limited to 'sound/pci/oxygen/xonar_dg.h')
-rw-r--r--sound/pci/oxygen/xonar_dg.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/pci/oxygen/xonar_dg.h b/sound/pci/oxygen/xonar_dg.h
index 944685e..a9fba40 100644
--- a/sound/pci/oxygen/xonar_dg.h
+++ b/sound/pci/oxygen/xonar_dg.h
@@ -26,6 +26,8 @@ enum cs4245_shadow_operation {
struct dg {
/* shadow copy of the CS4245 register space */
unsigned char cs4245_shadow[17];
+ /* output select: headphone/speakers */
+ unsigned char pcm_output;
unsigned int output_sel;
s8 input_vol[4][2];
unsigned int input_sel;
OpenPOWER on IntegriCloud