rk3328_codec: remove diagostic printfs

Most likeyly there were intended as reminders for unimplemented functions,
but they do not seem to be useful.

Also, a small style nit.

(cherry picked from commit 408a9efd75ddcf59a05069681c3b32cb1118aa9a)
This commit is contained in:
Andriy Gapon 2022-01-11 14:01:31 +02:00
parent d6e54e538e
commit 7742d4d404

View file

@ -435,11 +435,9 @@ rkcodec_mixer_set(struct snd_mixer *m, unsigned dev, unsigned left, unsigned rig
RKCODEC_LOCK(sc);
switch(dev) {
case SOUND_MIXER_VOLUME:
printf("[%s] %s:%d\n", __func__, __FILE__, __LINE__);
break;
case SOUND_MIXER_MIC:
printf("[%s] %s:%d\n", __func__, __FILE__, __LINE__);
break;
default:
break;
@ -547,27 +545,15 @@ rkcodec_dai_trigger(device_t dev, int go, int pcm_dir)
{
// struct rkcodec_softc *sc = device_get_softc(dev);
if ((pcm_dir != PCMDIR_PLAY) && (pcm_dir != PCMDIR_REC))
if (pcm_dir != PCMDIR_PLAY && pcm_dir != PCMDIR_REC)
return (EINVAL);
switch (go) {
case PCMTRIG_START:
if (pcm_dir == PCMDIR_PLAY) {
printf("[%s] %s:%d\n", __func__, __FILE__, __LINE__);
}
else if (pcm_dir == PCMDIR_REC) {
printf("[%s] %s:%d\n", __func__, __FILE__, __LINE__);
}
break;
case PCMTRIG_STOP:
case PCMTRIG_ABORT:
if (pcm_dir == PCMDIR_PLAY) {
printf("[%s] %s:%d\n", __func__, __FILE__, __LINE__);
}
else if (pcm_dir == PCMDIR_REC) {
printf("[%s] %s:%d\n", __func__, __FILE__, __LINE__);
}
break;
}