|
@@ -251,7 +251,7 @@ static int wm8753_set_dai(struct snd_kcontrol *kcontrol,
|
|
if (wm8753->dai_func == ucontrol->value.integer.value[0])
|
|
if (wm8753->dai_func == ucontrol->value.integer.value[0])
|
|
return 0;
|
|
return 0;
|
|
|
|
|
|
- if (codec->active)
|
|
|
|
|
|
+ if (snd_soc_codec_is_active(codec))
|
|
return -EBUSY;
|
|
return -EBUSY;
|
|
|
|
|
|
ioctl = snd_soc_read(codec, WM8753_IOCTL);
|
|
ioctl = snd_soc_read(codec, WM8753_IOCTL);
|
|
@@ -1314,7 +1314,7 @@ static int wm8753_mute(struct snd_soc_dai *dai, int mute)
|
|
/* the digital mute covers the HiFi and Voice DAC's on the WM8753.
|
|
/* the digital mute covers the HiFi and Voice DAC's on the WM8753.
|
|
* make sure we check if they are not both active when we mute */
|
|
* make sure we check if they are not both active when we mute */
|
|
if (mute && wm8753->dai_func == 1) {
|
|
if (mute && wm8753->dai_func == 1) {
|
|
- if (!codec->active)
|
|
|
|
|
|
+ if (!snd_soc_codec_is_active(codec))
|
|
snd_soc_write(codec, WM8753_DAC, mute_reg | 0x8);
|
|
snd_soc_write(codec, WM8753_DAC, mute_reg | 0x8);
|
|
} else {
|
|
} else {
|
|
if (mute)
|
|
if (mute)
|