Lines Matching refs:channel
462 unsigned int channel) in snd_ali_enable_special_channel() argument
467 dwVal |= 1 << (channel & 0x0000001f); in snd_ali_enable_special_channel()
472 unsigned int channel) in snd_ali_disable_special_channel() argument
477 dwVal &= ~(1 << (channel & 0x0000001f)); in snd_ali_disable_special_channel()
502 unsigned int channel) in snd_ali_disable_voice_irq() argument
507 dev_dbg(codec->card->dev, "disable_voice_irq channel=%d\n", channel); in snd_ali_disable_voice_irq()
509 mask = 1 << (channel & 0x1f); in snd_ali_disable_voice_irq()
515 static int snd_ali_alloc_pcm_channel(struct snd_ali *codec, int channel) in snd_ali_alloc_pcm_channel() argument
517 unsigned int idx = channel & 0x1f; in snd_ali_alloc_pcm_channel()
583 static void snd_ali_free_channel_pcm(struct snd_ali *codec, int channel) in snd_ali_free_channel_pcm() argument
585 unsigned int idx = channel & 0x0000001f; in snd_ali_free_channel_pcm()
587 dev_dbg(codec->card->dev, "free_channel_pcm channel=%d\n", channel); in snd_ali_free_channel_pcm()
589 if (channel < 0 || channel >= ALI_CHANNELS) in snd_ali_free_channel_pcm()
595 channel); in snd_ali_free_channel_pcm()
603 static void snd_ali_stop_voice(struct snd_ali *codec, unsigned int channel) in snd_ali_stop_voice() argument
605 unsigned int mask = 1 << (channel & 0x1f); in snd_ali_stop_voice()
607 dev_dbg(codec->card->dev, "stop_voice: channel=%d\n", channel); in snd_ali_stop_voice()
833 static void snd_ali_update_ptr(struct snd_ali *codec, int channel) in snd_ali_update_ptr() argument
843 mask = 1U << (channel & 0x1f); in snd_ali_update_ptr()
848 pvoice = &codec->synth.voices[channel]; in snd_ali_update_ptr()
864 snd_ali_stop_voice(codec, channel); in snd_ali_update_ptr()
865 snd_ali_disable_voice_irq(codec, channel); in snd_ali_update_ptr()
867 } else if (codec->synth.voices[channel].synth) { in snd_ali_update_ptr()
869 } else if (codec->synth.voices[channel].midi) { in snd_ali_update_ptr()
873 snd_ali_stop_voice(codec, channel); in snd_ali_update_ptr()
874 snd_ali_disable_voice_irq(codec, channel); in snd_ali_update_ptr()
884 int channel; in snd_ali_card_interrupt() local
899 for (channel = 0; channel < ALI_CHANNELS; channel++) in snd_ali_card_interrupt()
900 snd_ali_update_ptr(codec, channel); in snd_ali_card_interrupt()
910 int type, int rec, int channel) in snd_ali_alloc_voice() argument
919 idx = channel > 0 ? snd_ali_alloc_pcm_channel(codec, channel) : in snd_ali_alloc_voice()
1479 int channel, struct snd_pcm_hardware *phw) in snd_ali_open() argument
1486 channel); in snd_ali_open()
1586 int channel) in snd_ali_modem_open() argument
1594 int err = snd_ali_open(substream, rec, channel, &snd_ali_modem); in snd_ali_modem_open()