<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/dev/sound, branch releng/14.2</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=releng%2F14.2</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=releng%2F14.2'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2024-10-27T16:32:30Z</updated>
<entry>
<title>sound: Retire channel refcount</title>
<updated>2024-10-27T16:32:30Z</updated>
<author>
<name>Christos Margiolis</name>
<email>christos@FreeBSD.org</email>
</author>
<published>2024-10-25T11:36:59Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6bfac3b2a335c4fb133f670e7b484ea13072882c'/>
<id>urn:sha1:6bfac3b2a335c4fb133f670e7b484ea13072882c</id>
<content type='text'>
No longer used.

Sponsored by:	The FreeBSD Foundation
MFC after:	2 days
Reviewed by:	dev_submerge.ch
Differential Revision:	https://reviews.freebsd.org/D47269

(cherry picked from commit 9a6cf27583ffc13bb0a7c5be0704ba0d2f3b834d)
</content>
</entry>
<entry>
<title>sound: Remove redundant refcount checks in vchan_setnew()</title>
<updated>2024-10-27T16:32:30Z</updated>
<author>
<name>Christos Margiolis</name>
<email>christos@FreeBSD.org</email>
</author>
<published>2024-10-25T11:36:51Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=bf3a355a874abfcf7ab77bff84bc355ef79ef0a6'/>
<id>urn:sha1:bf3a355a874abfcf7ab77bff84bc355ef79ef0a6</id>
<content type='text'>
When adding a new vchan, we are looking for a parent channel which
either already has vchans (i.e CHN_F_HAS_VCHAN), or does not, but is
also not being used (i.e !CHN_F_BUSY). Since CHN_F_BUSY essentially
tells us if the channel is currently being used or not, there is no need
to check if the channel's refcount is 0 as well.

When removing a vchan, we first check if we have only 1 vchan allocated
that is also being used (so we cannot remove it at the moment), and then
we check if the vchan is not busy and remove it. Again, checking
CHN_F_BUSY is enough.

Sponsored by:	The FreeBSD Foundation
MFC after:	2 days
Reviewed by:	dev_submerge.ch
Differential Revision:	https://reviews.freebsd.org/D47268

(cherry picked from commit 43c0b593c2c3b2c07009c031a0e7e8190a45b31a)
</content>
</entry>
<entry>
<title>sound: Untangle dsp_cdevs[] and dsp_unit2name() confusion</title>
<updated>2024-10-27T16:32:23Z</updated>
<author>
<name>Christos Margiolis</name>
<email>christos@FreeBSD.org</email>
</author>
<published>2024-10-24T11:37:23Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=f3449b1a2115ed0f680568b8e0d647b8595f5a92'/>
<id>urn:sha1:f3449b1a2115ed0f680568b8e0d647b8595f5a92</id>
<content type='text'>
Before de8c0d15a64fa ("sound: Get rid of snd_clone and use
DEVFS_CDEVPRIV(9)"), sound(4) would create one device for each allocated
channel. The device names would be chosen from dsp_cdevs[], and created
with dsp_unit2name(). Additionally, dsp_cdevs[] was also used to match
these devices names, as well as OSSv4 aliases in dsp_clone().

Since sound(4) does not create separate devices for each channel
anymore, the meaning and use dsp_cdevs[] has changed. Part of it no
longer corresponds to devices at all, but instead is used to create
channel names, and another part is used to match only OSSv4 aliases in
dsp_clone().

To address this confusion, separate dsp_cdevs[] into a dsp_aliases[]
array, and move dsp_unit2name() to pcm/channel.c and rename it to
chn_mkname().

While here, get rid of the SND_DEV_DSPHW_* channel types, and simply use
the existing PCMDIR_* constants as the channel types. There is no need
to duplicate the same meaning twice.

Sponsored by:	The FreeBSD Foundation
MFC after:	2 days
Reviewed by:	dev_submerge.ch
Differential Revision:	https://reviews.freebsd.org/D47199

(cherry picked from commit 802c78f5194e4524faa30ea57adbf00f28fc72c6)
(cherry picked from commit b1bb6934bb8774dd96be76d88e6824e49b613549)
</content>
</entry>
<entry>
<title>sound: Change PCMDIR_* numbering</title>
<updated>2024-10-27T16:32:17Z</updated>
<author>
<name>Christos Margiolis</name>
<email>christos@FreeBSD.org</email>
</author>
<published>2024-10-24T11:37:17Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=26524f063fca6d6ab981e08911078f6e59f00f14'/>
<id>urn:sha1:26524f063fca6d6ab981e08911078f6e59f00f14</id>
<content type='text'>
Needed by a follow-up patch, so that channels can be sorted properly.
This change does not affect the behavior of any subsystem.

While here, change to an enum.

Sponsored by:	The FreeBSD Foundation
MFC after:	2 days
Reviewed by:	dev_submerge.ch, markj
Differential Revision:	https://reviews.freebsd.org/D47198

(cherry picked from commit a4111e9dc7225618fa8d2af64d866cf0b0aebd56)
</content>
</entry>
<entry>
<title>sound: Use DSP_REGISTERED in dsp_clone()</title>
<updated>2024-10-27T16:32:16Z</updated>
<author>
<name>Christos Margiolis</name>
<email>christos@FreeBSD.org</email>
</author>
<published>2024-10-24T11:37:10Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=32a2994b4487d9de5190982fd88cbc6d57414cdb'/>
<id>urn:sha1:32a2994b4487d9de5190982fd88cbc6d57414cdb</id>
<content type='text'>
DSP_REGISTERED calls PCM_REGISTERED, and already contains all the checks
we are doing.

No functional change intended.

Sponsored by:	The FreeBSD Foundation
MFC after:	2 days
Reviewed by:	dev_submerge.ch, markj
Differential Revision:	https://reviews.freebsd.org/D47196

(cherry picked from commit bb5e3ac1a7b71480a50fc0c813c916a3d058336c)
</content>
</entry>
<entry>
<title>sound: Call DSP_REGISTERED before PCM_DETACHING</title>
<updated>2024-10-27T16:32:16Z</updated>
<author>
<name>Christos Margiolis</name>
<email>christos@FreeBSD.org</email>
</author>
<published>2024-10-24T11:37:01Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=ace5484e48c9c8585cf914963912ee1ebf35327a'/>
<id>urn:sha1:ace5484e48c9c8585cf914963912ee1ebf35327a</id>
<content type='text'>
DSP_REGISTERED first checks if the softc is not null, through
PCM_REGISTERED, which in turn calls PCM_ALIVE, whereas PCM_DETACHING
accesses the softc flags directly.

Sponsored by:	The FreeBSD Foundation
MFC after:	2 days
Reviewed by:	dev_submerge.ch, markj, emaste
Differential Revision:	https://reviews.freebsd.org/D47195

(cherry picked from commit 9693241188aa6882166b091d9006f9d0affeda7e)
</content>
</entry>
<entry>
<title>onyx: Remove unreachable if condition</title>
<updated>2024-10-20T11:21:06Z</updated>
<author>
<name>Christos Margiolis</name>
<email>christos@FreeBSD.org</email>
</author>
<published>2024-10-18T08:41:55Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e609dfa98fd349ed868f2d4d16bd1994fc53875f'/>
<id>urn:sha1:e609dfa98fd349ed868f2d4d16bd1994fc53875f</id>
<content type='text'>
Both conditions are the same, so the second one is unreachable.

PR:		229550
Sponsored by:	The FreeBSD Foundation
MFC after:	2 days
Reviewed by:	andreast, markj
Differential Revision:	https://reviews.freebsd.org/D47167

(cherry picked from commit 6f96ef84b359137a51dc1e717887ca7d31ba7bad)
</content>
</entry>
<entry>
<title>snd_hda: Identify NVIDIA GM204</title>
<updated>2024-10-20T11:21:06Z</updated>
<author>
<name>Jani Salonen</name>
<email>salojan@goto10.co</email>
</author>
<published>2024-10-18T08:41:44Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=4f11a5312370ee33784a34213c24974baeb77b0f'/>
<id>urn:sha1:4f11a5312370ee33784a34213c24974baeb77b0f</id>
<content type='text'>
PR:		228615
MFC after:	2 days
Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D47166

(cherry picked from commit d643e82356d46a20a8f3f2f3c42573a6827d568a)
</content>
</entry>
<entry>
<title>snd_hda: Remove duplicate HDA_INTEL_CMLK* entries</title>
<updated>2024-10-20T11:21:06Z</updated>
<author>
<name>Christos Margiolis</name>
<email>christos@FreeBSD.org</email>
</author>
<published>2024-10-18T08:41:36Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=867b2ee999950ac5ef4c68d1edd9cd57a13519dc'/>
<id>urn:sha1:867b2ee999950ac5ef4c68d1edd9cd57a13519dc</id>
<content type='text'>
No functional change intended.

Sponsored by:	The FreeBSD Foundation
MFC after:	2 days
Reviewed by:	markj, emaste
Differential Revision:	https://reviews.freebsd.org/D47152

(cherry picked from commit de009cf68ba68aa5823be3d6afeebb49a15b1251)
</content>
</entry>
<entry>
<title>sound: Improve /dev/sndstat channel info readability</title>
<updated>2024-10-20T11:21:06Z</updated>
<author>
<name>Christos Margiolis</name>
<email>christos@FreeBSD.org</email>
</author>
<published>2024-10-18T08:41:23Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=565a9b8f86b203517e4e7210c912970adcf614f0'/>
<id>urn:sha1:565a9b8f86b203517e4e7210c912970adcf614f0</id>
<content type='text'>
Sponsored by:	The FreeBSD Foundation
MFC after:	2 days
Reviewed by:	dev_submerge.ch, zlei
Differential Revision:	https://reviews.freebsd.org/D46857

(cherry picked from commit 0ff0a8234f83e6b25e9a2f1b64623baaf723d6dc)
</content>
</entry>
</feed>
