Page MenuHomeFreeBSD

sound: Busy the device in sysctl_dev_pcm_mode()
Needs ReviewPublic

Authored by christos on Fri, Oct 9, 9:12 AM.
Tags
None
Referenced Files
F175279612: D60509.diff
Fri, Oct 9, 4:08 PM
F175264608: D60509.id189176.diff
Fri, Oct 9, 1:47 PM
F175254503: D60509.diff
Fri, Oct 9, 11:24 AM
F175249475: D60509.diff
Fri, Oct 9, 10:27 AM
F175244688: D60509.id189176.diff
Fri, Oct 9, 9:37 AM
F175244495: D60509.diff
Fri, Oct 9, 9:35 AM
Subscribers

Details

Reviewers
markj
emaste
kib
Summary

PCM_LOCK does not protect anything here, since the counts are plain
ints, and the mixer pointer is set once in mixer_init() and never
cleared. It also does not protect against the device being freed.

Busy the device instead, as the other handlers do.

MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 77896
Build 74779: arc lint + arc unit