git: 408a9efd75dd - main - rk3328_codec: remove diagostic printfs
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 28 Jan 2024 11:33:33 UTC
The branch main has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=408a9efd75ddcf59a05069681c3b32cb1118aa9a commit 408a9efd75ddcf59a05069681c3b32cb1118aa9a Author: Andriy Gapon <avg@FreeBSD.org> AuthorDate: 2022-01-11 12:01:31 +0000 Commit: Andriy Gapon <avg@FreeBSD.org> CommitDate: 2024-01-28 11:33:16 +0000 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. --- sys/arm64/rockchip/rk3328_codec.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/sys/arm64/rockchip/rk3328_codec.c b/sys/arm64/rockchip/rk3328_codec.c index 91d73ee4ca34..480a1087ea2d 100644 --- a/sys/arm64/rockchip/rk3328_codec.c +++ b/sys/arm64/rockchip/rk3328_codec.c @@ -434,11 +434,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; @@ -546,27 +544,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; }