aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Mack <zonque@gmail.com>2012-04-21 07:52:12 -0400
committerTakashi Iwai <tiwai@suse.de>2012-04-21 11:40:28 -0400
commitc89a5d9cacf2b862fea986a30b75359f6cf997c1 (patch)
treed3c450a860f18028dd7d509159bc08c7b76dd804
parentf6e94c372e3d37e25728275dfe60ad591d207a50 (diff)
ALSA: snd-usb: remove refactorization left-overs
Drop some struct members and definitions that became obsolete during the refactorization of the driver. Signed-off-by: Daniel Mack <zonque@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--sound/usb/card.h13
-rw-r--r--sound/usb/proc.c6
2 files changed, 1 insertions, 18 deletions
diff --git a/sound/usb/card.h b/sound/usb/card.h
index 77d2eec5e897..0d37238b8457 100644
--- a/sound/usb/card.h
+++ b/sound/usb/card.h
@@ -43,13 +43,6 @@ struct snd_urb_ctx {
43 struct list_head ready_list; 43 struct list_head ready_list;
44}; 44};
45 45
46struct snd_urb_ops {
47 int (*prepare)(struct snd_usb_substream *subs, struct snd_pcm_runtime *runtime, struct urb *u);
48 int (*retire)(struct snd_usb_substream *subs, struct snd_pcm_runtime *runtime, struct urb *u);
49 int (*prepare_sync)(struct snd_usb_substream *subs, struct snd_pcm_runtime *runtime, struct urb *u);
50 int (*retire_sync)(struct snd_usb_substream *subs, struct snd_pcm_runtime *runtime, struct urb *u);
51};
52
53struct snd_usb_endpoint { 46struct snd_usb_endpoint {
54 struct snd_usb_audio *chip; 47 struct snd_usb_audio *chip;
55 48
@@ -125,11 +118,6 @@ struct snd_usb_substream {
125 unsigned long active_mask; /* bitmask of active urbs */ 118 unsigned long active_mask; /* bitmask of active urbs */
126 unsigned long unlink_mask; /* bitmask of unlinked urbs */ 119 unsigned long unlink_mask; /* bitmask of unlinked urbs */
127 120
128 unsigned int nurbs; /* # urbs */
129 struct snd_urb_ctx dataurb[MAX_URBS]; /* data urb table */
130 struct snd_urb_ctx syncurb[SYNC_URBS]; /* sync urb table */
131 char *syncbuf; /* sync buffer for all sync URBs */
132 dma_addr_t sync_dma; /* DMA address of syncbuf */
133 /* data and sync endpoints for this stream */ 121 /* data and sync endpoints for this stream */
134 struct snd_usb_endpoint *data_endpoint; 122 struct snd_usb_endpoint *data_endpoint;
135 struct snd_usb_endpoint *sync_endpoint; 123 struct snd_usb_endpoint *sync_endpoint;
@@ -141,7 +129,6 @@ struct snd_usb_substream {
141 struct snd_pcm_hw_constraint_list rate_list; /* limited rates */ 129 struct snd_pcm_hw_constraint_list rate_list; /* limited rates */
142 spinlock_t lock; 130 spinlock_t lock;
143 131
144 struct snd_urb_ops ops; /* callbacks (must be filled at init) */
145 int last_frame_number; /* stored frame number */ 132 int last_frame_number; /* stored frame number */
146 int last_delay; /* stored delay */ 133 int last_delay; /* stored delay */
147}; 134};
diff --git a/sound/usb/proc.c b/sound/usb/proc.c
index 06e23d89d111..ebc1a5b5b3f1 100644
--- a/sound/usb/proc.c
+++ b/sound/usb/proc.c
@@ -25,6 +25,7 @@
25#include "usbaudio.h" 25#include "usbaudio.h"
26#include "helper.h" 26#include "helper.h"
27#include "card.h" 27#include "card.h"
28#include "endpoint.h"
28#include "proc.h" 29#include "proc.h"
29 30
30/* convert our full speed USB rate into sampling rate in Hz */ 31/* convert our full speed USB rate into sampling rate in Hz */
@@ -137,14 +138,9 @@ static void proc_dump_ep_status(struct snd_usb_substream *subs,
137static void proc_dump_substream_status(struct snd_usb_substream *subs, struct snd_info_buffer *buffer) 138static void proc_dump_substream_status(struct snd_usb_substream *subs, struct snd_info_buffer *buffer)
138{ 139{
139 if (subs->running) { 140 if (subs->running) {
140 unsigned int i;
141 snd_iprintf(buffer, " Status: Running\n"); 141 snd_iprintf(buffer, " Status: Running\n");
142 snd_iprintf(buffer, " Interface = %d\n", subs->interface); 142 snd_iprintf(buffer, " Interface = %d\n", subs->interface);
143 snd_iprintf(buffer, " Altset = %d\n", subs->altset_idx); 143 snd_iprintf(buffer, " Altset = %d\n", subs->altset_idx);
144 snd_iprintf(buffer, " URBs = %d [ ", subs->nurbs);
145 for (i = 0; i < subs->nurbs; i++)
146 snd_iprintf(buffer, "%d ", subs->dataurb[i].packets);
147 snd_iprintf(buffer, "]\n");
148 proc_dump_ep_status(subs, subs->data_endpoint, buffer); 144 proc_dump_ep_status(subs, subs->data_endpoint, buffer);
149 proc_dump_ep_status(subs, subs->sync_endpoint, buffer); 145 proc_dump_ep_status(subs, subs->sync_endpoint, buffer);
150 } else { 146 } else {