|
@@ -55,8 +55,7 @@ static int omap_twl4030_hw_params(struct snd_pcm_substream *substream,
|
|
|
struct snd_soc_pcm_runtime *rtd = substream->private_data;
|
|
|
struct snd_soc_dai *codec_dai = rtd->codec_dai;
|
|
|
struct snd_soc_dai *cpu_dai = rtd->cpu_dai;
|
|
|
- struct snd_soc_codec *codec = rtd->codec;
|
|
|
- struct snd_soc_card *card = codec->card;
|
|
|
+ struct snd_soc_card *card = rtd->card;
|
|
|
unsigned int fmt;
|
|
|
int ret;
|
|
|
|
|
@@ -179,7 +178,7 @@ static inline void twl4030_disconnect_pin(struct snd_soc_dapm_context *dapm,
|
|
|
static int omap_twl4030_init(struct snd_soc_pcm_runtime *rtd)
|
|
|
{
|
|
|
struct snd_soc_codec *codec = rtd->codec;
|
|
|
- struct snd_soc_card *card = codec->card;
|
|
|
+ struct snd_soc_card *card = rtd->card;
|
|
|
struct snd_soc_dapm_context *dapm = &codec->dapm;
|
|
|
struct omap_tw4030_pdata *pdata = dev_get_platdata(card->dev);
|
|
|
struct omap_twl4030 *priv = snd_soc_card_get_drvdata(card);
|