Searched refs:cs5535au (Results 1 – 5 of 5) sorted by relevance
/sound/pci/cs5535audio/ |
D | cs5535audio.c | 63 static void wait_till_cmd_acked(struct cs5535audio *cs5535au, unsigned long timeout) in wait_till_cmd_acked() argument 67 tmp = cs_readl(cs5535au, ACC_CODEC_CNTL); in wait_till_cmd_acked() 73 dev_err(cs5535au->card->dev, in wait_till_cmd_acked() 77 static unsigned short snd_cs5535audio_codec_read(struct cs5535audio *cs5535au, in snd_cs5535audio_codec_read() argument 88 cs_writel(cs5535au, ACC_CODEC_CNTL, regdata); in snd_cs5535audio_codec_read() 89 wait_till_cmd_acked(cs5535au, 50); in snd_cs5535audio_codec_read() 93 val = cs_readl(cs5535au, ACC_CODEC_STATUS); in snd_cs5535audio_codec_read() 99 dev_err(cs5535au->card->dev, in snd_cs5535audio_codec_read() 106 static void snd_cs5535audio_codec_write(struct cs5535audio *cs5535au, in snd_cs5535audio_codec_write() argument 117 cs_writel(cs5535au, ACC_CODEC_CNTL, regdata); in snd_cs5535audio_codec_write() [all …]
|
D | cs5535audio_pcm.c | 82 struct cs5535audio *cs5535au = snd_pcm_substream_chip(substream); in snd_cs5535audio_playback_open() local 86 runtime->hw.rates = cs5535au->ac97->rates[AC97_RATES_FRONT_DAC]; in snd_cs5535audio_playback_open() 88 cs5535au->playback_substream = substream; in snd_cs5535audio_playback_open() 89 runtime->private_data = &(cs5535au->dmas[CS5535AUDIO_DMA_PLAYBACK]); in snd_cs5535audio_playback_open() 105 static int cs5535audio_build_dma_packets(struct cs5535audio *cs5535au, in cs5535audio_build_dma_packets() argument 120 snd_dma_pci_data(cs5535au->pci), in cs5535audio_build_dma_packets() 154 spin_lock_irq(&cs5535au->reg_lock); in cs5535audio_build_dma_packets() 155 dma->ops->disable_dma(cs5535au); in cs5535audio_build_dma_packets() 156 dma->ops->setup_prd(cs5535au, jmpprd_addr); in cs5535audio_build_dma_packets() 157 spin_unlock_irq(&cs5535au->reg_lock); in cs5535audio_build_dma_packets() [all …]
|
D | cs5535audio_pm.c | 18 static void snd_cs5535audio_stop_hardware(struct cs5535audio *cs5535au) in snd_cs5535audio_stop_hardware() argument 40 cs_writel(cs5535au, ACC_CODEC_CNTL, ACC_CODEC_CNTL_LNK_SHUTDOWN); in snd_cs5535audio_stop_hardware() 47 struct cs5535audio *cs5535au = card->private_data; in snd_cs5535audio_suspend() local 51 snd_ac97_suspend(cs5535au->ac97); in snd_cs5535audio_suspend() 53 struct cs5535audio_dma *dma = &cs5535au->dmas[i]; in snd_cs5535audio_suspend() 55 dma->saved_prd = dma->ops->read_prd(cs5535au); in snd_cs5535audio_suspend() 58 snd_cs5535audio_stop_hardware(cs5535au); in snd_cs5535audio_suspend() 65 struct cs5535audio *cs5535au = card->private_data; in snd_cs5535audio_resume() local 71 cs_writel(cs5535au, ACC_CODEC_CNTL, ACC_CODEC_CNTL_LNK_WRM_RST); in snd_cs5535audio_resume() 75 tmp = cs_readl(cs5535au, ACC_CODEC_STATUS); in snd_cs5535audio_resume() [all …]
|
D | cs5535audio.h | 5 #define cs_writel(cs5535au, reg, val) outl(val, (cs5535au)->port + reg) argument 6 #define cs_writeb(cs5535au, reg, val) outb(val, (cs5535au)->port + reg) argument 7 #define cs_readl(cs5535au, reg) inl((cs5535au)->port + reg) argument 8 #define cs_readw(cs5535au, reg) inw((cs5535au)->port + reg) argument 9 #define cs_readb(cs5535au, reg) inb((cs5535au)->port + reg) argument 61 void (*enable_dma)(struct cs5535audio *cs5535au); 62 void (*disable_dma)(struct cs5535audio *cs5535au); 63 void (*pause_dma)(struct cs5535audio *cs5535au); 64 void (*setup_prd)(struct cs5535audio *cs5535au, u32 prd_addr); 65 u32 (*read_prd)(struct cs5535audio *cs5535au); [all …]
|
D | cs5535audio_olpc.c | 79 struct cs5535audio *cs5535au = snd_kcontrol_chip(kctl); in olpc_dc_put() local 81 olpc_analog_input(cs5535au->ac97, v->value.integer.value[0]); in olpc_dc_put() 97 struct cs5535audio *cs5535au = snd_kcontrol_chip(kctl); in olpc_mic_get() local 98 struct snd_ac97 *ac97 = cs5535au->ac97; in olpc_mic_get() 108 struct cs5535audio *cs5535au = snd_kcontrol_chip(kctl); in olpc_mic_put() local 110 olpc_mic_bias(cs5535au->ac97, v->value.integer.value[0]); in olpc_mic_put()
|