FreeBSD Bugzilla – Attachment 214140 Details for
Bug 246206
dev/sound: SNDCTL_AUDIOINFO does not report PCM_CAP_VIRTUAL
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch
patch-sound.diff (text/plain), 1.05 KB, created by
Kevin Zheng
on 2020-05-05 04:02:28 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Kevin Zheng
Created:
2020-05-05 04:02:28 UTC
Size:
1.05 KB
patch
obsolete
>commit 4c93ea7432d4ca74ff4e634d1c0ab6f86f9ce514 >Author: Kevin Zheng <kevinz5000@gmail.com> >Date: Mon May 4 19:01:45 2020 -0700 > > Sound fix > >diff --git a/sys/dev/sound/pcm/dsp.c b/sys/dev/sound/pcm/dsp.c >index 99fcf8a16db..6186fbcb522 100644 >--- a/sys/dev/sound/pcm/dsp.c >+++ b/sys/dev/sound/pcm/dsp.c >@@ -2650,7 +2650,7 @@ dsp_oss_audioinfo(struct cdev *i_dev, oss_audioinfo *ai) > * @todo @c SNDCTL_AUDIOINFO::caps - Make drivers keep > * these in pcmchan::caps? > */ >- ai->caps = PCM_CAP_REALTIME | PCM_CAP_MMAP | PCM_CAP_TRIGGER | >+ ai->caps = PCM_CAP_REALTIME | PCM_CAP_MMAP | PCM_CAP_TRIGGER | caps->caps | > ((ch->direction == PCMDIR_PLAY) ? PCM_CAP_OUTPUT : PCM_CAP_INPUT); > > /* >diff --git a/sys/dev/sound/pcm/vchan.c b/sys/dev/sound/pcm/vchan.c >index d8e3509d0eb..287a348bdd6 100644 >--- a/sys/dev/sound/pcm/vchan.c >+++ b/sys/dev/sound/pcm/vchan.c >@@ -93,6 +93,7 @@ vchan_init(kobj_t obj, void *devinfo, struct snd_dbuf *b, > > CHN_UNLOCK(p); > >+ info->caps.caps = PCM_CAP_VIRTUAL; > c->flags |= CHN_F_VIRTUAL; > > return (info);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 246206
:
214136
| 214140