/***************************************************************************** * * Copyright (C) 2008 Cedric Bregardis and * Jean-Christian Hassler * * This file is part of the Audiowerk2 ALSA driver * * The Audiowerk2 ALSA driver is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as published by * the Free Software Foundation; version 2. * * The Audiowerk2 ALSA driver is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with the Audiowerk2 ALSA driver; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, * USA. * *****************************************************************************/ #ifndef AW2_SAA7146_H #define AW2_SAA7146_H #define NB_STREAM_PLAYBACK 2 #define NB_STREAM_CAPTURE 1 #define NUM_STREAM_PLAYBACK_ANA 0 #define NUM_STREAM_PLAYBACK_DIG 1 #define NUM_STREAM_CAPTURE_ANA 0 typedef void (*snd_aw2_saa7146_it_cb) (void *); struct snd_aw2_saa7146_cb_param { snd_aw2_saa7146_it_cb p_it_callback; void *p_callback_param; }; /* definition of the chip-specific record */ struct snd_aw2_saa7146 { void __iomem *base_addr; }; extern void snd_aw2_saa7146_setup(struct snd_aw2_saa7146 *chip, void __iomem *pci_base_addr); extern int snd_aw2_saa7146_free(struct snd_aw2_saa7146 *chip); extern void snd_aw2_saa7146_pcm_init_playback(struct snd_aw2_saa7146 *chip, int stream_number, unsigned long dma_addr, unsigned long period_size, unsigned long buffer_size); extern void snd_aw2_saa7146_pcm_init_capture(struct snd_aw2_saa7146 *chip, int stream_number, unsigned long dma_addr, unsigned long period_size, unsigned long buffer_size); extern void snd_aw2_saa7146_define_it_playback_callback(unsigned int stream_number, snd_aw2_saa7146_it_cb p_it_callback, void *p_callback_param); extern void snd_aw2_saa7146_define_it_capture_callback(unsigned int stream_number, snd_aw2_saa7146_it_cb p_it_callback, void *p_callback_param); extern void snd_aw2_saa7146_pcm_trigger_start_capture(struct snd_aw2_saa7146 *chip, int stream_number); extern void snd_aw2_saa7146_pcm_trigger_stop_capture(struct snd_aw2_saa7146 *chip, int stream_number); extern void snd_aw2_saa7146_pcm_trigger_start_playback(struct snd_aw2_saa7146 *chip, int stream_number); extern void snd_aw2_saa7146_pcm_trigger_stop_playback(struct snd_aw2_saa7146 *chip, int stream_number); extern irqreturn_t snd_aw2_saa7146_interrupt(int irq, void *dev_id); extern unsigned int snd_aw2_saa7146_get_hw_ptr_playback(struct snd_aw2_saa7146 *chip, int stream_number, unsigned char *start_addr, unsigned int buffer_size); extern unsigned int snd_aw2_saa7146_get_hw_ptr_capture(struct snd_aw2_saa7146 *chip, int stream_number, unsigned char *start_addr, unsigned int buffer_size); extern void snd_aw2_saa7146_use_digital_input(struct snd_aw2_saa7146 *chip, int use_digital); extern int snd_aw2_saa7146_is_using_digital_input(struct snd_aw2_saa7146 *chip); #endif el'>context:space:mode:
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>2017-01-29 15:07:34 +0300
committerDavid S. Miller <davem@davemloft.net>2017-01-30 22:05:43 -0500
commit1a0bee6c1e788218fd1d141db320db970aace7f0 (patch)
tree46c4116bc8ef4a7df718516a648597d9e21c15f1 /sound/oss/ad1848.c
parent63c190429020a9701b42887ac22c28f287f1762f (diff)
sh_eth: rename EESIPR bits
Since the commit b0ca2a21f769 ("sh_eth: Add support of SH7763 to sh_eth") the *enum* declaring the EESIPR bits (interrupt mask) went out of sync with the *enum* declaring the EESR bits (interrupt status) WRT bit naming and formatting. I'd like to restore the consistency by using EESIPR as the bit name prefix, renaming the *enum* to EESIPR_BIT, and (finally) renaming the bits according to the available Renesas SH77{34|63} manuals; additionally, reconstruct couple names using the EESR bit declaration above... Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'sound/oss/ad1848.c')