diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-02-21 04:12:25 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-02-21 04:13:59 -0500 |
commit | fdd48f9d1961d579ded4d820348af5f3f0f94463 (patch) | |
tree | 8aa4178d38aad0143b30a61a167ae657126f518d /sound/soc | |
parent | 38d78bafb98adb7b256ba24014471c5562ba4ee1 (diff) |
ASoC: wm8776: Add WM8775 device ID to the WM8776
The WM8775 is register compatible with the WM8776 so can be supported with
the same driver though it is an ADC only part. Add the device ID to the
WM8776 driver, further updates will be added in the future.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/codecs/wm8776.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm8776.c b/sound/soc/codecs/wm8776.c index 33e97d1d8f46..a19db5a0a17a 100644 --- a/sound/soc/codecs/wm8776.c +++ b/sound/soc/codecs/wm8776.c | |||
@@ -30,6 +30,11 @@ | |||
30 | 30 | ||
31 | #include "wm8776.h" | 31 | #include "wm8776.h" |
32 | 32 | ||
33 | enum wm8776_chip_type { | ||
34 | WM8775 = 1, | ||
35 | WM8776, | ||
36 | }; | ||
37 | |||
33 | /* codec private data */ | 38 | /* codec private data */ |
34 | struct wm8776_priv { | 39 | struct wm8776_priv { |
35 | enum snd_soc_control_type control_type; | 40 | enum snd_soc_control_type control_type; |
@@ -512,7 +517,8 @@ static __devexit int wm8776_i2c_remove(struct i2c_client *client) | |||
512 | } | 517 | } |
513 | 518 | ||
514 | static const struct i2c_device_id wm8776_i2c_id[] = { | 519 | static const struct i2c_device_id wm8776_i2c_id[] = { |
515 | { "wm8776", 0 }, | 520 | { "wm8775", WM8775 }, |
521 | { "wm8776", WM8776 }, | ||
516 | { } | 522 | { } |
517 | }; | 523 | }; |
518 | MODULE_DEVICE_TABLE(i2c, wm8776_i2c_id); | 524 | MODULE_DEVICE_TABLE(i2c, wm8776_i2c_id); |