mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
Fix the command to launch DMA for 16bit samples.
Tested by: Steve Reid <sreid@sea-to-sky.net>
This commit is contained in:
parent
5eacf82188
commit
4bfc6d7e79
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=54590
@ -26,6 +26,8 @@
|
||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $FreeBSD$
|
||||
*
|
||||
*/
|
||||
|
||||
@ -378,8 +380,12 @@ sb16_dsp_trigger(int dev, int bits)
|
||||
|
||||
if (!bits)
|
||||
sb_dsp_command(0xd0); /* Halt DMA */
|
||||
else if (bits & irq_mode)
|
||||
sb_dsp_command(0xd4); /* Continue DMA */
|
||||
else if (bits & irq_mode) {
|
||||
if (dsp_16bit)
|
||||
sb_dsp_command(0xd6); /* Continue 16bit DMA */
|
||||
else
|
||||
sb_dsp_command(0xd4); /* Continue 8bit DMA */
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user