From e90b5454e87499f8c692c6844dd4fc03ea560559 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Thu, 5 Feb 2004 17:57:39 +0100 Subject: [PATCH] ALSA CVS update - Takashi Iwai ICE1724 driver Davy Wentzler : - fixed the access in trigger callback to byte access. (may fix the problem on ppc.) --- sound/pci/ice1712/ice1724.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/sound/pci/ice1712/ice1724.c b/sound/pci/ice1712/ice1724.c index f72415e3ada99..3103b84eec492 100644 --- a/sound/pci/ice1712/ice1724.c +++ b/sound/pci/ice1712/ice1724.c @@ -295,8 +295,8 @@ static snd_pcm_hw_constraint_list_t hw_constraints_channels = { static int snd_vt1724_pcm_trigger(snd_pcm_substream_t *substream, int cmd) { ice1712_t *ice = snd_pcm_substream_chip(substream); - unsigned int what; - unsigned int old; + unsigned char what; + unsigned char old; struct list_head *pos; snd_pcm_substream_t *s; @@ -316,12 +316,12 @@ static int snd_vt1724_pcm_trigger(snd_pcm_substream_t *substream, int cmd) what |= VT1724_RDMA1_PAUSE; } spin_lock(&ice->reg_lock); - old = inl(ICEMT1724(ice, DMA_PAUSE)); + old = inb(ICEMT1724(ice, DMA_PAUSE)); if (cmd == SNDRV_PCM_TRIGGER_PAUSE_PUSH) old |= what; else old &= ~what; - outl(old, ICEMT1724(ice, DMA_PAUSE)); + outb(old, ICEMT1724(ice, DMA_PAUSE)); spin_unlock(&ice->reg_lock); break; @@ -346,12 +346,12 @@ static int snd_vt1724_pcm_trigger(snd_pcm_substream_t *substream, int cmd) } } spin_lock(&ice->reg_lock); - old = inl(ICEMT1724(ice, DMA_CONTROL)); + old = inb(ICEMT1724(ice, DMA_CONTROL)); if (cmd == SNDRV_PCM_TRIGGER_START) old |= what; else old &= ~what; - outl(old, ICEMT1724(ice, DMA_CONTROL)); + outb(old, ICEMT1724(ice, DMA_CONTROL)); spin_unlock(&ice->reg_lock); break; -- 2.53.0