tangled
alpha
login
or
join now
tjh.dev
/
kernel
Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1
fork
atom
overview
issues
pulls
pipelines
Merge branch 'topic/asoc' into for-linus
Takashi Iwai
15 years ago
ce24f58a
5a882646
+25
-4
5 changed files
expand all
collapse all
unified
split
arch
arm
mach-s3c2440
mach-mini2440.c
sound
soc
codecs
sgtl5000.c
uda134x.c
samsung
s3c24xx_uda134x.c
soc-core.c
+7
arch/arm/mach-s3c2440/mach-mini2440.c
···
506
},
507
};
508
0
0
0
0
0
509
static struct platform_device *mini2440_devices[] __initdata = {
510
&s3c_device_ohci,
511
&s3c_device_wdt,
···
526
&s3c_device_nand,
527
&s3c_device_sdi,
528
&s3c_device_iis,
0
529
&mini2440_audio,
0
530
};
531
532
static void __init mini2440_map_io(void)
···
506
},
507
};
508
509
+
static struct platform_device uda1340_codec = {
510
+
.name = "uda134x-codec",
511
+
.id = -1,
512
+
};
513
+
514
static struct platform_device *mini2440_devices[] __initdata = {
515
&s3c_device_ohci,
516
&s3c_device_wdt,
···
521
&s3c_device_nand,
522
&s3c_device_sdi,
523
&s3c_device_iis,
524
+
&uda1340_codec,
525
&mini2440_audio,
526
+
&samsung_asoc_dma,
527
};
528
529
static void __init mini2440_map_io(void)
+14
sound/soc/codecs/sgtl5000.c
···
772
return 0;
773
}
774
0
775
static int ldo_regulator_is_enabled(struct regulator_dev *dev)
776
{
777
struct ldo_regulator *ldo = rdev_get_drvdata(dev);
···
902
903
return 0;
904
}
0
0
0
0
0
0
0
0
0
0
0
0
0
905
906
/*
907
* set dac bias
···
772
return 0;
773
}
774
775
+
#ifdef CONFIG_REGULATOR
776
static int ldo_regulator_is_enabled(struct regulator_dev *dev)
777
{
778
struct ldo_regulator *ldo = rdev_get_drvdata(dev);
···
901
902
return 0;
903
}
904
+
#else
905
+
static int ldo_regulator_register(struct snd_soc_codec *codec,
906
+
struct regulator_init_data *init_data,
907
+
int voltage)
908
+
{
909
+
return -EINVAL;
910
+
}
911
+
912
+
static int ldo_regulator_remove(struct snd_soc_codec *codec)
913
+
{
914
+
return 0;
915
+
}
916
+
#endif
917
918
/*
919
* set dac bias
+2
-1
sound/soc/codecs/uda134x.c
···
486
static int uda134x_soc_probe(struct snd_soc_codec *codec)
487
{
488
struct uda134x_priv *uda134x;
489
-
struct uda134x_platform_data *pd = dev_get_drvdata(codec->card->dev);
0
490
int ret;
491
492
printk(KERN_INFO "UDA134X SoC Audio Codec\n");
···
486
static int uda134x_soc_probe(struct snd_soc_codec *codec)
487
{
488
struct uda134x_priv *uda134x;
489
+
struct uda134x_platform_data *pd = codec->card->dev->platform_data;
490
+
491
int ret;
492
493
printk(KERN_INFO "UDA134X SoC Audio Codec\n");
+2
-1
sound/soc/samsung/s3c24xx_uda134x.c
···
219
static struct snd_soc_dai_link s3c24xx_uda134x_dai_link = {
220
.name = "UDA134X",
221
.stream_name = "UDA134X",
222
-
.codec_name = "uda134x-hifi",
223
.codec_dai_name = "uda134x-hifi",
224
.cpu_dai_name = "s3c24xx-iis",
225
.ops = &s3c24xx_uda134x_ops,
···
314
315
platform_set_drvdata(s3c24xx_uda134x_snd_device,
316
&snd_soc_s3c24xx_uda134x);
0
317
ret = platform_device_add(s3c24xx_uda134x_snd_device);
318
if (ret) {
319
printk(KERN_ERR "S3C24XX_UDA134X SoC Audio: Unable to add\n");
···
219
static struct snd_soc_dai_link s3c24xx_uda134x_dai_link = {
220
.name = "UDA134X",
221
.stream_name = "UDA134X",
222
+
.codec_name = "uda134x-codec",
223
.codec_dai_name = "uda134x-hifi",
224
.cpu_dai_name = "s3c24xx-iis",
225
.ops = &s3c24xx_uda134x_ops,
···
314
315
platform_set_drvdata(s3c24xx_uda134x_snd_device,
316
&snd_soc_s3c24xx_uda134x);
317
+
platform_device_add_data(s3c24xx_uda134x_snd_device, &s3c24xx_uda134x, sizeof(s3c24xx_uda134x));
318
ret = platform_device_add(s3c24xx_uda134x_snd_device);
319
if (ret) {
320
printk(KERN_ERR "S3C24XX_UDA134X SoC Audio: Unable to add\n");
-2
sound/soc/soc-core.c
···
259
while (*start == ' ')
260
start++;
261
reg = simple_strtoul(start, &start, 16);
262
-
if ((reg >= codec->driver->reg_cache_size) || (reg % step))
263
-
return -EINVAL;
264
while (*start == ' ')
265
start++;
266
if (strict_strtoul(start, 16, &value))
···
259
while (*start == ' ')
260
start++;
261
reg = simple_strtoul(start, &start, 16);
0
0
262
while (*start == ' ')
263
start++;
264
if (strict_strtoul(start, 16, &value))