diff options
Diffstat (limited to 'sound/soc/soc-core.c')
-rw-r--r-- | sound/soc/soc-core.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 4afa8dba5e98..c0bbcd903261 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c | |||
@@ -3332,19 +3332,6 @@ int snd_soc_register_codec(struct device *dev, | |||
3332 | if (ret) | 3332 | if (ret) |
3333 | goto err_free; | 3333 | goto err_free; |
3334 | 3334 | ||
3335 | if (codec_drv->controls) { | ||
3336 | codec->component.controls = codec_drv->controls; | ||
3337 | codec->component.num_controls = codec_drv->num_controls; | ||
3338 | } | ||
3339 | if (codec_drv->dapm_widgets) { | ||
3340 | codec->component.dapm_widgets = codec_drv->dapm_widgets; | ||
3341 | codec->component.num_dapm_widgets = codec_drv->num_dapm_widgets; | ||
3342 | } | ||
3343 | if (codec_drv->dapm_routes) { | ||
3344 | codec->component.dapm_routes = codec_drv->dapm_routes; | ||
3345 | codec->component.num_dapm_routes = codec_drv->num_dapm_routes; | ||
3346 | } | ||
3347 | |||
3348 | if (codec_drv->probe) | 3335 | if (codec_drv->probe) |
3349 | codec->component.probe = snd_soc_codec_drv_probe; | 3336 | codec->component.probe = snd_soc_codec_drv_probe; |
3350 | if (codec_drv->remove) | 3337 | if (codec_drv->remove) |
@@ -3732,7 +3719,7 @@ unsigned int snd_soc_of_parse_daifmt(struct device_node *np, | |||
3732 | * SND_SOC_DAIFMT_CLOCK_MASK area | 3719 | * SND_SOC_DAIFMT_CLOCK_MASK area |
3733 | */ | 3720 | */ |
3734 | snprintf(prop, sizeof(prop), "%scontinuous-clock", prefix); | 3721 | snprintf(prop, sizeof(prop), "%scontinuous-clock", prefix); |
3735 | if (of_get_property(np, prop, NULL)) | 3722 | if (of_property_read_bool(np, prop)) |
3736 | format |= SND_SOC_DAIFMT_CONT; | 3723 | format |= SND_SOC_DAIFMT_CONT; |
3737 | else | 3724 | else |
3738 | format |= SND_SOC_DAIFMT_GATED; | 3725 | format |= SND_SOC_DAIFMT_GATED; |