diff options
author | Takashi Iwai <tiwai@suse.de> | 2007-10-10 04:06:46 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2007-10-16 10:51:09 -0400 |
commit | e6382cf8b0c34be26e667d45911fa827aea8df5c (patch) | |
tree | 720f8b951f73796befe13df87da85bd2f58ec115 | |
parent | 1194b5b70a0a000a4ace54d94d8df5cc3ec6e3e0 (diff) |
[ALSA] pcxhr - Fix dB level information
Some dB level information is wrong in pcxhr driver according to the
datasheet. Fixed now.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
-rw-r--r-- | sound/pci/pcxhr/pcxhr_mixer.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/pci/pcxhr/pcxhr_mixer.c b/sound/pci/pcxhr/pcxhr_mixer.c index b913453063f8..5f8d42633b04 100644 --- a/sound/pci/pcxhr/pcxhr_mixer.c +++ b/sound/pci/pcxhr/pcxhr_mixer.c | |||
@@ -44,8 +44,8 @@ | |||
44 | #define PCXHR_ANALOG_PLAYBACK_LEVEL_MAX 128 /* 0.0 dB */ | 44 | #define PCXHR_ANALOG_PLAYBACK_LEVEL_MAX 128 /* 0.0 dB */ |
45 | #define PCXHR_ANALOG_PLAYBACK_ZERO_LEVEL 104 /* -24.0 dB ( 0.0 dB - fix level +24.0 dB ) */ | 45 | #define PCXHR_ANALOG_PLAYBACK_ZERO_LEVEL 104 /* -24.0 dB ( 0.0 dB - fix level +24.0 dB ) */ |
46 | 46 | ||
47 | static const DECLARE_TLV_DB_SCALE(db_scale_analog_capture, -9600, 50, 0); | 47 | static const DECLARE_TLV_DB_SCALE(db_scale_analog_capture, -9600, 50, 3150); |
48 | static const DECLARE_TLV_DB_SCALE(db_scale_analog_playback, -12800, 100, 0); | 48 | static const DECLARE_TLV_DB_SCALE(db_scale_analog_playback, -10400, 100, 2400); |
49 | 49 | ||
50 | static int pcxhr_update_analog_audio_level(struct snd_pcxhr *chip, int is_capture, int channel) | 50 | static int pcxhr_update_analog_audio_level(struct snd_pcxhr *chip, int is_capture, int channel) |
51 | { | 51 | { |
@@ -188,7 +188,7 @@ static struct snd_kcontrol_new pcxhr_control_output_switch = { | |||
188 | #define PCXHR_DIGITAL_LEVEL_MAX 0x1ff /* +18 dB */ | 188 | #define PCXHR_DIGITAL_LEVEL_MAX 0x1ff /* +18 dB */ |
189 | #define PCXHR_DIGITAL_ZERO_LEVEL 0x1b7 /* 0 dB */ | 189 | #define PCXHR_DIGITAL_ZERO_LEVEL 0x1b7 /* 0 dB */ |
190 | 190 | ||
191 | static const DECLARE_TLV_DB_SCALE(db_scale_digital, -10950, 50, 0); | 191 | static const DECLARE_TLV_DB_SCALE(db_scale_digital, -10975, 25, 1800); |
192 | 192 | ||
193 | #define MORE_THAN_ONE_STREAM_LEVEL 0x000001 | 193 | #define MORE_THAN_ONE_STREAM_LEVEL 0x000001 |
194 | #define VALID_STREAM_PAN_LEVEL_MASK 0x800000 | 194 | #define VALID_STREAM_PAN_LEVEL_MASK 0x800000 |