|
@@ -74,10 +74,9 @@ static void poodle_ext_control(struct snd_soc_dapm_context *dapm)
|
|
|
static int poodle_startup(struct snd_pcm_substream *substream)
|
|
static int poodle_startup(struct snd_pcm_substream *substream)
|
|
|
{
|
|
{
|
|
|
struct snd_soc_pcm_runtime *rtd = substream->private_data;
|
|
struct snd_soc_pcm_runtime *rtd = substream->private_data;
|
|
|
- struct snd_soc_codec *codec = rtd->codec;
|
|
|
|
|
|
|
|
|
|
/* check the jack status at stream startup */
|
|
/* check the jack status at stream startup */
|
|
|
- poodle_ext_control(&codec->dapm);
|
|
|
|
|
|
|
+ poodle_ext_control(&rtd->card->dapm);
|
|
|
|
|
|
|
|
return 0;
|
|
return 0;
|
|
|
}
|
|
}
|