/* * Linux driver for TerraTec DMX 6Fire USB * * Author: Torsten Schenk * Created: Jan 01, 2011 * Copyright: (C) Torsten Schenk * * 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. */ #ifndef USB6FIRE_CONTROL_H #define USB6FIRE_CONTROL_H #include "common.h" enum { CONTROL_MAX_ELEMENTS = 32 }; enum { CONTROL_RATE_44KHZ, CONTROL_RATE_48KHZ, CONTROL_RATE_88KHZ, CONTROL_RATE_96KHZ, CONTROL_RATE_176KHZ, CONTROL_RATE_192KHZ, CONTROL_N_RATES }; struct control_runtime { int (*update_streaming)(struct control_runtime *rt); int (*set_rate)(struct control_runtime *rt, int rate); int (*set_channels)(struct control_runtime *rt, int n_analog_out, int n_analog_in, bool spdif_out, bool spdif_in); struct sfire_chip *chip; struct snd_kcontrol *element[CONTROL_MAX_ELEMENTS]; bool opt_coax_switch; bool line_phono_switch; bool digital_thru_switch; bool usb_streaming; u8 output_vol[6]; u8 ovol_updated; u8 output_mute; s8 input_vol[2]; u8 ivol_updated; }; int usb6fire_control_init(struct sfire_chip *chip); void usb6fire_control_abort(struct sfire_chip *chip); void usb6fire_control_destroy(struct sfire_chip *chip); #endif /* USB6FIRE_CONTROL_H */ gsTobias Klauser
summaryrefslogtreecommitdiff
path: root/net/unix
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-02-05 18:10:35 +0100
committerJens Axboe <axboe@fb.com>2017-02-06 09:34:46 -0700
commiteeeefd41843218c55a8782a6920f044d9bf6207a (patch)
treec342eac46626e62745aa8e1a982626efca8b121d /net/unix
parentc14024dbb156c8392908aaa822097d27c6af8ec8 (diff)
block: don't try Write Same from __blkdev_issue_zeroout
Write Same can return an error asynchronously if it turns out the underlying SCSI device does not support Write Same, which makes a proper fallback to other methods in __blkdev_issue_zeroout impossible. Thus only issue a Write Same from blkdev_issue_zeroout an don't try it at all from __blkdev_issue_zeroout as a non-invasive workaround. Signed-off-by: Christoph Hellwig <hch@lst.de> Reported-by: Junichi Nomura <j-nomura@ce.jp.nec.com> Fixes: e73c23ff ("block: add async variant of blkdev_issue_zeroout") Tested-by: Junichi Nomura <j-nomura@ce.jp.nec.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'net/unix')