.. | .. |
---|
1216 | 1216 | return regmap_update_bits(cpcap->regmap, reg, mask, val); |
---|
1217 | 1217 | } |
---|
1218 | 1218 | |
---|
1219 | | -static int cpcap_hifi_set_mute(struct snd_soc_dai *dai, int mute) |
---|
| 1219 | +static int cpcap_hifi_set_mute(struct snd_soc_dai *dai, int mute, int direction) |
---|
1220 | 1220 | { |
---|
1221 | 1221 | struct snd_soc_component *component = dai->component; |
---|
1222 | 1222 | struct cpcap_audio *cpcap = snd_soc_component_get_drvdata(component); |
---|
.. | .. |
---|
1237 | 1237 | .hw_params = cpcap_hifi_hw_params, |
---|
1238 | 1238 | .set_sysclk = cpcap_hifi_set_dai_sysclk, |
---|
1239 | 1239 | .set_fmt = cpcap_hifi_set_dai_fmt, |
---|
1240 | | - .digital_mute = cpcap_hifi_set_mute, |
---|
| 1240 | + .mute_stream = cpcap_hifi_set_mute, |
---|
| 1241 | + .no_capture_mute = 1, |
---|
1241 | 1242 | }; |
---|
1242 | 1243 | |
---|
1243 | 1244 | static int cpcap_voice_hw_params(struct snd_pcm_substream *substream, |
---|
.. | .. |
---|
1370 | 1371 | return 0; |
---|
1371 | 1372 | } |
---|
1372 | 1373 | |
---|
1373 | | -static int cpcap_voice_set_mute(struct snd_soc_dai *dai, int mute) |
---|
| 1374 | +static int cpcap_voice_set_mute(struct snd_soc_dai *dai, |
---|
| 1375 | + int mute, int direction) |
---|
1374 | 1376 | { |
---|
1375 | 1377 | struct snd_soc_component *component = dai->component; |
---|
1376 | 1378 | struct cpcap_audio *cpcap = snd_soc_component_get_drvdata(component); |
---|
.. | .. |
---|
1391 | 1393 | .hw_params = cpcap_voice_hw_params, |
---|
1392 | 1394 | .set_sysclk = cpcap_voice_set_dai_sysclk, |
---|
1393 | 1395 | .set_fmt = cpcap_voice_set_dai_fmt, |
---|
1394 | | - .digital_mute = cpcap_voice_set_mute, |
---|
| 1396 | + .mute_stream = cpcap_voice_set_mute, |
---|
| 1397 | + .no_capture_mute = 1, |
---|
1395 | 1398 | }; |
---|
1396 | 1399 | |
---|
1397 | 1400 | static struct snd_soc_dai_driver cpcap_dai[] = { |
---|