| .. | .. |
|---|
| 244 | 244 | SND_SOC_DAPM_MUX("SDP OUT MUX", SND_SOC_NOPM, 0, 0, |
|---|
| 245 | 245 | &es8311_adc_sdp_mux_controls), |
|---|
| 246 | 246 | /* Digital Interface */ |
|---|
| 247 | | - SND_SOC_DAPM_AIF_OUT("I2S OUT", "Capture", 1, |
|---|
| 247 | + SND_SOC_DAPM_AIF_OUT("I2S OUT", "I2S1 Capture", 1, |
|---|
| 248 | 248 | SND_SOC_NOPM, 0, 0), |
|---|
| 249 | 249 | /* Render path */ |
|---|
| 250 | | - SND_SOC_DAPM_AIF_IN("I2S IN", "Playback", 0, |
|---|
| 250 | + SND_SOC_DAPM_AIF_IN("I2S IN", "I2S1 Playback", 0, |
|---|
| 251 | 251 | SND_SOC_NOPM, 0, 0), |
|---|
| 252 | 252 | /*DACs SDP DATA SRC MUX */ |
|---|
| 253 | 253 | SND_SOC_DAPM_MUX("DAC SDP SRC MUX", SND_SOC_NOPM, 0, 0, |
|---|
| .. | .. |
|---|
| 281 | 281 | u8 adciface = 0; |
|---|
| 282 | 282 | u8 daciface = 0; |
|---|
| 283 | 283 | |
|---|
| 284 | | - iface = snd_soc_component_read32(component, ES8311_RESET_REG00); |
|---|
| 285 | | - adciface = snd_soc_component_read32(component, ES8311_SDPOUT_REG0A); |
|---|
| 286 | | - daciface = snd_soc_component_read32(component, ES8311_SDPIN_REG09); |
|---|
| 284 | + iface = snd_soc_component_read(component, ES8311_RESET_REG00); |
|---|
| 285 | + adciface = snd_soc_component_read(component, ES8311_SDPOUT_REG0A); |
|---|
| 286 | + daciface = snd_soc_component_read(component, ES8311_SDPIN_REG09); |
|---|
| 287 | 287 | |
|---|
| 288 | 288 | /* set master/slave audio interface */ |
|---|
| 289 | 289 | switch (fmt & SND_SOC_DAIFMT_MASTER_MASK) { |
|---|
| .. | .. |
|---|
| 327 | 327 | return -EINVAL; |
|---|
| 328 | 328 | } |
|---|
| 329 | 329 | |
|---|
| 330 | | - iface = snd_soc_component_read32(component, ES8311_CLK_MANAGER_REG06); |
|---|
| 330 | + iface = snd_soc_component_read(component, ES8311_CLK_MANAGER_REG06); |
|---|
| 331 | 331 | /* clock inversion */ |
|---|
| 332 | 332 | if (((fmt & SND_SOC_DAIFMT_FORMAT_MASK) == SND_SOC_DAIFMT_I2S) || |
|---|
| 333 | 333 | ((fmt & SND_SOC_DAIFMT_FORMAT_MASK) == SND_SOC_DAIFMT_LEFT_J)) { |
|---|
| .. | .. |
|---|
| 393 | 393 | u16 iface; |
|---|
| 394 | 394 | |
|---|
| 395 | 395 | if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) { |
|---|
| 396 | | - iface = snd_soc_component_read32(component, ES8311_SDPIN_REG09) & 0xE3; |
|---|
| 396 | + iface = snd_soc_component_read(component, ES8311_SDPIN_REG09) & 0xE3; |
|---|
| 397 | 397 | /* bit size */ |
|---|
| 398 | 398 | switch (params_format(params)) { |
|---|
| 399 | 399 | case SNDRV_PCM_FORMAT_S16_LE: |
|---|
| .. | .. |
|---|
| 411 | 411 | /* set iface */ |
|---|
| 412 | 412 | snd_soc_component_write(component, ES8311_SDPIN_REG09, iface); |
|---|
| 413 | 413 | } else { |
|---|
| 414 | | - iface = snd_soc_component_read32(component, ES8311_SDPOUT_REG0A) & 0xE3; |
|---|
| 414 | + iface = snd_soc_component_read(component, ES8311_SDPOUT_REG0A) & 0xE3; |
|---|
| 415 | 415 | /* bit size */ |
|---|
| 416 | 416 | switch (params_format(params)) { |
|---|
| 417 | 417 | case SNDRV_PCM_FORMAT_S16_LE: |
|---|
| .. | .. |
|---|
| 477 | 477 | return 0; |
|---|
| 478 | 478 | } |
|---|
| 479 | 479 | |
|---|
| 480 | | -static int es8311_mute(struct snd_soc_dai *dai, int mute) |
|---|
| 480 | +static int es8311_mute(struct snd_soc_dai *dai, int mute, int stream) |
|---|
| 481 | 481 | { |
|---|
| 482 | 482 | struct snd_soc_component *component = dai->component; |
|---|
| 483 | 483 | struct es8311_priv *es8311 = snd_soc_component_get_drvdata(component); |
|---|
| .. | .. |
|---|
| 508 | 508 | .shutdown = es8311_pcm_shutdown, |
|---|
| 509 | 509 | .hw_params = es8311_pcm_hw_params, |
|---|
| 510 | 510 | .set_fmt = es8311_set_dai_fmt, |
|---|
| 511 | | - .digital_mute = es8311_mute, |
|---|
| 511 | + .mute_stream = es8311_mute, |
|---|
| 512 | 512 | .set_tristate = es8311_set_tristate, |
|---|
| 513 | + .no_capture_mute = 1, |
|---|
| 513 | 514 | }; |
|---|
| 514 | 515 | |
|---|
| 515 | 516 | static struct snd_soc_dai_driver es8311_dai = { |
|---|