diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2008-04-16 03:14:30 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2008-04-24 06:00:37 -0400 |
commit | e983532e446ac7fabe829d9e3aeff8e26b0a277d (patch) | |
tree | 455202378ea19eb64e80b5c764b05a23a97d5f96 /sound/pci/oxygen/oxygen.c | |
parent | 193e813814775b1b1574515fc6f11e61b29a54f7 (diff) |
[ALSA] oxygen: mute by default
Initialize the playback volume controls as being muted and having
minimal volume.
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/oxygen/oxygen.c')
-rw-r--r-- | sound/pci/oxygen/oxygen.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/pci/oxygen/oxygen.c b/sound/pci/oxygen/oxygen.c index 718169792c3b..636315612c32 100644 --- a/sound/pci/oxygen/oxygen.c +++ b/sound/pci/oxygen/oxygen.c | |||
@@ -112,7 +112,7 @@ static void ak4396_init(struct oxygen *chip) | |||
112 | struct generic_data *data = chip->model_data; | 112 | struct generic_data *data = chip->model_data; |
113 | unsigned int i; | 113 | unsigned int i; |
114 | 114 | ||
115 | data->ak4396_ctl2 = AK4396_DEM_OFF | AK4396_DFS_NORMAL; | 115 | data->ak4396_ctl2 = AK4396_SMUTE | AK4396_DEM_OFF | AK4396_DFS_NORMAL; |
116 | for (i = 0; i < 4; ++i) { | 116 | for (i = 0; i < 4; ++i) { |
117 | ak4396_write(chip, i, | 117 | ak4396_write(chip, i, |
118 | AK4396_CONTROL_1, AK4396_DIF_24_MSB | AK4396_RSTN); | 118 | AK4396_CONTROL_1, AK4396_DIF_24_MSB | AK4396_RSTN); |
@@ -120,8 +120,8 @@ static void ak4396_init(struct oxygen *chip) | |||
120 | AK4396_CONTROL_2, data->ak4396_ctl2); | 120 | AK4396_CONTROL_2, data->ak4396_ctl2); |
121 | ak4396_write(chip, i, | 121 | ak4396_write(chip, i, |
122 | AK4396_CONTROL_3, AK4396_PCM); | 122 | AK4396_CONTROL_3, AK4396_PCM); |
123 | ak4396_write(chip, i, AK4396_LCH_ATT, 0xff); | 123 | ak4396_write(chip, i, AK4396_LCH_ATT, 0); |
124 | ak4396_write(chip, i, AK4396_RCH_ATT, 0xff); | 124 | ak4396_write(chip, i, AK4396_RCH_ATT, 0); |
125 | } | 125 | } |
126 | snd_component_add(chip->card, "AK4396"); | 126 | snd_component_add(chip->card, "AK4396"); |
127 | } | 127 | } |