diff options
author | Christos Margiolis <christos@FreeBSD.org> | 2024-07-27 11:54:14 +0000 |
---|---|---|
committer | Christos Margiolis <christos@FreeBSD.org> | 2024-07-27 11:54:14 +0000 |
commit | 810530aa2648812860e84d951d9cf96dfd24e595 (patch) | |
tree | 48f376b45148431d1cfdc5fedb5587bd5d33619f /sys/dev/sound/pcm | |
parent | 56ecc8a93221c16b6ea15d3dbea706a2c8bb33b4 (diff) | |
download | src-810530aa2648812860e84d951d9cf96dfd24e595.tar.gz src-810530aa2648812860e84d951d9cf96dfd24e595.zip |
sound: Add device status string to sndstat nvlist
Sponsored by: The FreeBSD Foundation
MFC after: 2 days
Reviewed by: dev_submerge.ch
Differential Revision: https://reviews.freebsd.org/D46163
Diffstat (limited to 'sys/dev/sound/pcm')
-rw-r--r-- | sys/dev/sound/pcm/sndstat.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/sound/pcm/sndstat.c b/sys/dev/sound/pcm/sndstat.c index 753531f3694e..fda7a2ad6d48 100644 --- a/sys/dev/sound/pcm/sndstat.c +++ b/sys/dev/sound/pcm/sndstat.c @@ -440,6 +440,7 @@ sndstat_build_sound4_nvlist(struct snddev_info *d, nvlist_t **dip) nvlist_add_number(sound4di, SNDST_DSPS_SOUND4_UNIT, device_get_unit(d->dev)); // XXX: I want signed integer here + nvlist_add_string(sound4di, SNDST_DSPS_SOUND4_STATUS, d->status); nvlist_add_bool( sound4di, SNDST_DSPS_SOUND4_BITPERFECT, d->flags & SD_F_BITPERFECT); nvlist_add_number(sound4di, SNDST_DSPS_SOUND4_PVCHAN, d->pvchancount); |