1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

Set extmode according to extcaps. Fixes codec sample rate failures

that causes noisy playback with rates other than 48k (reported by
Olexander Kunytsa).

MFC after:	3 days
This commit is contained in:
Orion Hodson 2001-11-21 04:06:52 +00:00
parent 49bc93d736
commit 2065c8c619
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=86706

View File

@ -494,8 +494,8 @@ via_attach(device_t dev)
mixer_init(dev, ac97_getmixerclass(), via->codec);
via->codec_caps = ac97_getextcaps(via->codec);
if (via->codec_caps & AC97_EXTCAP_VRA)
ac97_setextmode(via->codec, AC97_EXTCAP_VRA | AC97_EXTCAP_VRM);
ac97_setextmode(via->codec,
via->codec_caps & (AC97_EXTCAP_VRA | AC97_EXTCAP_VRM));
/* DMA tag for buffers */
if (bus_dma_tag_create(/*parent*/NULL, /*alignment*/2, /*boundary*/0,