diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-01-21 13:30:55 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-01-21 13:30:55 -0500 |
commit | 477adb06bf1638a4f108d155431ec0dd1ff8ba88 (patch) | |
tree | a3c5d15f9a546eed34c585f0f2e78538e9ed1d4c | |
parent | c358e640a669b528b32af5442c92b856de623e1c (diff) | |
parent | 20a4e7fc7e213365ea3771d7bf1e10a6bab853be (diff) |
Merge branch 'for-2.6.38' into for-2.6.39
-rw-r--r-- | sound/soc/codecs/wm_hubs.c | 15 | ||||
-rw-r--r-- | sound/soc/davinci/davinci-evm.c | 2 |
2 files changed, 8 insertions, 9 deletions
diff --git a/sound/soc/codecs/wm_hubs.c b/sound/soc/codecs/wm_hubs.c index c466982eed23..613df5db0b32 100644 --- a/sound/soc/codecs/wm_hubs.c +++ b/sound/soc/codecs/wm_hubs.c | |||
@@ -91,6 +91,7 @@ static void wait_for_dc_servo(struct snd_soc_codec *codec, unsigned int op) | |||
91 | static void calibrate_dc_servo(struct snd_soc_codec *codec) | 91 | static void calibrate_dc_servo(struct snd_soc_codec *codec) |
92 | { | 92 | { |
93 | struct wm_hubs_data *hubs = snd_soc_codec_get_drvdata(codec); | 93 | struct wm_hubs_data *hubs = snd_soc_codec_get_drvdata(codec); |
94 | s8 offset; | ||
94 | u16 reg, reg_l, reg_r, dcs_cfg; | 95 | u16 reg, reg_l, reg_r, dcs_cfg; |
95 | 96 | ||
96 | /* If we're using a digital only path and have a previously | 97 | /* If we're using a digital only path and have a previously |
@@ -149,16 +150,14 @@ static void calibrate_dc_servo(struct snd_soc_codec *codec) | |||
149 | hubs->dcs_codes); | 150 | hubs->dcs_codes); |
150 | 151 | ||
151 | /* HPOUT1L */ | 152 | /* HPOUT1L */ |
152 | if (reg_l + hubs->dcs_codes > 0 && | 153 | offset = reg_l; |
153 | reg_l + hubs->dcs_codes < 0xff) | 154 | offset += hubs->dcs_codes; |
154 | reg_l += hubs->dcs_codes; | 155 | dcs_cfg = (u8)offset << WM8993_DCS_DAC_WR_VAL_1_SHIFT; |
155 | dcs_cfg = reg_l << WM8993_DCS_DAC_WR_VAL_1_SHIFT; | ||
156 | 156 | ||
157 | /* HPOUT1R */ | 157 | /* HPOUT1R */ |
158 | if (reg_r + hubs->dcs_codes > 0 && | 158 | offset = reg_r; |
159 | reg_r + hubs->dcs_codes < 0xff) | 159 | offset += hubs->dcs_codes; |
160 | reg_r += hubs->dcs_codes; | 160 | dcs_cfg |= (u8)offset; |
161 | dcs_cfg |= reg_r; | ||
162 | 161 | ||
163 | dev_dbg(codec->dev, "DCS result: %x\n", dcs_cfg); | 162 | dev_dbg(codec->dev, "DCS result: %x\n", dcs_cfg); |
164 | 163 | ||
diff --git a/sound/soc/davinci/davinci-evm.c b/sound/soc/davinci/davinci-evm.c index 0c2d6bacc681..b36f0b39b090 100644 --- a/sound/soc/davinci/davinci-evm.c +++ b/sound/soc/davinci/davinci-evm.c | |||
@@ -223,7 +223,7 @@ static struct snd_soc_dai_link da8xx_evm_dai = { | |||
223 | .stream_name = "AIC3X", | 223 | .stream_name = "AIC3X", |
224 | .cpu_dai_name= "davinci-mcasp.0", | 224 | .cpu_dai_name= "davinci-mcasp.0", |
225 | .codec_dai_name = "tlv320aic3x-hifi", | 225 | .codec_dai_name = "tlv320aic3x-hifi", |
226 | .codec_name = "tlv320aic3x-codec.0-001a", | 226 | .codec_name = "tlv320aic3x-codec.1-0018", |
227 | .platform_name = "davinci-pcm-audio", | 227 | .platform_name = "davinci-pcm-audio", |
228 | .init = evm_aic3x_init, | 228 | .init = evm_aic3x_init, |
229 | .ops = &evm_ops, | 229 | .ops = &evm_ops, |