* [PATCH 1/3] ASoC: codec: Add WM8987 device id to WM8750 driver
@ 2010-07-03 0:46 Maurus Cuelenaere
2010-07-04 8:59 ` Mark Brown
0 siblings, 1 reply; 4+ messages in thread
From: Maurus Cuelenaere @ 2010-07-03 0:46 UTC (permalink / raw)
To: alsa-devel; +Cc: Takashi Iwai, Mark Brown, Liam Girdwood
The WM8987 codec is register compatible with the WM8750, so just add it to the
SPI and I²C device table.
Signed-off-by: Maurus Cuelenaere <mcuelenaere@gmail.com>
---
sound/soc/codecs/wm8750.c | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/sound/soc/codecs/wm8750.c b/sound/soc/codecs/wm8750.c
index 9407e19..e2c05e3 100644
--- a/sound/soc/codecs/wm8750.c
+++ b/sound/soc/codecs/wm8750.c
@@ -884,6 +884,7 @@ static int wm8750_i2c_remove(struct i2c_client *client)
static const struct i2c_device_id wm8750_i2c_id[] = {
{ "wm8750", 0 },
+ { "wm8987", 0 }, /* WM8987 is register compatible with WM8750 */
{ }
};
MODULE_DEVICE_TABLE(i2c, wm8750_i2c_id);
@@ -925,14 +926,22 @@ static int __devexit wm8750_spi_remove(struct spi_device *spi)
return 0;
}
+static const struct spi_device_id wm8750_spi_id[] = {
+ { "wm8750", 0 },
+ { "wm8987", 0 },
+ { }
+};
+MODULE_DEVICE_TABLE(spi, wm8750_spi_id);
+
static struct spi_driver wm8750_spi_driver = {
.driver = {
- .name = "wm8750",
+ .name = "WM8750 SPI Codec",
.bus = &spi_bus_type,
.owner = THIS_MODULE,
},
.probe = wm8750_spi_probe,
.remove = __devexit_p(wm8750_spi_remove),
+ .id_table = wm8750_spi_id,
};
#endif
--
1.7.0.4
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/3] ASoC: codec: Add WM8987 device id to WM8750 driver
2010-07-03 0:46 [PATCH 1/3] ASoC: codec: Add WM8987 device id to WM8750 driver Maurus Cuelenaere
@ 2010-07-04 8:59 ` Mark Brown
2010-07-04 9:16 ` Maurus Cuelenaere
0 siblings, 1 reply; 4+ messages in thread
From: Mark Brown @ 2010-07-04 8:59 UTC (permalink / raw)
To: Maurus Cuelenaere; +Cc: Takashi Iwai, alsa-devel, Liam Girdwood
On Sat, Jul 03, 2010 at 02:46:10AM +0200, Maurus Cuelenaere wrote:
> The WM8987 codec is register compatible with the WM8750, so just add it to the
> SPI and I²C device table.
> Signed-off-by: Maurus Cuelenaere <mcuelenaere@gmail.com>
Applied, thanks. Though...
> .driver = {
> - .name = "wm8750",
> + .name = "WM8750 SPI Codec",
...that naming isn't going to look pretty in kernel logs with dev_()
print statements.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/3] ASoC: codec: Add WM8987 device id to WM8750 driver
2010-07-04 8:59 ` Mark Brown
@ 2010-07-04 9:16 ` Maurus Cuelenaere
2010-07-04 9:44 ` Mark Brown
0 siblings, 1 reply; 4+ messages in thread
From: Maurus Cuelenaere @ 2010-07-04 9:16 UTC (permalink / raw)
To: Mark Brown; +Cc: Takashi Iwai, alsa-devel, Liam Girdwood
Op 04-07-10 10:59, Mark Brown schreef:
> On Sat, Jul 03, 2010 at 02:46:10AM +0200, Maurus Cuelenaere wrote:
>> The WM8987 codec is register compatible with the WM8750, so just add it to the
>> SPI and I²C device table.
>> Signed-off-by: Maurus Cuelenaere <mcuelenaere@gmail.com>
> Applied, thanks. Though...
>
>> .driver = {
>> - .name = "wm8750",
>> + .name = "WM8750 SPI Codec",
> ...that naming isn't going to look pretty in kernel logs with dev_()
> print statements.
It's the same as how the I²C driver is named, so I guess that has the same problem then.
--
Maurus Cuelenaere
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/3] ASoC: codec: Add WM8987 device id to WM8750 driver
2010-07-04 9:16 ` Maurus Cuelenaere
@ 2010-07-04 9:44 ` Mark Brown
0 siblings, 0 replies; 4+ messages in thread
From: Mark Brown @ 2010-07-04 9:44 UTC (permalink / raw)
To: Maurus Cuelenaere; +Cc: Takashi Iwai, alsa-devel, Liam Girdwood
On Sun, Jul 04, 2010 at 11:16:32AM +0200, Maurus Cuelenaere wrote:
[Please fix your MUA to word wrap.]
> It's the same as how the I²C driver is named, so I guess that has the
> same problem then.
Yes, several of the older drivers do have this problem.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-07-04 18:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-03 0:46 [PATCH 1/3] ASoC: codec: Add WM8987 device id to WM8750 driver Maurus Cuelenaere
2010-07-04 8:59 ` Mark Brown
2010-07-04 9:16 ` Maurus Cuelenaere
2010-07-04 9:44 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).