Skip to content

Commit

Permalink
MFC r359777: hdac: show which command timed out
Browse files Browse the repository at this point in the history
There are several reports of "hdac0: Command timeout on address 2"
messages emitted during playback on a variety of contemporary machines.
Show the command that timed out in case it might provide a clue in
finding the cause.

PR:		229190
Sponsored by:	The FreeBSD Foundation
  • Loading branch information
emaste committed Apr 25, 2020
1 parent 4d9ded6 commit 107ecd7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sys/dev/sound/pci/hda/hdac.c
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,8 @@ hdac_send_command(struct hdac_softc *sc, nid_t cad, uint32_t verb)
} while (sc->codecs[cad].pending != 0 && --timeout);

if (sc->codecs[cad].pending != 0) {
device_printf(sc->dev, "Command timeout on address %d\n", cad);
device_printf(sc->dev, "Command 0x%08x timeout on address %d\n",
verb, cad);
sc->codecs[cad].pending = 0;
}

Expand Down

0 comments on commit 107ecd7

Please sign in to comment.