Date: Mon, 13 Apr 2020 16:31:46 +0000 (UTC) From: Hans Petter Selasky <hselasky@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r359886 - stable/11/sys/dev/sound/pcm Message-ID: <202004131631.03DGVkNM092394@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: hselasky Date: Mon Apr 13 16:31:46 2020 New Revision: 359886 URL: https://svnweb.freebsd.org/changeset/base/359886 Log: MFC r359440: Implement new mixer API to return the device pointer based on the mixer pointer. Sponsored by: Mellanox Technologies Modified: stable/11/sys/dev/sound/pcm/mixer.c stable/11/sys/dev/sound/pcm/mixer.h Directory Properties: stable/11/ (props changed) Modified: stable/11/sys/dev/sound/pcm/mixer.c ============================================================================== --- stable/11/sys/dev/sound/pcm/mixer.c Mon Apr 13 16:31:13 2020 (r359885) +++ stable/11/sys/dev/sound/pcm/mixer.c Mon Apr 13 16:31:46 2020 (r359886) @@ -1030,6 +1030,14 @@ mix_get_type(struct snd_mixer *m) return (m->type); } +device_t +mix_get_dev(struct snd_mixer *m) +{ + KASSERT(m != NULL, ("NULL snd_mixer")); + + return (m->dev); +} + /* ----------------------------------------------------------------------- */ static int Modified: stable/11/sys/dev/sound/pcm/mixer.h ============================================================================== --- stable/11/sys/dev/sound/pcm/mixer.h Mon Apr 13 16:31:13 2020 (r359885) +++ stable/11/sys/dev/sound/pcm/mixer.h Mon Apr 13 16:31:46 2020 (r359886) @@ -54,6 +54,7 @@ int mix_get(struct snd_mixer *m, u_int dev); int mix_setrecsrc(struct snd_mixer *m, u_int32_t src); u_int32_t mix_getrecsrc(struct snd_mixer *m); int mix_get_type(struct snd_mixer *m); +device_t mix_get_dev(struct snd_mixer *m); void mix_setdevs(struct snd_mixer *m, u_int32_t v); void mix_setrecdevs(struct snd_mixer *m, u_int32_t v);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202004131631.03DGVkNM092394>