]> Git Repo - linux.git/commitdiff
ASoC: codecs: JZ4740: Fix OOPS
authorLars-Peter Clausen <[email protected]>
Tue, 12 Apr 2011 17:33:28 +0000 (19:33 +0200)
committerMark Brown <[email protected]>
Wed, 13 Apr 2011 17:26:46 +0000 (10:26 -0700)
Commit ce6120cc(ASoC: Decouple DAPM from CODECs) changed the signature of
snd_soc_dapm_widgets_new to take an pointer to a snd_soc_dapm_context instead of
a snd_soc_codec. The call to snd_soc_dapm_widgets_new in jz4740_codec_dev_probe
was not updated to reflect this change, which results in a compiletime warning
and a runtime OOPS.

Since the core code calls snd_soc_dapm_widgets_new after the codec has been
registered it can be dropped here.

Signed-off-by: Lars-Peter Clausen <[email protected]>
Acked-by: Liam Girdwood <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Cc: [email protected]
sound/soc/codecs/jz4740.c

index f7cd346fd7275d4dee46261a06f52f877923d30b..f5ccdbf7ebc6e1fb0630b5ef6db426db5c2ba3e8 100644 (file)
@@ -308,8 +308,6 @@ static int jz4740_codec_dev_probe(struct snd_soc_codec *codec)
        snd_soc_dapm_add_routes(dapm, jz4740_codec_dapm_routes,
                ARRAY_SIZE(jz4740_codec_dapm_routes));
 
-       snd_soc_dapm_new_widgets(codec);
-
        jz4740_codec_set_bias_level(codec, SND_SOC_BIAS_STANDBY);
 
        return 0;
This page took 0.058395 seconds and 4 git commands to generate.