Searched refs:cs5535au (Results 1 – 5 of 5) sorted by relevance
/sound/pci/cs5535audio/ |
D | cs5535audio.c | 77 static void wait_till_cmd_acked(struct cs5535audio *cs5535au, unsigned long timeout) in wait_till_cmd_acked() argument 81 tmp = cs_readl(cs5535au, ACC_CODEC_CNTL); in wait_till_cmd_acked() 87 dev_err(cs5535au->card->dev, in wait_till_cmd_acked() 91 static unsigned short snd_cs5535audio_codec_read(struct cs5535audio *cs5535au, in snd_cs5535audio_codec_read() argument 102 cs_writel(cs5535au, ACC_CODEC_CNTL, regdata); in snd_cs5535audio_codec_read() 103 wait_till_cmd_acked(cs5535au, 50); in snd_cs5535audio_codec_read() 107 val = cs_readl(cs5535au, ACC_CODEC_STATUS); in snd_cs5535audio_codec_read() 113 dev_err(cs5535au->card->dev, in snd_cs5535audio_codec_read() 120 static void snd_cs5535audio_codec_write(struct cs5535audio *cs5535au, in snd_cs5535audio_codec_write() argument 131 cs_writel(cs5535au, ACC_CODEC_CNTL, regdata); in snd_cs5535audio_codec_write() [all …]
|
D | cs5535audio_pcm.c | 95 struct cs5535audio *cs5535au = snd_pcm_substream_chip(substream); in snd_cs5535audio_playback_open() local 99 runtime->hw.rates = cs5535au->ac97->rates[AC97_RATES_FRONT_DAC]; in snd_cs5535audio_playback_open() 101 cs5535au->playback_substream = substream; in snd_cs5535audio_playback_open() 102 runtime->private_data = &(cs5535au->dmas[CS5535AUDIO_DMA_PLAYBACK]); in snd_cs5535audio_playback_open() 118 static int cs5535audio_build_dma_packets(struct cs5535audio *cs5535au, in cs5535audio_build_dma_packets() argument 133 snd_dma_pci_data(cs5535au->pci), in cs5535audio_build_dma_packets() 167 spin_lock_irq(&cs5535au->reg_lock); in cs5535audio_build_dma_packets() 168 dma->ops->disable_dma(cs5535au); in cs5535audio_build_dma_packets() 169 dma->ops->setup_prd(cs5535au, jmpprd_addr); in cs5535audio_build_dma_packets() 170 spin_unlock_irq(&cs5535au->reg_lock); in cs5535audio_build_dma_packets() [all …]
|
D | cs5535audio_pm.c | 32 static void snd_cs5535audio_stop_hardware(struct cs5535audio *cs5535au) in snd_cs5535audio_stop_hardware() argument 54 cs_writel(cs5535au, ACC_CODEC_CNTL, ACC_CODEC_CNTL_LNK_SHUTDOWN); in snd_cs5535audio_stop_hardware() 61 struct cs5535audio *cs5535au = card->private_data; in snd_cs5535audio_suspend() local 65 snd_pcm_suspend_all(cs5535au->pcm); in snd_cs5535audio_suspend() 66 snd_ac97_suspend(cs5535au->ac97); in snd_cs5535audio_suspend() 68 struct cs5535audio_dma *dma = &cs5535au->dmas[i]; in snd_cs5535audio_suspend() 70 dma->saved_prd = dma->ops->read_prd(cs5535au); in snd_cs5535audio_suspend() 73 snd_cs5535audio_stop_hardware(cs5535au); in snd_cs5535audio_suspend() 80 struct cs5535audio *cs5535au = card->private_data; in snd_cs5535audio_resume() local 86 cs_writel(cs5535au, ACC_CODEC_CNTL, ACC_CODEC_CNTL_LNK_WRM_RST); 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 | 83 struct cs5535audio *cs5535au = snd_kcontrol_chip(kctl); in olpc_dc_put() local 85 olpc_analog_input(cs5535au->ac97, v->value.integer.value[0]); in olpc_dc_put() 101 struct cs5535audio *cs5535au = snd_kcontrol_chip(kctl); in olpc_mic_get() local 102 struct snd_ac97 *ac97 = cs5535au->ac97; in olpc_mic_get() 112 struct cs5535audio *cs5535au = snd_kcontrol_chip(kctl); in olpc_mic_put() local 114 olpc_mic_bias(cs5535au->ac97, v->value.integer.value[0]); in olpc_mic_put()
|