.. | .. |
---|
480 | 480 | return 0; |
---|
481 | 481 | } |
---|
482 | 482 | |
---|
483 | | -static int es7243e_mute(struct snd_soc_dai *dai, int mute) |
---|
| 483 | +static int es7243e_mute(struct snd_soc_dai *dai, int mute, int stream) |
---|
484 | 484 | { |
---|
485 | 485 | //struct snd_soc_codec *codec = dai->codec; |
---|
486 | 486 | u8 i; |
---|
487 | 487 | printk("Enter into %s()\n", __func__); |
---|
| 488 | + if (stream == SNDRV_PCM_STREAM_PLAYBACK) |
---|
| 489 | + return 0; |
---|
| 490 | + |
---|
488 | 491 | for (i = 0; i < (ES7243E_CHANNELS_MAX) / 2; i++) { |
---|
489 | 492 | if (mute) |
---|
490 | 493 | es7243e_update_bits(0x0b, 0xc0, 0xc0, i2c_clt[i]); |
---|
.. | .. |
---|
1671 | 1674 | .hw_params = es7243e_pcm_hw_params, |
---|
1672 | 1675 | .set_fmt = es7243e_set_dai_fmt, |
---|
1673 | 1676 | .set_sysclk = es7243e_set_dai_sysclk, |
---|
1674 | | - .digital_mute = es7243e_mute, |
---|
| 1677 | + .mute_stream = es7243e_mute, |
---|
1675 | 1678 | }; |
---|
1676 | 1679 | |
---|
1677 | 1680 | #if ES7243E_CHANNELS_MAX > 0 |
---|