diff options
Diffstat (limited to 'sound/i2c')
-rw-r--r-- | sound/i2c/Makefile | 6 | ||||
-rw-r--r-- | sound/i2c/cs8427.c | 10 | ||||
-rw-r--r-- | sound/i2c/i2c.c | 4 | ||||
-rw-r--r-- | sound/i2c/other/Makefile | 2 | ||||
-rw-r--r-- | sound/i2c/other/ak4114.c | 14 | ||||
-rw-r--r-- | sound/i2c/other/ak4117.c | 14 | ||||
-rw-r--r-- | sound/i2c/other/ak4xxx-adda.c | 14 | ||||
-rw-r--r-- | sound/i2c/other/pt2258.c | 10 | ||||
-rw-r--r-- | sound/i2c/other/tea575x-tuner.c | 4 | ||||
-rw-r--r-- | sound/i2c/tea6330t.c | 14 |
10 files changed, 28 insertions, 64 deletions
diff --git a/sound/i2c/Makefile b/sound/i2c/Makefile index 45902d48c89c..37970666a453 100644 --- a/sound/i2c/Makefile +++ b/sound/i2c/Makefile | |||
@@ -1,15 +1,13 @@ | |||
1 | # | 1 | # |
2 | # Makefile for ALSA | 2 | # Makefile for ALSA |
3 | # Copyright (c) 2001 by Jaroslav Kysela <perex@suse.cz> | 3 | # Copyright (c) 2001 by Jaroslav Kysela <perex@perex.cz> |
4 | # | 4 | # |
5 | 5 | ||
6 | snd-i2c-objs := i2c.o | 6 | snd-i2c-objs := i2c.o |
7 | snd-cs8427-objs := cs8427.o | 7 | snd-cs8427-objs := cs8427.o |
8 | snd-tea6330t-objs := tea6330t.o | 8 | snd-tea6330t-objs := tea6330t.o |
9 | 9 | ||
10 | ifeq ($(subst m,y,$(CONFIG_L3)),y) | 10 | obj-$(CONFIG_L3) += l3/ |
11 | obj-$(CONFIG_L3) += l3/ | ||
12 | endif | ||
13 | 11 | ||
14 | obj-$(CONFIG_SND) += other/ | 12 | obj-$(CONFIG_SND) += other/ |
15 | 13 | ||
diff --git a/sound/i2c/cs8427.c b/sound/i2c/cs8427.c index 64388cb8d6e5..744366b72345 100644 --- a/sound/i2c/cs8427.c +++ b/sound/i2c/cs8427.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * Routines for control of the CS8427 via i2c bus | 2 | * Routines for control of the CS8427 via i2c bus |
3 | * IEC958 (S/PDIF) receiver & transmitter by Cirrus Logic | 3 | * IEC958 (S/PDIF) receiver & transmitter by Cirrus Logic |
4 | * Copyright (c) by Jaroslav Kysela <perex@suse.cz> | 4 | * Copyright (c) by Jaroslav Kysela <perex@perex.cz> |
5 | * | 5 | * |
6 | * | 6 | * |
7 | * This program is free software; you can redistribute it and/or modify | 7 | * This program is free software; you can redistribute it and/or modify |
@@ -32,7 +32,7 @@ | |||
32 | 32 | ||
33 | static void snd_cs8427_reset(struct snd_i2c_device *cs8427); | 33 | static void snd_cs8427_reset(struct snd_i2c_device *cs8427); |
34 | 34 | ||
35 | MODULE_AUTHOR("Jaroslav Kysela <perex@suse.cz>"); | 35 | MODULE_AUTHOR("Jaroslav Kysela <perex@perex.cz>"); |
36 | MODULE_DESCRIPTION("IEC958 (S/PDIF) receiver & transmitter by Cirrus Logic"); | 36 | MODULE_DESCRIPTION("IEC958 (S/PDIF) receiver & transmitter by Cirrus Logic"); |
37 | MODULE_LICENSE("GPL"); | 37 | MODULE_LICENSE("GPL"); |
38 | 38 | ||
@@ -229,6 +229,12 @@ int snd_cs8427_create(struct snd_i2c_bus *bus, | |||
229 | snd_i2c_lock(bus); | 229 | snd_i2c_lock(bus); |
230 | err = snd_cs8427_reg_read(device, CS8427_REG_ID_AND_VER); | 230 | err = snd_cs8427_reg_read(device, CS8427_REG_ID_AND_VER); |
231 | if (err != CS8427_VER8427A) { | 231 | if (err != CS8427_VER8427A) { |
232 | /* give second chance */ | ||
233 | snd_printk(KERN_WARNING "invalid CS8427 signature 0x%x: " | ||
234 | "let me try again...\n", err); | ||
235 | err = snd_cs8427_reg_read(device, CS8427_REG_ID_AND_VER); | ||
236 | } | ||
237 | if (err != CS8427_VER8427A) { | ||
232 | snd_i2c_unlock(bus); | 238 | snd_i2c_unlock(bus); |
233 | snd_printk(KERN_ERR "unable to find CS8427 signature " | 239 | snd_printk(KERN_ERR "unable to find CS8427 signature " |
234 | "(expected 0x%x, read 0x%x),\n", | 240 | "(expected 0x%x, read 0x%x),\n", |
diff --git a/sound/i2c/i2c.c b/sound/i2c/i2c.c index b60fb1892828..1e58a963b2a7 100644 --- a/sound/i2c/i2c.c +++ b/sound/i2c/i2c.c | |||
@@ -2,7 +2,7 @@ | |||
2 | * Generic i2c interface for ALSA | 2 | * Generic i2c interface for ALSA |
3 | * | 3 | * |
4 | * (c) 1998 Gerd Knorr <kraxel@cs.tu-berlin.de> | 4 | * (c) 1998 Gerd Knorr <kraxel@cs.tu-berlin.de> |
5 | * Modified for the ALSA driver by Jaroslav Kysela <perex@suse.cz> | 5 | * Modified for the ALSA driver by Jaroslav Kysela <perex@perex.cz> |
6 | * | 6 | * |
7 | * This program is free software; you can redistribute it and/or modify | 7 | * This program is free software; you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by | 8 | * it under the terms of the GNU General Public License as published by |
@@ -28,7 +28,7 @@ | |||
28 | #include <sound/core.h> | 28 | #include <sound/core.h> |
29 | #include <sound/i2c.h> | 29 | #include <sound/i2c.h> |
30 | 30 | ||
31 | MODULE_AUTHOR("Jaroslav Kysela <perex@suse.cz>"); | 31 | MODULE_AUTHOR("Jaroslav Kysela <perex@perex.cz>"); |
32 | MODULE_DESCRIPTION("Generic i2c interface for ALSA"); | 32 | MODULE_DESCRIPTION("Generic i2c interface for ALSA"); |
33 | MODULE_LICENSE("GPL"); | 33 | MODULE_LICENSE("GPL"); |
34 | 34 | ||
diff --git a/sound/i2c/other/Makefile b/sound/i2c/other/Makefile index 77a8a7c75dd9..703d954238f4 100644 --- a/sound/i2c/other/Makefile +++ b/sound/i2c/other/Makefile | |||
@@ -1,6 +1,6 @@ | |||
1 | # | 1 | # |
2 | # Makefile for ALSA | 2 | # Makefile for ALSA |
3 | # Copyright (c) 2003 by Jaroslav Kysela <perex@suse.cz> | 3 | # Copyright (c) 2003 by Jaroslav Kysela <perex@perex.cz> |
4 | # | 4 | # |
5 | 5 | ||
6 | snd-ak4114-objs := ak4114.o | 6 | snd-ak4114-objs := ak4114.o |
diff --git a/sound/i2c/other/ak4114.c b/sound/i2c/other/ak4114.c index 1efb973137a6..facde46f957a 100644 --- a/sound/i2c/other/ak4114.c +++ b/sound/i2c/other/ak4114.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * Routines for control of the AK4114 via I2C and 4-wire serial interface | 2 | * Routines for control of the AK4114 via I2C and 4-wire serial interface |
3 | * IEC958 (S/PDIF) receiver by Asahi Kasei | 3 | * IEC958 (S/PDIF) receiver by Asahi Kasei |
4 | * Copyright (c) by Jaroslav Kysela <perex@suse.cz> | 4 | * Copyright (c) by Jaroslav Kysela <perex@perex.cz> |
5 | * | 5 | * |
6 | * | 6 | * |
7 | * This program is free software; you can redistribute it and/or modify | 7 | * This program is free software; you can redistribute it and/or modify |
@@ -29,7 +29,7 @@ | |||
29 | #include <sound/ak4114.h> | 29 | #include <sound/ak4114.h> |
30 | #include <sound/asoundef.h> | 30 | #include <sound/asoundef.h> |
31 | 31 | ||
32 | MODULE_AUTHOR("Jaroslav Kysela <perex@suse.cz>"); | 32 | MODULE_AUTHOR("Jaroslav Kysela <perex@perex.cz>"); |
33 | MODULE_DESCRIPTION("AK4114 IEC958 (S/PDIF) receiver by Asahi Kasei"); | 33 | MODULE_DESCRIPTION("AK4114 IEC958 (S/PDIF) receiver by Asahi Kasei"); |
34 | MODULE_LICENSE("GPL"); | 34 | MODULE_LICENSE("GPL"); |
35 | 35 | ||
@@ -200,15 +200,7 @@ static int snd_ak4114_in_error_get(struct snd_kcontrol *kcontrol, | |||
200 | return 0; | 200 | return 0; |
201 | } | 201 | } |
202 | 202 | ||
203 | static int snd_ak4114_in_bit_info(struct snd_kcontrol *kcontrol, | 203 | #define snd_ak4114_in_bit_info snd_ctl_boolean_mono_info |
204 | struct snd_ctl_elem_info *uinfo) | ||
205 | { | ||
206 | uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN; | ||
207 | uinfo->count = 1; | ||
208 | uinfo->value.integer.min = 0; | ||
209 | uinfo->value.integer.max = 1; | ||
210 | return 0; | ||
211 | } | ||
212 | 204 | ||
213 | static int snd_ak4114_in_bit_get(struct snd_kcontrol *kcontrol, | 205 | static int snd_ak4114_in_bit_get(struct snd_kcontrol *kcontrol, |
214 | struct snd_ctl_elem_value *ucontrol) | 206 | struct snd_ctl_elem_value *ucontrol) |
diff --git a/sound/i2c/other/ak4117.c b/sound/i2c/other/ak4117.c index c022f29da2f7..ee1585aec99b 100644 --- a/sound/i2c/other/ak4117.c +++ b/sound/i2c/other/ak4117.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * Routines for control of the AK4117 via 4-wire serial interface | 2 | * Routines for control of the AK4117 via 4-wire serial interface |
3 | * IEC958 (S/PDIF) receiver by Asahi Kasei | 3 | * IEC958 (S/PDIF) receiver by Asahi Kasei |
4 | * Copyright (c) by Jaroslav Kysela <perex@suse.cz> | 4 | * Copyright (c) by Jaroslav Kysela <perex@perex.cz> |
5 | * | 5 | * |
6 | * | 6 | * |
7 | * This program is free software; you can redistribute it and/or modify | 7 | * This program is free software; you can redistribute it and/or modify |
@@ -29,7 +29,7 @@ | |||
29 | #include <sound/ak4117.h> | 29 | #include <sound/ak4117.h> |
30 | #include <sound/asoundef.h> | 30 | #include <sound/asoundef.h> |
31 | 31 | ||
32 | MODULE_AUTHOR("Jaroslav Kysela <perex@suse.cz>"); | 32 | MODULE_AUTHOR("Jaroslav Kysela <perex@perex.cz>"); |
33 | MODULE_DESCRIPTION("AK4117 IEC958 (S/PDIF) receiver by Asahi Kasei"); | 33 | MODULE_DESCRIPTION("AK4117 IEC958 (S/PDIF) receiver by Asahi Kasei"); |
34 | MODULE_LICENSE("GPL"); | 34 | MODULE_LICENSE("GPL"); |
35 | 35 | ||
@@ -181,15 +181,7 @@ static int snd_ak4117_in_error_get(struct snd_kcontrol *kcontrol, | |||
181 | return 0; | 181 | return 0; |
182 | } | 182 | } |
183 | 183 | ||
184 | static int snd_ak4117_in_bit_info(struct snd_kcontrol *kcontrol, | 184 | #define snd_ak4117_in_bit_info snd_ctl_boolean_mono_info |
185 | struct snd_ctl_elem_info *uinfo) | ||
186 | { | ||
187 | uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN; | ||
188 | uinfo->count = 1; | ||
189 | uinfo->value.integer.min = 0; | ||
190 | uinfo->value.integer.max = 1; | ||
191 | return 0; | ||
192 | } | ||
193 | 185 | ||
194 | static int snd_ak4117_in_bit_get(struct snd_kcontrol *kcontrol, | 186 | static int snd_ak4117_in_bit_get(struct snd_kcontrol *kcontrol, |
195 | struct snd_ctl_elem_value *ucontrol) | 187 | struct snd_ctl_elem_value *ucontrol) |
diff --git a/sound/i2c/other/ak4xxx-adda.c b/sound/i2c/other/ak4xxx-adda.c index fd335159f849..de03f689fa2e 100644 --- a/sound/i2c/other/ak4xxx-adda.c +++ b/sound/i2c/other/ak4xxx-adda.c | |||
@@ -2,7 +2,7 @@ | |||
2 | * ALSA driver for AK4524 / AK4528 / AK4529 / AK4355 / AK4358 / AK4381 | 2 | * ALSA driver for AK4524 / AK4528 / AK4529 / AK4355 / AK4358 / AK4381 |
3 | * AD and DA converters | 3 | * AD and DA converters |
4 | * | 4 | * |
5 | * Copyright (c) 2000-2004 Jaroslav Kysela <perex@suse.cz>, | 5 | * Copyright (c) 2000-2004 Jaroslav Kysela <perex@perex.cz>, |
6 | * Takashi Iwai <tiwai@suse.de> | 6 | * Takashi Iwai <tiwai@suse.de> |
7 | * | 7 | * |
8 | * This program is free software; you can redistribute it and/or modify | 8 | * This program is free software; you can redistribute it and/or modify |
@@ -31,7 +31,7 @@ | |||
31 | #include <sound/tlv.h> | 31 | #include <sound/tlv.h> |
32 | #include <sound/ak4xxx-adda.h> | 32 | #include <sound/ak4xxx-adda.h> |
33 | 33 | ||
34 | MODULE_AUTHOR("Jaroslav Kysela <perex@suse.cz>, Takashi Iwai <tiwai@suse.de>"); | 34 | MODULE_AUTHOR("Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.de>"); |
35 | MODULE_DESCRIPTION("Routines for control of AK452x / AK43xx AD/DA converters"); | 35 | MODULE_DESCRIPTION("Routines for control of AK452x / AK43xx AD/DA converters"); |
36 | MODULE_LICENSE("GPL"); | 36 | MODULE_LICENSE("GPL"); |
37 | 37 | ||
@@ -463,15 +463,7 @@ static int snd_akm4xxx_deemphasis_put(struct snd_kcontrol *kcontrol, | |||
463 | return change; | 463 | return change; |
464 | } | 464 | } |
465 | 465 | ||
466 | static int ak4xxx_switch_info(struct snd_kcontrol *kcontrol, | 466 | #define ak4xxx_switch_info snd_ctl_boolean_mono_info |
467 | struct snd_ctl_elem_info *uinfo) | ||
468 | { | ||
469 | uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN; | ||
470 | uinfo->count = 1; | ||
471 | uinfo->value.integer.min = 0; | ||
472 | uinfo->value.integer.max = 1; | ||
473 | return 0; | ||
474 | } | ||
475 | 467 | ||
476 | static int ak4xxx_switch_get(struct snd_kcontrol *kcontrol, | 468 | static int ak4xxx_switch_get(struct snd_kcontrol *kcontrol, |
477 | struct snd_ctl_elem_value *ucontrol) | 469 | struct snd_ctl_elem_value *ucontrol) |
diff --git a/sound/i2c/other/pt2258.c b/sound/i2c/other/pt2258.c index e91cc3b44de5..00c83d8b32b1 100644 --- a/sound/i2c/other/pt2258.c +++ b/sound/i2c/other/pt2258.c | |||
@@ -140,15 +140,7 @@ static int pt2258_stereo_volume_put(struct snd_kcontrol *kcontrol, | |||
140 | return -EIO; | 140 | return -EIO; |
141 | } | 141 | } |
142 | 142 | ||
143 | static int pt2258_switch_info(struct snd_kcontrol *kcontrol, | 143 | #define pt2258_switch_info snd_ctl_boolean_mono_info |
144 | struct snd_ctl_elem_info *uinfo) | ||
145 | { | ||
146 | uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN; | ||
147 | uinfo->count = 1; | ||
148 | uinfo->value.integer.min = 0; | ||
149 | uinfo->value.integer.max = 1; | ||
150 | return 0; | ||
151 | } | ||
152 | 144 | ||
153 | static int pt2258_switch_get(struct snd_kcontrol *kcontrol, | 145 | static int pt2258_switch_get(struct snd_kcontrol *kcontrol, |
154 | struct snd_ctl_elem_value *ucontrol) | 146 | struct snd_ctl_elem_value *ucontrol) |
diff --git a/sound/i2c/other/tea575x-tuner.c b/sound/i2c/other/tea575x-tuner.c index 4c2fd14c1056..fe31bb5cffb8 100644 --- a/sound/i2c/other/tea575x-tuner.c +++ b/sound/i2c/other/tea575x-tuner.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * ALSA driver for TEA5757/5759 Philips AM/FM radio tuner chips | 2 | * ALSA driver for TEA5757/5759 Philips AM/FM radio tuner chips |
3 | * | 3 | * |
4 | * Copyright (c) 2004 Jaroslav Kysela <perex@suse.cz> | 4 | * Copyright (c) 2004 Jaroslav Kysela <perex@perex.cz> |
5 | * | 5 | * |
6 | * | 6 | * |
7 | * This program is free software; you can redistribute it and/or modify | 7 | * This program is free software; you can redistribute it and/or modify |
@@ -28,7 +28,7 @@ | |||
28 | #include <sound/core.h> | 28 | #include <sound/core.h> |
29 | #include <sound/tea575x-tuner.h> | 29 | #include <sound/tea575x-tuner.h> |
30 | 30 | ||
31 | MODULE_AUTHOR("Jaroslav Kysela <perex@suse.cz>"); | 31 | MODULE_AUTHOR("Jaroslav Kysela <perex@perex.cz>"); |
32 | MODULE_DESCRIPTION("Routines for control of TEA5757/5759 Philips AM/FM radio tuner chips"); | 32 | MODULE_DESCRIPTION("Routines for control of TEA5757/5759 Philips AM/FM radio tuner chips"); |
33 | MODULE_LICENSE("GPL"); | 33 | MODULE_LICENSE("GPL"); |
34 | 34 | ||
diff --git a/sound/i2c/tea6330t.c b/sound/i2c/tea6330t.c index ae5b1e3a68ce..9bab744af0ef 100644 --- a/sound/i2c/tea6330t.c +++ b/sound/i2c/tea6330t.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * Routines for control of the TEA6330T circuit via i2c bus | 2 | * Routines for control of the TEA6330T circuit via i2c bus |
3 | * Sound fader control circuit for car radios by Philips Semiconductors | 3 | * Sound fader control circuit for car radios by Philips Semiconductors |
4 | * Copyright (c) by Jaroslav Kysela <perex@suse.cz> | 4 | * Copyright (c) by Jaroslav Kysela <perex@perex.cz> |
5 | * | 5 | * |
6 | * | 6 | * |
7 | * This program is free software; you can redistribute it and/or modify | 7 | * This program is free software; you can redistribute it and/or modify |
@@ -27,7 +27,7 @@ | |||
27 | #include <sound/control.h> | 27 | #include <sound/control.h> |
28 | #include <sound/tea6330t.h> | 28 | #include <sound/tea6330t.h> |
29 | 29 | ||
30 | MODULE_AUTHOR("Jaroslav Kysela <perex@suse.cz>"); | 30 | MODULE_AUTHOR("Jaroslav Kysela <perex@perex.cz>"); |
31 | MODULE_DESCRIPTION("Routines for control of the TEA6330T circuit via i2c bus"); | 31 | MODULE_DESCRIPTION("Routines for control of the TEA6330T circuit via i2c bus"); |
32 | MODULE_LICENSE("GPL"); | 32 | MODULE_LICENSE("GPL"); |
33 | 33 | ||
@@ -142,15 +142,7 @@ static int snd_tea6330t_put_master_volume(struct snd_kcontrol *kcontrol, | |||
142 | .info = snd_tea6330t_info_master_switch, \ | 142 | .info = snd_tea6330t_info_master_switch, \ |
143 | .get = snd_tea6330t_get_master_switch, .put = snd_tea6330t_put_master_switch } | 143 | .get = snd_tea6330t_get_master_switch, .put = snd_tea6330t_put_master_switch } |
144 | 144 | ||
145 | static int snd_tea6330t_info_master_switch(struct snd_kcontrol *kcontrol, | 145 | #define snd_tea6330t_info_master_switch snd_ctl_boolean_stereo_info |
146 | struct snd_ctl_elem_info *uinfo) | ||
147 | { | ||
148 | uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN; | ||
149 | uinfo->count = 2; | ||
150 | uinfo->value.integer.min = 0; | ||
151 | uinfo->value.integer.max = 1; | ||
152 | return 0; | ||
153 | } | ||
154 | 146 | ||
155 | static int snd_tea6330t_get_master_switch(struct snd_kcontrol *kcontrol, | 147 | static int snd_tea6330t_get_master_switch(struct snd_kcontrol *kcontrol, |
156 | struct snd_ctl_elem_value *ucontrol) | 148 | struct snd_ctl_elem_value *ucontrol) |