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
3d19e0574b
commit
fe6477f740
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user