|
@@ -72,9 +72,13 @@ static int magician_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;
|
|
struct snd_soc_codec *codec = rtd->codec;
|
|
|
|
|
|
|
|
+ mutex_lock(&codec->mutex);
|
|
|
|
+
|
|
/* check the jack status at stream startup */
|
|
/* check the jack status at stream startup */
|
|
magician_ext_control(codec);
|
|
magician_ext_control(codec);
|
|
|
|
|
|
|
|
+ mutex_unlock(&codec->mutex);
|
|
|
|
+
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|