diff options
Diffstat (limited to 'sound/soc/codecs/wm5100.c')
-rw-r--r-- | sound/soc/codecs/wm5100.c | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/sound/soc/codecs/wm5100.c b/sound/soc/codecs/wm5100.c index 7f567585832e..54397a508073 100644 --- a/sound/soc/codecs/wm5100.c +++ b/sound/soc/codecs/wm5100.c | |||
@@ -1233,7 +1233,7 @@ static const struct snd_soc_dapm_route wm5100_dapm_routes[] = { | |||
1233 | { "PWM2", NULL, "PWM2 Driver" }, | 1233 | { "PWM2", NULL, "PWM2 Driver" }, |
1234 | }; | 1234 | }; |
1235 | 1235 | ||
1236 | static const __devinitconst struct reg_default wm5100_reva_patches[] = { | 1236 | static const struct reg_default wm5100_reva_patches[] = { |
1237 | { WM5100_AUDIO_IF_1_10, 0 }, | 1237 | { WM5100_AUDIO_IF_1_10, 0 }, |
1238 | { WM5100_AUDIO_IF_1_11, 1 }, | 1238 | { WM5100_AUDIO_IF_1_11, 1 }, |
1239 | { WM5100_AUDIO_IF_1_12, 2 }, | 1239 | { WM5100_AUDIO_IF_1_12, 2 }, |
@@ -1279,15 +1279,9 @@ static int wm5100_set_fmt(struct snd_soc_dai *dai, unsigned int fmt) | |||
1279 | case SND_SOC_DAIFMT_DSP_A: | 1279 | case SND_SOC_DAIFMT_DSP_A: |
1280 | mask = 0; | 1280 | mask = 0; |
1281 | break; | 1281 | break; |
1282 | case SND_SOC_DAIFMT_DSP_B: | ||
1283 | mask = 1; | ||
1284 | break; | ||
1285 | case SND_SOC_DAIFMT_I2S: | 1282 | case SND_SOC_DAIFMT_I2S: |
1286 | mask = 2; | 1283 | mask = 2; |
1287 | break; | 1284 | break; |
1288 | case SND_SOC_DAIFMT_LEFT_J: | ||
1289 | mask = 3; | ||
1290 | break; | ||
1291 | default: | 1285 | default: |
1292 | dev_err(codec->dev, "Unsupported DAI format %d\n", | 1286 | dev_err(codec->dev, "Unsupported DAI format %d\n", |
1293 | fmt & SND_SOC_DAIFMT_FORMAT_MASK); | 1287 | fmt & SND_SOC_DAIFMT_FORMAT_MASK); |
@@ -2414,8 +2408,8 @@ static const unsigned int wm5100_mic_ctrl_reg[] = { | |||
2414 | WM5100_IN4L_CONTROL, | 2408 | WM5100_IN4L_CONTROL, |
2415 | }; | 2409 | }; |
2416 | 2410 | ||
2417 | static __devinit int wm5100_i2c_probe(struct i2c_client *i2c, | 2411 | static int wm5100_i2c_probe(struct i2c_client *i2c, |
2418 | const struct i2c_device_id *id) | 2412 | const struct i2c_device_id *id) |
2419 | { | 2413 | { |
2420 | struct wm5100_pdata *pdata = dev_get_platdata(&i2c->dev); | 2414 | struct wm5100_pdata *pdata = dev_get_platdata(&i2c->dev); |
2421 | struct wm5100_priv *wm5100; | 2415 | struct wm5100_priv *wm5100; |
@@ -2639,7 +2633,7 @@ err: | |||
2639 | return ret; | 2633 | return ret; |
2640 | } | 2634 | } |
2641 | 2635 | ||
2642 | static __devexit int wm5100_i2c_remove(struct i2c_client *i2c) | 2636 | static int wm5100_i2c_remove(struct i2c_client *i2c) |
2643 | { | 2637 | { |
2644 | struct wm5100_priv *wm5100 = i2c_get_clientdata(i2c); | 2638 | struct wm5100_priv *wm5100 = i2c_get_clientdata(i2c); |
2645 | 2639 | ||
@@ -2717,7 +2711,7 @@ static struct i2c_driver wm5100_i2c_driver = { | |||
2717 | .pm = &wm5100_pm, | 2711 | .pm = &wm5100_pm, |
2718 | }, | 2712 | }, |
2719 | .probe = wm5100_i2c_probe, | 2713 | .probe = wm5100_i2c_probe, |
2720 | .remove = __devexit_p(wm5100_i2c_remove), | 2714 | .remove = wm5100_i2c_remove, |
2721 | .id_table = wm5100_i2c_id, | 2715 | .id_table = wm5100_i2c_id, |
2722 | }; | 2716 | }; |
2723 | 2717 | ||