diff options
| author | Christos Margiolis <christos@FreeBSD.org> | 2026-03-24 10:30:58 +0000 |
|---|---|---|
| committer | Christos Margiolis <christos@FreeBSD.org> | 2026-03-24 10:38:39 +0000 |
| commit | 039477d3e7e72285174d83b973e58cea8de85280 (patch) | |
| tree | 7bb6e28d74d4cecbcdca08cd701b2c5225f0db63 | |
| parent | 0a7749d9436e111c882a16eed1531267943186b4 (diff) | |
| -rw-r--r-- | sys/dev/sound/usb/uaudio.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/sound/usb/uaudio.c b/sys/dev/sound/usb/uaudio.c index 12e01599b200..b74cba611b24 100644 --- a/sys/dev/sound/usb/uaudio.c +++ b/sys/dev/sound/usb/uaudio.c @@ -5805,9 +5805,7 @@ tr_setup: } } - chan->curr_cable++; - if (chan->curr_cable >= chan->max_emb_jack) - chan->curr_cable = 0; + chan->curr_cable %= chan->max_emb_jack; if (chan->curr_cable == start_cable) { if (tr_any == 0) |
