Use mss_{format,speed}() rather than chn_set{format,speed}() and hold

mss lock across call.

This allows my Thinkpad 600E to resume with the sound driver loaded and
vchans enabled.
This commit is contained in:
Matthew N. Dodd 2005-02-27 23:32:21 +00:00
parent e68909854c
commit c58d5e62ad

View File

@ -1825,8 +1825,10 @@ mss_resume(device_t dev)
if (mss->bd_id == MD_CS423X) { if (mss->bd_id == MD_CS423X) {
/* Needed on IBM Thinkpad 600E */ /* Needed on IBM Thinkpad 600E */
chn_setformat(mss->pch.channel, mss->pch.channel->format); mss_lock(mss);
chn_setspeed(mss->pch.channel, mss->pch.channel->speed); mss_format(&mss->pch, mss->pch.channel->format);
mss_speed(&mss->pch, mss->pch.channel->speed);
mss_unlock(mss);
} }
return 0; return 0;