#ifndef XONAR_DG_H_INCLUDED #define XONAR_DG_H_INCLUDED #include "oxygen.h" #define GPIO_MAGIC 0x0008 #define GPIO_HP_DETECT 0x0010 #define GPIO_INPUT_ROUTE 0x0060 #define GPIO_HP_REAR 0x0080 #define GPIO_OUTPUT_ENABLE 0x0100 #define CAPTURE_SRC_MIC 0 #define CAPTURE_SRC_FP_MIC 1 #define CAPTURE_SRC_LINE 2 #define CAPTURE_SRC_AUX 3 #define PLAYBACK_DST_HP 0 #define PLAYBACK_DST_HP_FP 1 #define PLAYBACK_DST_MULTICH 2 enum cs4245_shadow_operation { CS4245_SAVE_TO_SHADOW, CS4245_LOAD_FROM_SHADOW }; struct dg { /* shadow copy of the CS4245 register space */ unsigned char cs4245_shadow[17]; /* output select: headphone/speakers */ unsigned char output_sel; /* volumes for all capture sources */ char input_vol[4][2]; /* input select: mic/fp mic/line/aux */ unsigned char input_sel; }; /* Xonar DG control routines */ int cs4245_write_spi(struct oxygen *chip, u8 reg); int cs4245_read_spi(struct oxygen *chip, u8 reg); int cs4245_shadow_control(struct oxygen *chip, enum cs4245_shadow_operation op); void dg_init(struct oxygen *chip); void set_cs4245_dac_params(struct oxygen *chip, struct snd_pcm_hw_params *params); void set_cs4245_adc_params(struct oxygen *chip, struct snd_pcm_hw_params *params); unsigned int adjust_dg_dac_routing(struct oxygen *chip, unsigned int play_routing); void dump_cs4245_registers(struct oxygen *chip, struct snd_info_buffer *buffer); void dg_suspend(struct oxygen *chip); void dg_resume(struct oxygen *chip); void dg_cleanup(struct oxygen *chip); extern struct oxygen_model model_xonar_dg; #endif '/cgit.cgi/linux/net-next.git/refs/?id=059aa734824165507c65fd30a55ff000afd14983'>refslogtreecommitdiff
path: root/net/dccp
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2017-01-22 14:04:29 -0500
committerTrond Myklebust <trond.myklebust@primarydata.com>2017-01-24 12:50:47 -0500
commit059aa734824165507c65fd30a55ff000afd14983 (patch)
tree63defb4adb0656c4af72a05081b181b163f94b3e /net/dccp
parent8ac092519ad91931c96d306c4bfae2c6587c325f (diff)
nfs: Don't increment lock sequence ID after NFS4ERR_MOVED
Xuan Qi reports that the Linux NFSv4 client failed to lock a file that was migrated. The steps he observed on the wire: 1. The client sent a LOCK request to the source server 2. The source server replied NFS4ERR_MOVED 3. The client switched to the destination server 4. The client sent the same LOCK request to the destination server with a bumped lock sequence ID 5. The destination server rejected the LOCK request with NFS4ERR_BAD_SEQID RFC 3530 section 8.1.5 provides a list of NFS errors which do not bump a lock sequence ID. However, RFC 3530 is now obsoleted by RFC 7530. In RFC 7530 section 9.1.7, this list has been updated by the addition of NFS4ERR_MOVED. Reported-by: Xuan Qi <xuan.qi@oracle.com> Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Cc: stable@vger.kernel.org # v3.7+ Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'net/dccp')