git: 7742d4d404db - stable/14 - rk3328_codec: remove diagostic printfs

From: Andriy Gapon <avg_at_FreeBSD.org>
Date: Sat, 17 Feb 2024 15:12:20 UTC
The branch stable/14 has been updated by avg:

URL: https://cgit.FreeBSD.org/src/commit/?id=7742d4d404db92e05d50eaabe48a8c7bfc77fa62

commit 7742d4d404db92e05d50eaabe48a8c7bfc77fa62
Author:     Andriy Gapon <avg@FreeBSD.org>
AuthorDate: 2022-01-11 12:01:31 +0000
Commit:     Andriy Gapon <avg@FreeBSD.org>
CommitDate: 2024-02-17 14:15:10 +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.
    
    (cherry picked from commit 408a9efd75ddcf59a05069681c3b32cb1118aa9a)
---
 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 e4aa05c4dfc8..b797ac3d26b4 100644
--- a/sys/arm64/rockchip/rk3328_codec.c
+++ b/sys/arm64/rockchip/rk3328_codec.c
@@ -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;
 	}