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:
parent
49bc93d736
commit
2065c8c619
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=86706
@ -494,8 +494,8 @@ via_attach(device_t dev)
|
|||||||
mixer_init(dev, ac97_getmixerclass(), via->codec);
|
mixer_init(dev, ac97_getmixerclass(), via->codec);
|
||||||
|
|
||||||
via->codec_caps = ac97_getextcaps(via->codec);
|
via->codec_caps = ac97_getextcaps(via->codec);
|
||||||
if (via->codec_caps & AC97_EXTCAP_VRA)
|
ac97_setextmode(via->codec,
|
||||||
ac97_setextmode(via->codec, AC97_EXTCAP_VRA | AC97_EXTCAP_VRM);
|
via->codec_caps & (AC97_EXTCAP_VRA | AC97_EXTCAP_VRM));
|
||||||
|
|
||||||
/* DMA tag for buffers */
|
/* DMA tag for buffers */
|
||||||
if (bus_dma_tag_create(/*parent*/NULL, /*alignment*/2, /*boundary*/0,
|
if (bus_dma_tag_create(/*parent*/NULL, /*alignment*/2, /*boundary*/0,
|
||||||
|
Loading…
Reference in New Issue
Block a user