diff options
| author | Rodrigo Vivi <[email protected]> | 2018-07-23 09:13:12 -0700 | 
|---|---|---|
| committer | Rodrigo Vivi <[email protected]> | 2018-07-23 09:13:12 -0700 | 
| commit | c74a7469f97c0f40b46e82ee979f9fb1bb6e847c (patch) | |
| tree | f2690a1a916b73ef94657fbf0e0141ae57701825 /sound/firewire/dice/dice.h | |
| parent | 6f15a7de86c8cf2dc09fc9e6d07047efa40ef809 (diff) | |
| parent | 500775074f88d9cf5416bed2ca19592812d62c41 (diff) | |
Merge drm/drm-next into drm-intel-next-queued
We need a backmerge to get DP_DPCD_REV_14 before we push other
i915 changes to dinq that could break compilation.
Signed-off-by: Rodrigo Vivi <[email protected]>
Diffstat (limited to 'sound/firewire/dice/dice.h')
| -rw-r--r-- | sound/firewire/dice/dice.h | 25 | 
1 files changed, 23 insertions, 2 deletions
| diff --git a/sound/firewire/dice/dice.h b/sound/firewire/dice/dice.h index da00e75e09d4..83353a3559e8 100644 --- a/sound/firewire/dice/dice.h +++ b/sound/firewire/dice/dice.h @@ -63,6 +63,16 @@   */  #define MAX_STREAMS	2 +enum snd_dice_rate_mode { +	SND_DICE_RATE_MODE_LOW = 0, +	SND_DICE_RATE_MODE_MIDDLE, +	SND_DICE_RATE_MODE_HIGH, +	SND_DICE_RATE_MODE_COUNT, +}; + +struct snd_dice; +typedef int (*snd_dice_detect_formats_t)(struct snd_dice *dice); +  struct snd_dice {  	struct snd_card *card;  	struct fw_unit *unit; @@ -80,6 +90,11 @@ struct snd_dice {  	unsigned int rsrv_offset;  	unsigned int clock_caps; +	unsigned int tx_pcm_chs[MAX_STREAMS][SND_DICE_RATE_MODE_COUNT]; +	unsigned int rx_pcm_chs[MAX_STREAMS][SND_DICE_RATE_MODE_COUNT]; +	unsigned int tx_midi_ports[MAX_STREAMS]; +	unsigned int rx_midi_ports[MAX_STREAMS]; +	snd_dice_detect_formats_t detect_formats;  	struct fw_address_handler notification_handler;  	int owner_generation; @@ -98,8 +113,6 @@ struct snd_dice {  	bool global_enabled;  	struct completion clock_accepted;  	unsigned int substreams_counter; - -	bool force_two_pcms;  };  enum snd_dice_addr_type { @@ -190,11 +203,14 @@ void snd_dice_transaction_destroy(struct snd_dice *dice);  #define SND_DICE_RATES_COUNT	7  extern const unsigned int snd_dice_rates[SND_DICE_RATES_COUNT]; +int snd_dice_stream_get_rate_mode(struct snd_dice *dice, unsigned int rate, +				  enum snd_dice_rate_mode *mode);  int snd_dice_stream_start_duplex(struct snd_dice *dice, unsigned int rate);  void snd_dice_stream_stop_duplex(struct snd_dice *dice);  int snd_dice_stream_init_duplex(struct snd_dice *dice);  void snd_dice_stream_destroy_duplex(struct snd_dice *dice);  void snd_dice_stream_update_duplex(struct snd_dice *dice); +int snd_dice_stream_detect_current_formats(struct snd_dice *dice);  int snd_dice_stream_lock_try(struct snd_dice *dice);  void snd_dice_stream_lock_release(struct snd_dice *dice); @@ -207,4 +223,9 @@ void snd_dice_create_proc(struct snd_dice *dice);  int snd_dice_create_midi(struct snd_dice *dice); +int snd_dice_detect_tcelectronic_formats(struct snd_dice *dice); +int snd_dice_detect_alesis_formats(struct snd_dice *dice); +int snd_dice_detect_extension_formats(struct snd_dice *dice); +int snd_dice_detect_mytek_formats(struct snd_dice *dice); +  #endif |