ASoC: Blackfin AC97: fix resume handling
There is no need to manually start playback/capture ourselves as the PCM driver will handle things for us. Signed-off-by: Cliff Cai <cliff.cai@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
parent
ba3b64b976
commit
18d02bc32c
1 changed files with 3 additions and 7 deletions
|
@ -277,28 +277,24 @@ static int bf5xx_ac97_resume(struct snd_soc_dai *dai)
|
||||||
if (!dai->active)
|
if (!dai->active)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
ret = sport_set_multichannel(sport_handle, 16, 0x1F, 1);
|
ret = sport_set_multichannel(sport, 16, 0x1F, 1);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
pr_err("SPORT is busy!\n");
|
pr_err("SPORT is busy!\n");
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = sport_config_rx(sport_handle, IRFS, 0xF, 0, (16*16-1));
|
ret = sport_config_rx(sport, IRFS, 0xF, 0, (16*16-1));
|
||||||
if (ret) {
|
if (ret) {
|
||||||
pr_err("SPORT is busy!\n");
|
pr_err("SPORT is busy!\n");
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = sport_config_tx(sport_handle, ITFS, 0xF, 0, (16*16-1));
|
ret = sport_config_tx(sport, ITFS, 0xF, 0, (16*16-1));
|
||||||
if (ret) {
|
if (ret) {
|
||||||
pr_err("SPORT is busy!\n");
|
pr_err("SPORT is busy!\n");
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dai->capture.active)
|
|
||||||
sport_rx_start(sport);
|
|
||||||
if (dai->playback.active)
|
|
||||||
sport_tx_start(sport);
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Reference in a new issue