| .. | .. |
|---|
| 188 | 188 | return ret; |
|---|
| 189 | 189 | } |
|---|
| 190 | 190 | |
|---|
| 191 | | -static int spdif_digital_mute(struct snd_soc_dai *dai, int mute) |
|---|
| 191 | +static int spdif_mute(struct snd_soc_dai *dai, int mute, int direction) |
|---|
| 192 | 192 | { |
|---|
| 193 | 193 | struct spdif_out_dev *host = snd_soc_dai_get_drvdata(dai); |
|---|
| 194 | 194 | u32 val; |
|---|
| .. | .. |
|---|
| 229 | 229 | if (host->saved_params.mute == ucontrol->value.integer.value[0]) |
|---|
| 230 | 230 | return 0; |
|---|
| 231 | 231 | |
|---|
| 232 | | - spdif_digital_mute(cpu_dai, ucontrol->value.integer.value[0]); |
|---|
| 232 | + spdif_mute(cpu_dai, ucontrol->value.integer.value[0], |
|---|
| 233 | + SNDRV_PCM_STREAM_PLAYBACK); |
|---|
| 233 | 234 | |
|---|
| 234 | 235 | return 1; |
|---|
| 235 | 236 | } |
|---|
| .. | .. |
|---|
| 250 | 251 | } |
|---|
| 251 | 252 | |
|---|
| 252 | 253 | static const struct snd_soc_dai_ops spdif_out_dai_ops = { |
|---|
| 253 | | - .digital_mute = spdif_digital_mute, |
|---|
| 254 | + .mute_stream = spdif_mute, |
|---|
| 254 | 255 | .startup = spdif_out_startup, |
|---|
| 255 | 256 | .shutdown = spdif_out_shutdown, |
|---|
| 256 | 257 | .trigger = spdif_out_trigger, |
|---|
| 257 | 258 | .hw_params = spdif_out_hw_params, |
|---|
| 259 | + .no_capture_mute = 1, |
|---|
| 258 | 260 | }; |
|---|
| 259 | 261 | |
|---|
| 260 | 262 | static struct snd_soc_dai_driver spdif_out_dai = { |
|---|