aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2008-06-23 09:51:29 -0400
committerJaroslav Kysela <perex@perex.cz>2008-06-26 03:02:05 -0400
commita5c95e90c1baa9c1114875264bbd283526eb8377 (patch)
tree6de6ac17bd6e66548867db6f901605ca7192c65d /sound/soc/codecs
parent796d2ca84859d1fdb11ff06cd9707ffab5642fca (diff)
ALSA: ASoC: Replace custom debug macros with pr_ equivalents
Several ASoC codec drivers use custom macros equivalent to the standard pr_ macros, most of which are not actually used. Replace these custom macros with the standard ones. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'sound/soc/codecs')
-rw-r--r--sound/soc/codecs/wm8510.c25
-rw-r--r--sound/soc/codecs/wm8731.c25
-rw-r--r--sound/soc/codecs/wm8750.c25
-rw-r--r--sound/soc/codecs/wm8753.c25
-rw-r--r--sound/soc/codecs/wm8990.c25
5 files changed, 15 insertions, 110 deletions
diff --git a/sound/soc/codecs/wm8510.c b/sound/soc/codecs/wm8510.c
index 152e6f21154f..b549f6753aba 100644
--- a/sound/soc/codecs/wm8510.c
+++ b/sound/soc/codecs/wm8510.c
@@ -30,25 +30,6 @@
30#define AUDIO_NAME "wm8510" 30#define AUDIO_NAME "wm8510"
31#define WM8510_VERSION "0.6" 31#define WM8510_VERSION "0.6"
32 32
33/*
34 * Debug
35 */
36
37#define WM8510_DEBUG 0
38
39#ifdef WM8510_DEBUG
40#define dbg(format, arg...) \
41 printk(KERN_DEBUG AUDIO_NAME ": " format "\n" , ## arg)
42#else
43#define dbg(format, arg...) do {} while (0)
44#endif
45#define err(format, arg...) \
46 printk(KERN_ERR AUDIO_NAME ": " format "\n" , ## arg)
47#define info(format, arg...) \
48 printk(KERN_INFO AUDIO_NAME ": " format "\n" , ## arg)
49#define warn(format, arg...) \
50 printk(KERN_WARNING AUDIO_NAME ": " format "\n" , ## arg)
51
52struct snd_soc_codec_device soc_codec_dev_wm8510; 33struct snd_soc_codec_device soc_codec_dev_wm8510;
53 34
54/* 35/*
@@ -721,13 +702,13 @@ static int wm8510_codec_probe(struct i2c_adapter *adap, int addr, int kind)
721 702
722 ret = i2c_attach_client(i2c); 703 ret = i2c_attach_client(i2c);
723 if (ret < 0) { 704 if (ret < 0) {
724 err("failed to attach codec at addr %x\n", addr); 705 pr_err("failed to attach codec at addr %x\n", addr);
725 goto err; 706 goto err;
726 } 707 }
727 708
728 ret = wm8510_init(socdev); 709 ret = wm8510_init(socdev);
729 if (ret < 0) { 710 if (ret < 0) {
730 err("failed to initialise WM8510\n"); 711 pr_err("failed to initialise WM8510\n");
731 goto err; 712 goto err;
732 } 713 }
733 return ret; 714 return ret;
@@ -777,7 +758,7 @@ static int wm8510_probe(struct platform_device *pdev)
777 struct snd_soc_codec *codec; 758 struct snd_soc_codec *codec;
778 int ret = 0; 759 int ret = 0;
779 760
780 info("WM8510 Audio Codec %s", WM8510_VERSION); 761 pr_info("WM8510 Audio Codec %s", WM8510_VERSION);
781 762
782 setup = socdev->codec_data; 763 setup = socdev->codec_data;
783 codec = kzalloc(sizeof(struct snd_soc_codec), GFP_KERNEL); 764 codec = kzalloc(sizeof(struct snd_soc_codec), GFP_KERNEL);
diff --git a/sound/soc/codecs/wm8731.c b/sound/soc/codecs/wm8731.c
index 77880537a3cd..3ff42ad65ede 100644
--- a/sound/soc/codecs/wm8731.c
+++ b/sound/soc/codecs/wm8731.c
@@ -31,25 +31,6 @@
31#define AUDIO_NAME "wm8731" 31#define AUDIO_NAME "wm8731"
32#define WM8731_VERSION "0.13" 32#define WM8731_VERSION "0.13"
33 33
34/*
35 * Debug
36 */
37
38#define WM8731_DEBUG 0
39
40#ifdef WM8731_DEBUG
41#define dbg(format, arg...) \
42 printk(KERN_DEBUG AUDIO_NAME ": " format "\n" , ## arg)
43#else
44#define dbg(format, arg...) do {} while (0)
45#endif
46#define err(format, arg...) \
47 printk(KERN_ERR AUDIO_NAME ": " format "\n" , ## arg)
48#define info(format, arg...) \
49 printk(KERN_INFO AUDIO_NAME ": " format "\n" , ## arg)
50#define warn(format, arg...) \
51 printk(KERN_WARNING AUDIO_NAME ": " format "\n" , ## arg)
52
53struct snd_soc_codec_device soc_codec_dev_wm8731; 34struct snd_soc_codec_device soc_codec_dev_wm8731;
54 35
55/* codec private data */ 36/* codec private data */
@@ -624,13 +605,13 @@ static int wm8731_codec_probe(struct i2c_adapter *adap, int addr, int kind)
624 605
625 ret = i2c_attach_client(i2c); 606 ret = i2c_attach_client(i2c);
626 if (ret < 0) { 607 if (ret < 0) {
627 err("failed to attach codec at addr %x\n", addr); 608 pr_err("failed to attach codec at addr %x\n", addr);
628 goto err; 609 goto err;
629 } 610 }
630 611
631 ret = wm8731_init(socdev); 612 ret = wm8731_init(socdev);
632 if (ret < 0) { 613 if (ret < 0) {
633 err("failed to initialise WM8731\n"); 614 pr_err("failed to initialise WM8731\n");
634 goto err; 615 goto err;
635 } 616 }
636 return ret; 617 return ret;
@@ -681,7 +662,7 @@ static int wm8731_probe(struct platform_device *pdev)
681 struct wm8731_priv *wm8731; 662 struct wm8731_priv *wm8731;
682 int ret = 0; 663 int ret = 0;
683 664
684 info("WM8731 Audio Codec %s", WM8731_VERSION); 665 pr_info("WM8731 Audio Codec %s", WM8731_VERSION);
685 666
686 setup = socdev->codec_data; 667 setup = socdev->codec_data;
687 codec = kzalloc(sizeof(struct snd_soc_codec), GFP_KERNEL); 668 codec = kzalloc(sizeof(struct snd_soc_codec), GFP_KERNEL);
diff --git a/sound/soc/codecs/wm8750.c b/sound/soc/codecs/wm8750.c
index 1ae670a98c5c..eb460c9aa63e 100644
--- a/sound/soc/codecs/wm8750.c
+++ b/sound/soc/codecs/wm8750.c
@@ -31,25 +31,6 @@
31#define AUDIO_NAME "WM8750" 31#define AUDIO_NAME "WM8750"
32#define WM8750_VERSION "0.12" 32#define WM8750_VERSION "0.12"
33 33
34/*
35 * Debug
36 */
37
38#define WM8750_DEBUG 0
39
40#ifdef WM8750_DEBUG
41#define dbg(format, arg...) \
42 printk(KERN_DEBUG AUDIO_NAME ": " format "\n" , ## arg)
43#else
44#define dbg(format, arg...) do {} while (0)
45#endif
46#define err(format, arg...) \
47 printk(KERN_ERR AUDIO_NAME ": " format "\n" , ## arg)
48#define info(format, arg...) \
49 printk(KERN_INFO AUDIO_NAME ": " format "\n" , ## arg)
50#define warn(format, arg...) \
51 printk(KERN_WARNING AUDIO_NAME ": " format "\n" , ## arg)
52
53/* codec private data */ 34/* codec private data */
54struct wm8750_priv { 35struct wm8750_priv {
55 unsigned int sysclk; 36 unsigned int sysclk;
@@ -896,13 +877,13 @@ static int wm8750_codec_probe(struct i2c_adapter *adap, int addr, int kind)
896 877
897 ret = i2c_attach_client(i2c); 878 ret = i2c_attach_client(i2c);
898 if (ret < 0) { 879 if (ret < 0) {
899 err("failed to attach codec at addr %x\n", addr); 880 pr_err("failed to attach codec at addr %x\n", addr);
900 goto err; 881 goto err;
901 } 882 }
902 883
903 ret = wm8750_init(socdev); 884 ret = wm8750_init(socdev);
904 if (ret < 0) { 885 if (ret < 0) {
905 err("failed to initialise WM8750\n"); 886 pr_err("failed to initialise WM8750\n");
906 goto err; 887 goto err;
907 } 888 }
908 return ret; 889 return ret;
@@ -953,7 +934,7 @@ static int wm8750_probe(struct platform_device *pdev)
953 struct wm8750_priv *wm8750; 934 struct wm8750_priv *wm8750;
954 int ret = 0; 935 int ret = 0;
955 936
956 info("WM8750 Audio Codec %s", WM8750_VERSION); 937 pr_info("WM8750 Audio Codec %s", WM8750_VERSION);
957 codec = kzalloc(sizeof(struct snd_soc_codec), GFP_KERNEL); 938 codec = kzalloc(sizeof(struct snd_soc_codec), GFP_KERNEL);
958 if (codec == NULL) 939 if (codec == NULL)
959 return -ENOMEM; 940 return -ENOMEM;
diff --git a/sound/soc/codecs/wm8753.c b/sound/soc/codecs/wm8753.c
index 00b481183d45..be01a738f184 100644
--- a/sound/soc/codecs/wm8753.c
+++ b/sound/soc/codecs/wm8753.c
@@ -55,25 +55,6 @@
55#define AUDIO_NAME "wm8753" 55#define AUDIO_NAME "wm8753"
56#define WM8753_VERSION "0.16" 56#define WM8753_VERSION "0.16"
57 57
58/*
59 * Debug
60 */
61
62#define WM8753_DEBUG 0
63
64#ifdef WM8753_DEBUG
65#define dbg(format, arg...) \
66 printk(KERN_DEBUG AUDIO_NAME ": " format "\n" , ## arg)
67#else
68#define dbg(format, arg...) do {} while (0)
69#endif
70#define err(format, arg...) \
71 printk(KERN_ERR AUDIO_NAME ": " format "\n" , ## arg)
72#define info(format, arg...) \
73 printk(KERN_INFO AUDIO_NAME ": " format "\n" , ## arg)
74#define warn(format, arg...) \
75 printk(KERN_WARNING AUDIO_NAME ": " format "\n" , ## arg)
76
77static int caps_charge = 2000; 58static int caps_charge = 2000;
78module_param(caps_charge, int, 0); 59module_param(caps_charge, int, 0);
79MODULE_PARM_DESC(caps_charge, "WM8753 cap charge time (msecs)"); 60MODULE_PARM_DESC(caps_charge, "WM8753 cap charge time (msecs)");
@@ -1689,13 +1670,13 @@ static int wm8753_codec_probe(struct i2c_adapter *adap, int addr, int kind)
1689 1670
1690 ret = i2c_attach_client(i2c); 1671 ret = i2c_attach_client(i2c);
1691 if (ret < 0) { 1672 if (ret < 0) {
1692 err("failed to attach codec at addr %x\n", addr); 1673 pr_err("failed to attach codec at addr %x\n", addr);
1693 goto err; 1674 goto err;
1694 } 1675 }
1695 1676
1696 ret = wm8753_init(socdev); 1677 ret = wm8753_init(socdev);
1697 if (ret < 0) { 1678 if (ret < 0) {
1698 err("failed to initialise WM8753\n"); 1679 pr_err("failed to initialise WM8753\n");
1699 goto err; 1680 goto err;
1700 } 1681 }
1701 1682
@@ -1747,7 +1728,7 @@ static int wm8753_probe(struct platform_device *pdev)
1747 struct wm8753_priv *wm8753; 1728 struct wm8753_priv *wm8753;
1748 int ret = 0; 1729 int ret = 0;
1749 1730
1750 info("WM8753 Audio Codec %s", WM8753_VERSION); 1731 pr_info("WM8753 Audio Codec %s", WM8753_VERSION);
1751 1732
1752 setup = socdev->codec_data; 1733 setup = socdev->codec_data;
1753 codec = kzalloc(sizeof(struct snd_soc_codec), GFP_KERNEL); 1734 codec = kzalloc(sizeof(struct snd_soc_codec), GFP_KERNEL);
diff --git a/sound/soc/codecs/wm8990.c b/sound/soc/codecs/wm8990.c
index a7d25e2f2522..a1371b73ba7d 100644
--- a/sound/soc/codecs/wm8990.c
+++ b/sound/soc/codecs/wm8990.c
@@ -33,25 +33,6 @@
33#define AUDIO_NAME "wm8990" 33#define AUDIO_NAME "wm8990"
34#define WM8990_VERSION "0.2" 34#define WM8990_VERSION "0.2"
35 35
36/*
37 * Debug
38 */
39
40#define WM8990_DEBUG 0
41
42#ifdef WM8990_DEBUG
43#define dbg(format, arg...) \
44 printk(KERN_DEBUG AUDIO_NAME ": " format "\n" , ## arg)
45#else
46#define dbg(format, arg...) do {} while (0)
47#endif
48#define err(format, arg...) \
49 printk(KERN_ERR AUDIO_NAME ": " format "\n" , ## arg)
50#define info(format, arg...) \
51 printk(KERN_INFO AUDIO_NAME ": " format "\n" , ## arg)
52#define warn(format, arg...) \
53 printk(KERN_WARNING AUDIO_NAME ": " format "\n" , ## arg)
54
55/* codec private data */ 36/* codec private data */
56struct wm8990_priv { 37struct wm8990_priv {
57 unsigned int sysclk; 38 unsigned int sysclk;
@@ -1524,13 +1505,13 @@ static int wm8990_codec_probe(struct i2c_adapter *adap, int addr, int kind)
1524 1505
1525 ret = i2c_attach_client(i2c); 1506 ret = i2c_attach_client(i2c);
1526 if (ret < 0) { 1507 if (ret < 0) {
1527 err("failed to attach codec at addr %x\n", addr); 1508 pr_err("failed to attach codec at addr %x\n", addr);
1528 goto err; 1509 goto err;
1529 } 1510 }
1530 1511
1531 ret = wm8990_init(socdev); 1512 ret = wm8990_init(socdev);
1532 if (ret < 0) { 1513 if (ret < 0) {
1533 err("failed to initialise WM8990\n"); 1514 pr_err("failed to initialise WM8990\n");
1534 goto err; 1515 goto err;
1535 } 1516 }
1536 return ret; 1517 return ret;
@@ -1579,7 +1560,7 @@ static int wm8990_probe(struct platform_device *pdev)
1579 struct wm8990_priv *wm8990; 1560 struct wm8990_priv *wm8990;
1580 int ret = 0; 1561 int ret = 0;
1581 1562
1582 info("WM8990 Audio Codec %s\n", WM8990_VERSION); 1563 pr_info("WM8990 Audio Codec %s\n", WM8990_VERSION);
1583 1564
1584 setup = socdev->codec_data; 1565 setup = socdev->codec_data;
1585 codec = kzalloc(sizeof(struct snd_soc_codec), GFP_KERNEL); 1566 codec = kzalloc(sizeof(struct snd_soc_codec), GFP_KERNEL);