#ifndef __SOUND_EWS_H #define __SOUND_EWS_H /* * ALSA driver for ICEnsemble ICE1712 (Envy24) * * Lowlevel functions for Terratec EWS88MT/D, EWX24/96, DMX 6Fire * * Copyright (c) 2000 Jaroslav Kysela * 2002 Takashi Iwai * * This program 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; either version 2 of the License, or * (at your option) any later version. * * This program 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 this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ #define EWS_DEVICE_DESC \ "{TerraTec,EWX 24/96},"\ "{TerraTec,EWS 88MT},"\ "{TerraTec,EWS 88D},"\ "{TerraTec,DMX 6Fire},"\ "{TerraTec,Phase 88}," \ "{terrasoniq,TS 88}," #define ICE1712_SUBDEVICE_EWX2496 0x3b153011 #define ICE1712_SUBDEVICE_EWS88MT 0x3b151511 #define ICE1712_SUBDEVICE_EWS88MT_NEW 0x3b152511 #define ICE1712_SUBDEVICE_EWS88D 0x3b152b11 #define ICE1712_SUBDEVICE_DMX6FIRE 0x3b153811 #define ICE1712_SUBDEVICE_PHASE88 0x3b155111 #define ICE1712_SUBDEVICE_TS88 0x3b157c11 /* entry point */ extern struct snd_ice1712_card_info snd_ice1712_ews_cards[]; /* TerraTec EWX 24/96 configuration definitions */ #define ICE1712_EWX2496_AK4524_CS 0x01 /* AK4524 chip select; low = active */ #define ICE1712_EWX2496_AIN_SEL 0x02 /* input sensitivity switch; high = louder */ #define ICE1712_EWX2496_AOUT_SEL 0x04 /* output sensitivity switch; high = louder */ #define ICE1712_EWX2496_RW 0x08 /* read/write switch for i2c; high = write */ #define ICE1712_EWX2496_SERIAL_DATA 0x10 /* i2c & ak4524 data */ #define ICE1712_EWX2496_SERIAL_CLOCK 0x20 /* i2c & ak4524 clock */ #define ICE1712_EWX2496_TX2 0x40 /* MIDI2 (not used) */ #define ICE1712_EWX2496_RX2 0x80 /* MIDI2 (not used) */ /* TerraTec EWS 88MT/D configuration definitions */ /* RW, SDA snd SCLK are identical with EWX24/96 */ #define ICE1712_EWS88_CS8414_RATE 0x07 /* CS8414 sample rate: gpio 0-2 */ #define ICE1712_EWS88_RW 0x08 /* read/write switch for i2c; high = write */ #define ICE1712_EWS88_SERIAL_DATA 0x10 /* i2c & ak4524 data */ #define ICE1712_EWS88_SERIAL_CLOCK 0x20 /* i2c & ak4524 clock */ #define ICE1712_EWS88_TX2 0x40 /* MIDI2 (only on 88D) */ #define ICE1712_EWS88_RX2 0x80 /* MIDI2 (only on 88D) */ /* i2c address */ #define ICE1712_EWS88MT_CS8404_ADDR (0x40>>1) #define ICE1712_EWS88MT_INPUT_ADDR (0x46>>1) #define ICE1712_EWS88MT_OUTPUT_ADDR (0x48>>1) #define ICE1712_EWS88MT_OUTPUT_SENSE 0x40 /* mask */ #define ICE1712_EWS88D_PCF_ADDR (0x40>>1) /* TerraTec DMX 6Fire configuration definitions */ #define ICE1712_6FIRE_AK4524_CS_MASK 0x07 /* AK4524 chip select #1-#3 */ #define ICE1712_6FIRE_RW 0x08 /* read/write switch for i2c; high = write */ #define ICE1712_6FIRE_SERIAL_DATA 0x10 /* i2c & ak4524 data */ #define ICE1712_6FIRE_SERIAL_CLOCK 0x20 /* i2c & ak4524 clock */ #define ICE1712_6FIRE_TX2 0x40 /* MIDI2 */ #define ICE1712_6FIRE_RX2 0x80 /* MIDI2 */ #define ICE1712_6FIRE_PCF9554_ADDR (0x40>>1) #define ICE1712_6FIRE_CS8427_ADDR (0x22) #endif /* __SOUND_EWS_H */ it/commit/drivers/usb/serial/mos7840.c?h=nds-private-remove&id=6d04dfc8966019b8b0977b2cb942351f13d2b178'>mos7840.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-02-01 11:52:27 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2017-02-01 11:52:27 -0800
commit6d04dfc8966019b8b0977b2cb942351f13d2b178 (patch)
tree2d4f239c1daff620704b77a992c1e70ce1ce6b08 /drivers/usb/serial/mos7840.c
parent2883aaea363f7a897ff06d2e6c73ae7aae285bcb (diff)
parent06425c308b92eaf60767bc71d359f4cbc7a561f8 (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Pull networking fixes from David Miller: 1) Fix handling of interrupt status in stmmac driver. Just because we have masked the event from generating interrupts, doesn't mean the bit won't still be set in the interrupt status register. From Alexey Brodkin. 2) Fix DMA API debugging splats in gianfar driver, from Arseny Solokha. 3) Fix off-by-one error in __ip6_append_data(), from Vlad Yasevich. 4) cls_flow does not match on icmpv6 codes properly, from Simon Horman. 5) Initial MAC address can be set incorrectly in some scenerios, from Ivan Vecera. 6) Packet header pointer arithmetic fix in ip6_tnl_parse_tlv_end_lim(), from Dan Carpenter. 7) Fix divide by zero in __tcp_select_window(), from Eric Dumazet. 8) Fix crash in iwlwifi when unregistering thermal zone, from Jens Axboe. 9) Check for DMA mapping errors in starfire driver, from Alexey Khoroshilov. * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net: (31 commits) tcp: fix 0 divide in __tcp_select_window() ipv6: pointer math error in ip6_tnl_parse_tlv_enc_lim() net: fix ndo_features_check/ndo_fix_features comment ordering net/sched: matchall: Fix configuration race be2net: fix initial MAC setting ipv6: fix flow labels when the traffic class is non-0 net: thunderx: avoid dereferencing xcv when NULL net/sched: cls_flower: Correct matching on ICMPv6 code ipv6: Paritially checksum full MTU frames net/mlx4_core: Avoid command timeouts during VF driver device shutdown gianfar: synchronize DMA API usage by free_skb_rx_queue w/ gfar_new_page net: ethtool: add support for 2500BaseT and 5000BaseT link modes can: bcm: fix hrtimer/tasklet termination in bcm op removal net: adaptec: starfire: add checks for dma mapping errors net: phy: micrel: KSZ8795 do not set SUPPORTED_[Asym_]Pause can: Fix kernel panic at security_sock_rcv_skb net: macb: Fix 64 bit addressing support for GEM stmmac: Discard masked flags in interrupt status register net/mlx5e: Check ets capability before ets query FW command net/mlx5e: Fix update of hash function/key via ethtool ...
Diffstat (limited to 'drivers/usb/serial/mos7840.c')