Home
last modified time | relevance | path

Searched full:chip (Results 1 – 25 of 6128) sorted by relevance

12345678910>>...246

/kernel/linux/linux-5.10/drivers/staging/rts5208/
Drtsx_card.c23 void do_remaining_work(struct rtsx_chip *chip) in do_remaining_work() argument
25 struct sd_info *sd_card = &chip->sd_card; in do_remaining_work()
27 struct xd_info *xd_card = &chip->xd_card; in do_remaining_work()
29 struct ms_info *ms_card = &chip->ms_card; in do_remaining_work()
31 if (chip->card_ready & SD_CARD) { in do_remaining_work()
33 rtsx_set_stat(chip, RTSX_STAT_RUN); in do_remaining_work()
41 if (chip->card_ready & XD_CARD) { in do_remaining_work()
43 rtsx_set_stat(chip, RTSX_STAT_RUN); in do_remaining_work()
51 if (chip->card_ready & MS_CARD) { in do_remaining_work()
54 rtsx_set_stat(chip, RTSX_STAT_RUN); in do_remaining_work()
[all …]
Drtsx_chip.c23 static void rtsx_calibration(struct rtsx_chip *chip) in rtsx_calibration() argument
25 rtsx_write_phy_register(chip, 0x1B, 0x135E); in rtsx_calibration()
27 rtsx_write_phy_register(chip, 0x00, 0x0280); in rtsx_calibration()
28 rtsx_write_phy_register(chip, 0x01, 0x7112); in rtsx_calibration()
29 rtsx_write_phy_register(chip, 0x01, 0x7110); in rtsx_calibration()
30 rtsx_write_phy_register(chip, 0x01, 0x7112); in rtsx_calibration()
31 rtsx_write_phy_register(chip, 0x01, 0x7113); in rtsx_calibration()
32 rtsx_write_phy_register(chip, 0x00, 0x0288); in rtsx_calibration()
35 void rtsx_enable_card_int(struct rtsx_chip *chip) in rtsx_enable_card_int() argument
37 u32 reg = rtsx_readl(chip, RTSX_BIER); in rtsx_enable_card_int()
[all …]
Dspi.c19 static inline void spi_set_err_code(struct rtsx_chip *chip, u8 err_code) in spi_set_err_code() argument
21 struct spi_info *spi = &chip->spi; in spi_set_err_code()
26 static int spi_init(struct rtsx_chip *chip) in spi_init() argument
30 retval = rtsx_write_register(chip, SPI_CONTROL, 0xFF, in spi_init()
35 retval = rtsx_write_register(chip, SPI_TCTL, EDO_TIMING_MASK, in spi_init()
43 static int spi_set_init_para(struct rtsx_chip *chip) in spi_set_init_para() argument
45 struct spi_info *spi = &chip->spi; in spi_set_init_para()
48 retval = rtsx_write_register(chip, SPI_CLK_DIVIDER1, 0xFF, in spi_set_init_para()
52 retval = rtsx_write_register(chip, SPI_CLK_DIVIDER0, 0xFF, in spi_set_init_para()
57 retval = switch_clock(chip, spi->spi_clock); in spi_set_init_para()
[all …]
/kernel/linux/linux-4.19/drivers/staging/rts5208/
Drtsx_card.c34 void do_remaining_work(struct rtsx_chip *chip) in do_remaining_work() argument
36 struct sd_info *sd_card = &chip->sd_card; in do_remaining_work()
38 struct xd_info *xd_card = &chip->xd_card; in do_remaining_work()
40 struct ms_info *ms_card = &chip->ms_card; in do_remaining_work()
42 if (chip->card_ready & SD_CARD) { in do_remaining_work()
44 rtsx_set_stat(chip, RTSX_STAT_RUN); in do_remaining_work()
52 if (chip->card_ready & XD_CARD) { in do_remaining_work()
54 rtsx_set_stat(chip, RTSX_STAT_RUN); in do_remaining_work()
62 if (chip->card_ready & MS_CARD) { in do_remaining_work()
65 rtsx_set_stat(chip, RTSX_STAT_RUN); in do_remaining_work()
[all …]
Drtsx_chip.c34 static void rtsx_calibration(struct rtsx_chip *chip) in rtsx_calibration() argument
36 rtsx_write_phy_register(chip, 0x1B, 0x135E); in rtsx_calibration()
38 rtsx_write_phy_register(chip, 0x00, 0x0280); in rtsx_calibration()
39 rtsx_write_phy_register(chip, 0x01, 0x7112); in rtsx_calibration()
40 rtsx_write_phy_register(chip, 0x01, 0x7110); in rtsx_calibration()
41 rtsx_write_phy_register(chip, 0x01, 0x7112); in rtsx_calibration()
42 rtsx_write_phy_register(chip, 0x01, 0x7113); in rtsx_calibration()
43 rtsx_write_phy_register(chip, 0x00, 0x0288); in rtsx_calibration()
46 void rtsx_enable_card_int(struct rtsx_chip *chip) in rtsx_enable_card_int() argument
48 u32 reg = rtsx_readl(chip, RTSX_BIER); in rtsx_enable_card_int()
[all …]
Dspi.c30 static inline void spi_set_err_code(struct rtsx_chip *chip, u8 err_code) in spi_set_err_code() argument
32 struct spi_info *spi = &chip->spi; in spi_set_err_code()
37 static int spi_init(struct rtsx_chip *chip) in spi_init() argument
41 retval = rtsx_write_register(chip, SPI_CONTROL, 0xFF, in spi_init()
47 retval = rtsx_write_register(chip, SPI_TCTL, EDO_TIMING_MASK, in spi_init()
56 static int spi_set_init_para(struct rtsx_chip *chip) in spi_set_init_para() argument
58 struct spi_info *spi = &chip->spi; in spi_set_init_para()
61 retval = rtsx_write_register(chip, SPI_CLK_DIVIDER1, 0xFF, in spi_set_init_para()
66 retval = rtsx_write_register(chip, SPI_CLK_DIVIDER0, 0xFF, in spi_set_init_para()
72 retval = switch_clock(chip, spi->spi_clock); in spi_set_init_para()
[all …]
/kernel/linux/linux-5.10/drivers/char/tpm/
Dtpm-chip.c15 * TPM chip management routines.
35 static int tpm_request_locality(struct tpm_chip *chip) in tpm_request_locality() argument
39 if (!chip->ops->request_locality) in tpm_request_locality()
42 rc = chip->ops->request_locality(chip, 0); in tpm_request_locality()
46 chip->locality = rc; in tpm_request_locality()
50 static void tpm_relinquish_locality(struct tpm_chip *chip) in tpm_relinquish_locality() argument
54 if (!chip->ops->relinquish_locality) in tpm_relinquish_locality()
57 rc = chip->ops->relinquish_locality(chip, chip->locality); in tpm_relinquish_locality()
59 dev_err(&chip->dev, "%s: : error %d\n", __func__, rc); in tpm_relinquish_locality()
61 chip->locality = -1; in tpm_relinquish_locality()
[all …]
/kernel/linux/linux-4.19/drivers/char/tpm/
Dtpm-chip.c14 * TPM chip management routines.
42 * @chip: Chip to ref
44 * The caller must already have some kind of locking to ensure that chip is
45 * valid. This function will lock the chip so that the ops member can be
49 * Returns -ERRNO if the chip could not be got.
51 int tpm_try_get_ops(struct tpm_chip *chip) in tpm_try_get_ops() argument
55 get_device(&chip->dev); in tpm_try_get_ops()
57 down_read(&chip->ops_sem); in tpm_try_get_ops()
58 if (!chip->ops) in tpm_try_get_ops()
63 up_read(&chip->ops_sem); in tpm_try_get_ops()
[all …]
/kernel/linux/linux-4.19/sound/pci/oxygen/
Doxygen_lib.c41 static inline int oxygen_uart_input_ready(struct oxygen *chip) in oxygen_uart_input_ready() argument
43 return !(oxygen_read8(chip, OXYGEN_MPU401 + 1) & MPU401_RX_EMPTY); in oxygen_uart_input_ready()
46 static void oxygen_read_uart(struct oxygen *chip) in oxygen_read_uart() argument
48 if (unlikely(!oxygen_uart_input_ready(chip))) { in oxygen_read_uart()
50 oxygen_read8(chip, OXYGEN_MPU401); in oxygen_read_uart()
54 u8 data = oxygen_read8(chip, OXYGEN_MPU401); in oxygen_read_uart()
57 if (chip->uart_input_count >= ARRAY_SIZE(chip->uart_input)) in oxygen_read_uart()
58 chip->uart_input_count = 0; in oxygen_read_uart()
59 chip->uart_input[chip->uart_input_count++] = data; in oxygen_read_uart()
60 } while (oxygen_uart_input_ready(chip)); in oxygen_read_uart()
[all …]
/kernel/linux/linux-5.10/sound/pci/oxygen/
Doxygen_lib.c29 static inline int oxygen_uart_input_ready(struct oxygen *chip) in oxygen_uart_input_ready() argument
31 return !(oxygen_read8(chip, OXYGEN_MPU401 + 1) & MPU401_RX_EMPTY); in oxygen_uart_input_ready()
34 static void oxygen_read_uart(struct oxygen *chip) in oxygen_read_uart() argument
36 if (unlikely(!oxygen_uart_input_ready(chip))) { in oxygen_read_uart()
38 oxygen_read8(chip, OXYGEN_MPU401); in oxygen_read_uart()
42 u8 data = oxygen_read8(chip, OXYGEN_MPU401); in oxygen_read_uart()
45 if (chip->uart_input_count >= ARRAY_SIZE(chip->uart_input)) in oxygen_read_uart()
46 chip->uart_input_count = 0; in oxygen_read_uart()
47 chip->uart_input[chip->uart_input_count++] = data; in oxygen_read_uart()
48 } while (oxygen_uart_input_ready(chip)); in oxygen_read_uart()
[all …]
/kernel/linux/linux-5.10/sound/isa/wss/
Dwss_lib.c8 * Yamaha OPL3-SA3 chip
151 static inline void wss_outb(struct snd_wss *chip, u8 offset, u8 val) in wss_outb() argument
153 outb(val, chip->port + offset); in wss_outb()
156 static inline u8 wss_inb(struct snd_wss *chip, u8 offset) in wss_inb() argument
158 return inb(chip->port + offset); in wss_inb()
161 static void snd_wss_wait(struct snd_wss *chip) in snd_wss_wait() argument
166 timeout > 0 && (wss_inb(chip, CS4231P(REGSEL)) & CS4231_INIT); in snd_wss_wait()
171 static void snd_wss_dout(struct snd_wss *chip, unsigned char reg, in snd_wss_dout() argument
177 timeout > 0 && (wss_inb(chip, CS4231P(REGSEL)) & CS4231_INIT); in snd_wss_dout()
180 wss_outb(chip, CS4231P(REGSEL), chip->mce_bit | reg); in snd_wss_dout()
[all …]
/kernel/linux/linux-4.19/sound/isa/wss/
Dwss_lib.c7 * Yamaha OPL3-SA3 chip
165 static inline void wss_outb(struct snd_wss *chip, u8 offset, u8 val) in wss_outb() argument
167 outb(val, chip->port + offset); in wss_outb()
170 static inline u8 wss_inb(struct snd_wss *chip, u8 offset) in wss_inb() argument
172 return inb(chip->port + offset); in wss_inb()
175 static void snd_wss_wait(struct snd_wss *chip) in snd_wss_wait() argument
180 timeout > 0 && (wss_inb(chip, CS4231P(REGSEL)) & CS4231_INIT); in snd_wss_wait()
185 static void snd_wss_dout(struct snd_wss *chip, unsigned char reg, in snd_wss_dout() argument
191 timeout > 0 && (wss_inb(chip, CS4231P(REGSEL)) & CS4231_INIT); in snd_wss_dout()
194 wss_outb(chip, CS4231P(REGSEL), chip->mce_bit | reg); in snd_wss_dout()
[all …]
/kernel/linux/linux-5.10/sound/pci/lola/
Dlola.c74 static int corb_send_verb(struct lola *chip, unsigned int nid, in corb_send_verb() argument
81 chip->last_cmd_nid = nid; in corb_send_verb()
82 chip->last_verb = verb; in corb_send_verb()
83 chip->last_data = data; in corb_send_verb()
84 chip->last_extdata = extdata; in corb_send_verb()
87 spin_lock_irqsave(&chip->reg_lock, flags); in corb_send_verb()
88 if (chip->rirb.cmds < LOLA_CORB_ENTRIES - 1) { in corb_send_verb()
89 unsigned int wp = chip->corb.wp + 1; in corb_send_verb()
91 chip->corb.wp = wp; in corb_send_verb()
92 chip->corb.buf[wp * 2] = cpu_to_le32(data); in corb_send_verb()
[all …]
/kernel/linux/linux-4.19/sound/pci/lola/
Dlola.c87 static int corb_send_verb(struct lola *chip, unsigned int nid, in corb_send_verb() argument
94 chip->last_cmd_nid = nid; in corb_send_verb()
95 chip->last_verb = verb; in corb_send_verb()
96 chip->last_data = data; in corb_send_verb()
97 chip->last_extdata = extdata; in corb_send_verb()
100 spin_lock_irqsave(&chip->reg_lock, flags); in corb_send_verb()
101 if (chip->rirb.cmds < LOLA_CORB_ENTRIES - 1) { in corb_send_verb()
102 unsigned int wp = chip->corb.wp + 1; in corb_send_verb()
104 chip->corb.wp = wp; in corb_send_verb()
105 chip->corb.buf[wp * 2] = cpu_to_le32(data); in corb_send_verb()
[all …]
/kernel/linux/linux-5.10/sound/isa/sb/
Dsb8_midi.c22 irqreturn_t snd_sb8dsp_midi_interrupt(struct snd_sb *chip) in snd_sb8dsp_midi_interrupt() argument
28 if (!chip) in snd_sb8dsp_midi_interrupt()
31 rmidi = chip->rmidi; in snd_sb8dsp_midi_interrupt()
33 inb(SBP(chip, DATA_AVAIL)); /* ack interrupt */ in snd_sb8dsp_midi_interrupt()
37 spin_lock(&chip->midi_input_lock); in snd_sb8dsp_midi_interrupt()
39 if (inb(SBP(chip, DATA_AVAIL)) & 0x80) { in snd_sb8dsp_midi_interrupt()
40 byte = inb(SBP(chip, READ)); in snd_sb8dsp_midi_interrupt()
41 if (chip->open & SB_OPEN_MIDI_INPUT_TRIGGER) { in snd_sb8dsp_midi_interrupt()
42 snd_rawmidi_receive(chip->midi_substream_input, &byte, 1); in snd_sb8dsp_midi_interrupt()
46 spin_unlock(&chip->midi_input_lock); in snd_sb8dsp_midi_interrupt()
[all …]
/kernel/linux/linux-5.10/sound/ppc/
Dpmac.c50 static int snd_pmac_dbdma_alloc(struct snd_pmac *chip, struct pmac_dbdma *rec, int size) in snd_pmac_dbdma_alloc() argument
54 rec->space = dma_alloc_coherent(&chip->pdev->dev, rsize, in snd_pmac_dbdma_alloc()
66 static void snd_pmac_dbdma_free(struct snd_pmac *chip, struct pmac_dbdma *rec) in snd_pmac_dbdma_free() argument
71 dma_free_coherent(&chip->pdev->dev, rsize, rec->space, rec->dma_base); in snd_pmac_dbdma_free()
84 unsigned int snd_pmac_rate_index(struct snd_pmac *chip, struct pmac_stream *rec, unsigned int rate) in snd_pmac_rate_index() argument
89 if (rate > chip->freq_table[0]) in snd_pmac_rate_index()
92 for (i = 0; i < chip->num_freqs; i++, ok >>= 1) { in snd_pmac_rate_index()
95 if (rate >= chip->freq_table[i]) in snd_pmac_rate_index()
113 static struct pmac_stream *snd_pmac_get_stream(struct snd_pmac *chip, int stream) in snd_pmac_get_stream() argument
117 return &chip->playback; in snd_pmac_get_stream()
[all …]
/kernel/linux/linux-4.19/drivers/net/dsa/mv88e6xxx/
Dglobal2.c19 #include "chip.h"
23 int mv88e6xxx_g2_read(struct mv88e6xxx_chip *chip, int reg, u16 *val) in mv88e6xxx_g2_read() argument
25 return mv88e6xxx_read(chip, chip->info->global2_addr, reg, val); in mv88e6xxx_g2_read()
28 int mv88e6xxx_g2_write(struct mv88e6xxx_chip *chip, int reg, u16 val) in mv88e6xxx_g2_write() argument
30 return mv88e6xxx_write(chip, chip->info->global2_addr, reg, val); in mv88e6xxx_g2_write()
33 int mv88e6xxx_g2_update(struct mv88e6xxx_chip *chip, int reg, u16 update) in mv88e6xxx_g2_update() argument
35 return mv88e6xxx_update(chip, chip->info->global2_addr, reg, update); in mv88e6xxx_g2_update()
38 int mv88e6xxx_g2_wait(struct mv88e6xxx_chip *chip, int reg, u16 mask) in mv88e6xxx_g2_wait() argument
40 return mv88e6xxx_wait(chip, chip->info->global2_addr, reg, mask); in mv88e6xxx_g2_wait()
45 static int mv88e6xxx_g2_int_source(struct mv88e6xxx_chip *chip, u16 *src) in mv88e6xxx_g2_int_source() argument
[all …]
/kernel/linux/linux-4.19/drivers/usb/typec/fusb302/
Dfusb302.c5 * Fairchild FUSB302 Type-C Chip Driver
37 * for the current capability offered by the SRC. As FUSB302 chip fires
98 /* lock for sharing chip states */
101 /* chip status */
135 static bool fusb302_log_full(struct fusb302_chip *chip) in fusb302_log_full() argument
137 return chip->logbuffer_tail == in fusb302_log_full()
138 (chip->logbuffer_head + 1) % LOG_BUFFER_ENTRIES; in fusb302_log_full()
141 static void _fusb302_log(struct fusb302_chip *chip, const char *fmt, in _fusb302_log() argument
148 if (!chip->logbuffer[chip->logbuffer_head]) { in _fusb302_log()
149 chip->logbuffer[chip->logbuffer_head] = in _fusb302_log()
[all …]
/kernel/linux/linux-5.10/drivers/net/dsa/mv88e6xxx/
Dglobal2.c15 #include "chip.h"
19 int mv88e6xxx_g2_read(struct mv88e6xxx_chip *chip, int reg, u16 *val) in mv88e6xxx_g2_read() argument
21 return mv88e6xxx_read(chip, chip->info->global2_addr, reg, val); in mv88e6xxx_g2_read()
24 int mv88e6xxx_g2_write(struct mv88e6xxx_chip *chip, int reg, u16 val) in mv88e6xxx_g2_write() argument
26 return mv88e6xxx_write(chip, chip->info->global2_addr, reg, val); in mv88e6xxx_g2_write()
29 int mv88e6xxx_g2_wait_bit(struct mv88e6xxx_chip *chip, int reg, int in mv88e6xxx_g2_wait_bit() argument
32 return mv88e6xxx_wait_bit(chip, chip->info->global2_addr, reg, in mv88e6xxx_g2_wait_bit()
38 static int mv88e6xxx_g2_int_source(struct mv88e6xxx_chip *chip, u16 *src) in mv88e6xxx_g2_int_source() argument
41 return mv88e6xxx_g2_read(chip, MV88E6XXX_G2_INT_SRC, src); in mv88e6xxx_g2_int_source()
46 static int mv88e6xxx_g2_int_mask(struct mv88e6xxx_chip *chip, u16 mask) in mv88e6xxx_g2_int_mask() argument
[all …]
/kernel/linux/linux-4.19/sound/pci/ymfpci/
Dymfpci_main.c46 static void snd_ymfpci_irq_wait(struct snd_ymfpci *chip);
48 static inline u8 snd_ymfpci_readb(struct snd_ymfpci *chip, u32 offset) in snd_ymfpci_readb() argument
50 return readb(chip->reg_area_virt + offset); in snd_ymfpci_readb()
53 static inline void snd_ymfpci_writeb(struct snd_ymfpci *chip, u32 offset, u8 val) in snd_ymfpci_writeb() argument
55 writeb(val, chip->reg_area_virt + offset); in snd_ymfpci_writeb()
58 static inline u16 snd_ymfpci_readw(struct snd_ymfpci *chip, u32 offset) in snd_ymfpci_readw() argument
60 return readw(chip->reg_area_virt + offset); in snd_ymfpci_readw()
63 static inline void snd_ymfpci_writew(struct snd_ymfpci *chip, u32 offset, u16 val) in snd_ymfpci_writew() argument
65 writew(val, chip->reg_area_virt + offset); in snd_ymfpci_writew()
68 static inline u32 snd_ymfpci_readl(struct snd_ymfpci *chip, u32 offset) in snd_ymfpci_readl() argument
[all …]
/kernel/linux/linux-5.10/drivers/usb/typec/tcpm/
Dfusb302.c5 * Fairchild FUSB302 Type-C Chip Driver
38 * for the current capability offered by the SRC. As FUSB302 chip fires
92 /* lock for sharing chip states */
95 /* chip status */
127 static bool fusb302_log_full(struct fusb302_chip *chip) in fusb302_log_full() argument
129 return chip->logbuffer_tail == in fusb302_log_full()
130 (chip->logbuffer_head + 1) % LOG_BUFFER_ENTRIES; in fusb302_log_full()
134 static void _fusb302_log(struct fusb302_chip *chip, const char *fmt, in _fusb302_log() argument
141 if (!chip->logbuffer[chip->logbuffer_head]) { in _fusb302_log()
142 chip->logbuffer[chip->logbuffer_head] = in _fusb302_log()
[all …]
/kernel/linux/linux-5.10/sound/pci/ymfpci/
Dymfpci_main.c32 static void snd_ymfpci_irq_wait(struct snd_ymfpci *chip);
34 static inline u8 snd_ymfpci_readb(struct snd_ymfpci *chip, u32 offset) in snd_ymfpci_readb() argument
36 return readb(chip->reg_area_virt + offset); in snd_ymfpci_readb()
39 static inline void snd_ymfpci_writeb(struct snd_ymfpci *chip, u32 offset, u8 val) in snd_ymfpci_writeb() argument
41 writeb(val, chip->reg_area_virt + offset); in snd_ymfpci_writeb()
44 static inline u16 snd_ymfpci_readw(struct snd_ymfpci *chip, u32 offset) in snd_ymfpci_readw() argument
46 return readw(chip->reg_area_virt + offset); in snd_ymfpci_readw()
49 static inline void snd_ymfpci_writew(struct snd_ymfpci *chip, u32 offset, u16 val) in snd_ymfpci_writew() argument
51 writew(val, chip->reg_area_virt + offset); in snd_ymfpci_writew()
54 static inline u32 snd_ymfpci_readl(struct snd_ymfpci *chip, u32 offset) in snd_ymfpci_readl() argument
[all …]
/kernel/linux/linux-4.19/drivers/misc/
Dapds990x.c3 * Chip is combined proximity and ambient light sensor.
117 /* Reverse chip factors for threshold calculation */
137 /* Chip parameters */
201 static int apds990x_read_byte(struct apds990x_chip *chip, u8 reg, u8 *data) in apds990x_read_byte() argument
203 struct i2c_client *client = chip->client; in apds990x_read_byte()
214 static int apds990x_read_word(struct apds990x_chip *chip, u8 reg, u16 *data) in apds990x_read_word() argument
216 struct i2c_client *client = chip->client; in apds990x_read_word()
227 static int apds990x_write_byte(struct apds990x_chip *chip, u8 reg, u8 data) in apds990x_write_byte() argument
229 struct i2c_client *client = chip->client; in apds990x_write_byte()
239 static int apds990x_write_word(struct apds990x_chip *chip, u8 reg, u16 data) in apds990x_write_word() argument
[all …]
/kernel/linux/linux-5.10/drivers/misc/
Dapds990x.c4 * Chip is combined proximity and ambient light sensor.
103 /* Reverse chip factors for threshold calculation */
123 /* Chip parameters */
186 static int apds990x_read_byte(struct apds990x_chip *chip, u8 reg, u8 *data) in apds990x_read_byte() argument
188 struct i2c_client *client = chip->client; in apds990x_read_byte()
199 static int apds990x_read_word(struct apds990x_chip *chip, u8 reg, u16 *data) in apds990x_read_word() argument
201 struct i2c_client *client = chip->client; in apds990x_read_word()
212 static int apds990x_write_byte(struct apds990x_chip *chip, u8 reg, u8 data) in apds990x_write_byte() argument
214 struct i2c_client *client = chip->client; in apds990x_write_byte()
224 static int apds990x_write_word(struct apds990x_chip *chip, u8 reg, u16 data) in apds990x_write_word() argument
[all …]
/kernel/linux/linux-4.19/sound/isa/sb/
Dsb16_main.c13 * Note: Some chip revisions have hardware bug. Changing capture
15 * 16bit DMA transfers from DSP chip (capture) until 8bit transfer
16 * to DSP chip (playback) starts. This bug can be avoided with
56 static void snd_sb16_csp_playback_prepare(struct snd_sb *chip, struct snd_pcm_runtime *runtime) in snd_sb16_csp_playback_prepare() argument
58 if (chip->hardware == SB_HW_16CSP) { in snd_sb16_csp_playback_prepare()
59 struct snd_sb_csp *csp = chip->csp; in snd_sb16_csp_playback_prepare()
89 if (csp->ops.csp_start(csp, (chip->mode & SB_MODE_PLAYBACK_16) ? in snd_sb16_csp_playback_prepare()
97 chip->open = SNDRV_SB_CSP_MODE_DSP_WRITE; in snd_sb16_csp_playback_prepare()
104 static void snd_sb16_csp_capture_prepare(struct snd_sb *chip, struct snd_pcm_runtime *runtime) in snd_sb16_csp_capture_prepare() argument
106 if (chip->hardware == SB_HW_16CSP) { in snd_sb16_csp_capture_prepare()
[all …]

12345678910>>...246