atiixp.c (8dd06ef34b6e2f41b29fbf5fc1663780f2524285) atiixp.c (c0dbbdad4e11f86d3e16fec50682c840e18a8135)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * ALSA driver for ATI IXP 150/200/250/300 AC97 controllers
4 *
5 * Copyright (c) 2004 Takashi Iwai <tiwai@suse.de>
6 */
7
8#include <linux/io.h>

--- 882 unchanged lines hidden (view full) ---

891 unsigned int data;
892
893 spin_lock_irq(&chip->reg_lock);
894 data = atiixp_read(chip, OUT_DMA_SLOT) & ~ATI_REG_OUT_DMA_SLOT_MASK;
895 switch (substream->runtime->channels) {
896 case 8:
897 data |= ATI_REG_OUT_DMA_SLOT_BIT(10) |
898 ATI_REG_OUT_DMA_SLOT_BIT(11);
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * ALSA driver for ATI IXP 150/200/250/300 AC97 controllers
4 *
5 * Copyright (c) 2004 Takashi Iwai <tiwai@suse.de>
6 */
7
8#include <linux/io.h>

--- 882 unchanged lines hidden (view full) ---

891 unsigned int data;
892
893 spin_lock_irq(&chip->reg_lock);
894 data = atiixp_read(chip, OUT_DMA_SLOT) & ~ATI_REG_OUT_DMA_SLOT_MASK;
895 switch (substream->runtime->channels) {
896 case 8:
897 data |= ATI_REG_OUT_DMA_SLOT_BIT(10) |
898 ATI_REG_OUT_DMA_SLOT_BIT(11);
899 /* fall through */
899 fallthrough;
900 case 6:
901 data |= ATI_REG_OUT_DMA_SLOT_BIT(7) |
902 ATI_REG_OUT_DMA_SLOT_BIT(8);
900 case 6:
901 data |= ATI_REG_OUT_DMA_SLOT_BIT(7) |
902 ATI_REG_OUT_DMA_SLOT_BIT(8);
903 /* fall through */
903 fallthrough;
904 case 4:
905 data |= ATI_REG_OUT_DMA_SLOT_BIT(6) |
906 ATI_REG_OUT_DMA_SLOT_BIT(9);
904 case 4:
905 data |= ATI_REG_OUT_DMA_SLOT_BIT(6) |
906 ATI_REG_OUT_DMA_SLOT_BIT(9);
907 /* fall through */
907 fallthrough;
908 default:
909 data |= ATI_REG_OUT_DMA_SLOT_BIT(3) |
910 ATI_REG_OUT_DMA_SLOT_BIT(4);
911 break;
912 }
913
914 /* set output threshold */
915 data |= 0x04 << ATI_REG_OUT_DMA_THRESHOLD_SHIFT;

--- 762 unchanged lines hidden ---
908 default:
909 data |= ATI_REG_OUT_DMA_SLOT_BIT(3) |
910 ATI_REG_OUT_DMA_SLOT_BIT(4);
911 break;
912 }
913
914 /* set output threshold */
915 data |= 0x04 << ATI_REG_OUT_DMA_THRESHOLD_SHIFT;

--- 762 unchanged lines hidden ---