diff options
Diffstat (limited to 'sound/pci/echoaudio')
-rw-r--r-- | sound/pci/echoaudio/darla20.c | 1 | ||||
-rw-r--r-- | sound/pci/echoaudio/darla24.c | 1 | ||||
-rw-r--r-- | sound/pci/echoaudio/echo3g.c | 1 | ||||
-rw-r--r-- | sound/pci/echoaudio/echoaudio.c | 18 | ||||
-rw-r--r-- | sound/pci/echoaudio/echoaudio.h | 2 | ||||
-rw-r--r-- | sound/pci/echoaudio/gina20.c | 1 | ||||
-rw-r--r-- | sound/pci/echoaudio/gina24.c | 1 | ||||
-rw-r--r-- | sound/pci/echoaudio/indigo.c | 1 | ||||
-rw-r--r-- | sound/pci/echoaudio/indigodj.c | 1 | ||||
-rw-r--r-- | sound/pci/echoaudio/indigoio.c | 1 | ||||
-rw-r--r-- | sound/pci/echoaudio/layla20.c | 1 | ||||
-rw-r--r-- | sound/pci/echoaudio/layla24.c | 1 | ||||
-rw-r--r-- | sound/pci/echoaudio/mia.c | 1 | ||||
-rw-r--r-- | sound/pci/echoaudio/mona.c | 1 |
14 files changed, 10 insertions, 22 deletions
diff --git a/sound/pci/echoaudio/darla20.c b/sound/pci/echoaudio/darla20.c index 87078d3a6854..8c6db3aa3c1a 100644 --- a/sound/pci/echoaudio/darla20.c +++ b/sound/pci/echoaudio/darla20.c | |||
@@ -36,7 +36,6 @@ | |||
36 | #define BX_NUM 10 | 36 | #define BX_NUM 10 |
37 | 37 | ||
38 | 38 | ||
39 | #include <sound/driver.h> | ||
40 | #include <linux/delay.h> | 39 | #include <linux/delay.h> |
41 | #include <linux/init.h> | 40 | #include <linux/init.h> |
42 | #include <linux/interrupt.h> | 41 | #include <linux/interrupt.h> |
diff --git a/sound/pci/echoaudio/darla24.c b/sound/pci/echoaudio/darla24.c index 42b48f9d2128..04cbf3eaf05a 100644 --- a/sound/pci/echoaudio/darla24.c +++ b/sound/pci/echoaudio/darla24.c | |||
@@ -40,7 +40,6 @@ | |||
40 | #define BX_NUM 10 | 40 | #define BX_NUM 10 |
41 | 41 | ||
42 | 42 | ||
43 | #include <sound/driver.h> | ||
44 | #include <linux/delay.h> | 43 | #include <linux/delay.h> |
45 | #include <linux/init.h> | 44 | #include <linux/init.h> |
46 | #include <linux/interrupt.h> | 45 | #include <linux/interrupt.h> |
diff --git a/sound/pci/echoaudio/echo3g.c b/sound/pci/echoaudio/echo3g.c index 8dbb7ac865c1..4022e43a0053 100644 --- a/sound/pci/echoaudio/echo3g.c +++ b/sound/pci/echoaudio/echo3g.c | |||
@@ -47,7 +47,6 @@ | |||
47 | #define BX_NUM chip->bx_num | 47 | #define BX_NUM chip->bx_num |
48 | 48 | ||
49 | 49 | ||
50 | #include <sound/driver.h> | ||
51 | #include <linux/delay.h> | 50 | #include <linux/delay.h> |
52 | #include <linux/init.h> | 51 | #include <linux/init.h> |
53 | #include <linux/interrupt.h> | 52 | #include <linux/interrupt.h> |
diff --git a/sound/pci/echoaudio/echoaudio.c b/sound/pci/echoaudio/echoaudio.c index 499ee1a5319d..90ec090792ba 100644 --- a/sound/pci/echoaudio/echoaudio.c +++ b/sound/pci/echoaudio/echoaudio.c | |||
@@ -378,7 +378,7 @@ static int pcm_digital_in_open(struct snd_pcm_substream *substream) | |||
378 | 378 | ||
379 | DE_ACT(("pcm_digital_in_open\n")); | 379 | DE_ACT(("pcm_digital_in_open\n")); |
380 | max_channels = num_digital_busses_in(chip) - substream->number; | 380 | max_channels = num_digital_busses_in(chip) - substream->number; |
381 | down(&chip->mode_mutex); | 381 | mutex_lock(&chip->mode_mutex); |
382 | if (chip->digital_mode == DIGITAL_MODE_ADAT) | 382 | if (chip->digital_mode == DIGITAL_MODE_ADAT) |
383 | err = pcm_open(substream, max_channels); | 383 | err = pcm_open(substream, max_channels); |
384 | else /* If the card has ADAT, subtract the 6 channels | 384 | else /* If the card has ADAT, subtract the 6 channels |
@@ -405,7 +405,7 @@ static int pcm_digital_in_open(struct snd_pcm_substream *substream) | |||
405 | chip->can_set_rate=0; | 405 | chip->can_set_rate=0; |
406 | 406 | ||
407 | din_exit: | 407 | din_exit: |
408 | up(&chip->mode_mutex); | 408 | mutex_unlock(&chip->mode_mutex); |
409 | return err; | 409 | return err; |
410 | } | 410 | } |
411 | 411 | ||
@@ -420,7 +420,7 @@ static int pcm_digital_out_open(struct snd_pcm_substream *substream) | |||
420 | 420 | ||
421 | DE_ACT(("pcm_digital_out_open\n")); | 421 | DE_ACT(("pcm_digital_out_open\n")); |
422 | max_channels = num_digital_busses_out(chip) - substream->number; | 422 | max_channels = num_digital_busses_out(chip) - substream->number; |
423 | down(&chip->mode_mutex); | 423 | mutex_lock(&chip->mode_mutex); |
424 | if (chip->digital_mode == DIGITAL_MODE_ADAT) | 424 | if (chip->digital_mode == DIGITAL_MODE_ADAT) |
425 | err = pcm_open(substream, max_channels); | 425 | err = pcm_open(substream, max_channels); |
426 | else /* If the card has ADAT, subtract the 6 channels | 426 | else /* If the card has ADAT, subtract the 6 channels |
@@ -447,7 +447,7 @@ static int pcm_digital_out_open(struct snd_pcm_substream *substream) | |||
447 | if (atomic_read(&chip->opencount) > 1 && chip->rate_set) | 447 | if (atomic_read(&chip->opencount) > 1 && chip->rate_set) |
448 | chip->can_set_rate=0; | 448 | chip->can_set_rate=0; |
449 | dout_exit: | 449 | dout_exit: |
450 | up(&chip->mode_mutex); | 450 | mutex_unlock(&chip->mode_mutex); |
451 | return err; | 451 | return err; |
452 | } | 452 | } |
453 | 453 | ||
@@ -1420,7 +1420,7 @@ static int snd_echo_digital_mode_put(struct snd_kcontrol *kcontrol, | |||
1420 | if (dmode != chip->digital_mode) { | 1420 | if (dmode != chip->digital_mode) { |
1421 | /* mode_mutex is required to make this operation atomic wrt | 1421 | /* mode_mutex is required to make this operation atomic wrt |
1422 | pcm_digital_*_open() and set_input_clock() functions. */ | 1422 | pcm_digital_*_open() and set_input_clock() functions. */ |
1423 | down(&chip->mode_mutex); | 1423 | mutex_lock(&chip->mode_mutex); |
1424 | 1424 | ||
1425 | /* Do not allow the user to change the digital mode when a pcm | 1425 | /* Do not allow the user to change the digital mode when a pcm |
1426 | device is open because it also changes the number of channels | 1426 | device is open because it also changes the number of channels |
@@ -1439,7 +1439,7 @@ static int snd_echo_digital_mode_put(struct snd_kcontrol *kcontrol, | |||
1439 | if (changed >= 0) | 1439 | if (changed >= 0) |
1440 | changed = 1; /* No errors */ | 1440 | changed = 1; /* No errors */ |
1441 | } | 1441 | } |
1442 | up(&chip->mode_mutex); | 1442 | mutex_unlock(&chip->mode_mutex); |
1443 | } | 1443 | } |
1444 | return changed; | 1444 | return changed; |
1445 | } | 1445 | } |
@@ -1566,12 +1566,12 @@ static int snd_echo_clock_source_put(struct snd_kcontrol *kcontrol, | |||
1566 | return -EINVAL; | 1566 | return -EINVAL; |
1567 | dclock = chip->clock_source_list[eclock]; | 1567 | dclock = chip->clock_source_list[eclock]; |
1568 | if (chip->input_clock != dclock) { | 1568 | if (chip->input_clock != dclock) { |
1569 | down(&chip->mode_mutex); | 1569 | mutex_lock(&chip->mode_mutex); |
1570 | spin_lock_irq(&chip->lock); | 1570 | spin_lock_irq(&chip->lock); |
1571 | if ((changed = set_input_clock(chip, dclock)) == 0) | 1571 | if ((changed = set_input_clock(chip, dclock)) == 0) |
1572 | changed = 1; /* no errors */ | 1572 | changed = 1; /* no errors */ |
1573 | spin_unlock_irq(&chip->lock); | 1573 | spin_unlock_irq(&chip->lock); |
1574 | up(&chip->mode_mutex); | 1574 | mutex_unlock(&chip->mode_mutex); |
1575 | } | 1575 | } |
1576 | 1576 | ||
1577 | if (changed < 0) | 1577 | if (changed < 0) |
@@ -1972,7 +1972,7 @@ static __devinit int snd_echo_create(struct snd_card *card, | |||
1972 | return err; | 1972 | return err; |
1973 | } | 1973 | } |
1974 | atomic_set(&chip->opencount, 0); | 1974 | atomic_set(&chip->opencount, 0); |
1975 | init_MUTEX(&chip->mode_mutex); | 1975 | mutex_init(&chip->mode_mutex); |
1976 | chip->can_set_rate = 1; | 1976 | chip->can_set_rate = 1; |
1977 | *rchip = chip; | 1977 | *rchip = chip; |
1978 | /* Init done ! */ | 1978 | /* Init done ! */ |
diff --git a/sound/pci/echoaudio/echoaudio.h b/sound/pci/echoaudio/echoaudio.h index 7e88c968e22f..1c88e051abf2 100644 --- a/sound/pci/echoaudio/echoaudio.h +++ b/sound/pci/echoaudio/echoaudio.h | |||
@@ -361,7 +361,7 @@ struct echoaudio { | |||
361 | spinlock_t lock; | 361 | spinlock_t lock; |
362 | struct snd_pcm_substream *substream[DSP_MAXPIPES]; | 362 | struct snd_pcm_substream *substream[DSP_MAXPIPES]; |
363 | int last_period[DSP_MAXPIPES]; | 363 | int last_period[DSP_MAXPIPES]; |
364 | struct semaphore mode_mutex; | 364 | struct mutex mode_mutex; |
365 | u16 num_digital_modes, digital_mode_list[6]; | 365 | u16 num_digital_modes, digital_mode_list[6]; |
366 | u16 num_clock_sources, clock_source_list[10]; | 366 | u16 num_clock_sources, clock_source_list[10]; |
367 | atomic_t opencount; | 367 | atomic_t opencount; |
diff --git a/sound/pci/echoaudio/gina20.c b/sound/pci/echoaudio/gina20.c index fee2d4831732..c0e64b8f52a4 100644 --- a/sound/pci/echoaudio/gina20.c +++ b/sound/pci/echoaudio/gina20.c | |||
@@ -40,7 +40,6 @@ | |||
40 | #define BX_NUM 14 | 40 | #define BX_NUM 14 |
41 | 41 | ||
42 | 42 | ||
43 | #include <sound/driver.h> | ||
44 | #include <linux/delay.h> | 43 | #include <linux/delay.h> |
45 | #include <linux/init.h> | 44 | #include <linux/init.h> |
46 | #include <linux/interrupt.h> | 45 | #include <linux/interrupt.h> |
diff --git a/sound/pci/echoaudio/gina24.c b/sound/pci/echoaudio/gina24.c index d5eae470fe9a..c36a78dd0b5e 100644 --- a/sound/pci/echoaudio/gina24.c +++ b/sound/pci/echoaudio/gina24.c | |||
@@ -46,7 +46,6 @@ | |||
46 | #define BX_NUM 26 | 46 | #define BX_NUM 26 |
47 | 47 | ||
48 | 48 | ||
49 | #include <sound/driver.h> | ||
50 | #include <linux/delay.h> | 49 | #include <linux/delay.h> |
51 | #include <linux/init.h> | 50 | #include <linux/init.h> |
52 | #include <linux/interrupt.h> | 51 | #include <linux/interrupt.h> |
diff --git a/sound/pci/echoaudio/indigo.c b/sound/pci/echoaudio/indigo.c index 40f601cd016f..0a58a7c1fd7c 100644 --- a/sound/pci/echoaudio/indigo.c +++ b/sound/pci/echoaudio/indigo.c | |||
@@ -38,7 +38,6 @@ | |||
38 | #define BX_NUM 2 | 38 | #define BX_NUM 2 |
39 | 39 | ||
40 | 40 | ||
41 | #include <sound/driver.h> | ||
42 | #include <linux/delay.h> | 41 | #include <linux/delay.h> |
43 | #include <linux/init.h> | 42 | #include <linux/init.h> |
44 | #include <linux/interrupt.h> | 43 | #include <linux/interrupt.h> |
diff --git a/sound/pci/echoaudio/indigodj.c b/sound/pci/echoaudio/indigodj.c index 771c5383210d..2db24d29332b 100644 --- a/sound/pci/echoaudio/indigodj.c +++ b/sound/pci/echoaudio/indigodj.c | |||
@@ -38,7 +38,6 @@ | |||
38 | #define BX_NUM 4 | 38 | #define BX_NUM 4 |
39 | 39 | ||
40 | 40 | ||
41 | #include <sound/driver.h> | ||
42 | #include <linux/delay.h> | 41 | #include <linux/delay.h> |
43 | #include <linux/init.h> | 42 | #include <linux/init.h> |
44 | #include <linux/interrupt.h> | 43 | #include <linux/interrupt.h> |
diff --git a/sound/pci/echoaudio/indigoio.c b/sound/pci/echoaudio/indigoio.c index 49c550defcf9..a60c0a0a89b7 100644 --- a/sound/pci/echoaudio/indigoio.c +++ b/sound/pci/echoaudio/indigoio.c | |||
@@ -39,7 +39,6 @@ | |||
39 | #define BX_NUM 4 | 39 | #define BX_NUM 4 |
40 | 40 | ||
41 | 41 | ||
42 | #include <sound/driver.h> | ||
43 | #include <linux/delay.h> | 42 | #include <linux/delay.h> |
44 | #include <linux/init.h> | 43 | #include <linux/init.h> |
45 | #include <linux/interrupt.h> | 44 | #include <linux/interrupt.h> |
diff --git a/sound/pci/echoaudio/layla20.c b/sound/pci/echoaudio/layla20.c index 8f5483a405ae..506194688995 100644 --- a/sound/pci/echoaudio/layla20.c +++ b/sound/pci/echoaudio/layla20.c | |||
@@ -45,7 +45,6 @@ | |||
45 | #define BX_NUM 22 | 45 | #define BX_NUM 22 |
46 | 46 | ||
47 | 47 | ||
48 | #include <sound/driver.h> | ||
49 | #include <linux/delay.h> | 48 | #include <linux/delay.h> |
50 | #include <linux/init.h> | 49 | #include <linux/init.h> |
51 | #include <linux/interrupt.h> | 50 | #include <linux/interrupt.h> |
diff --git a/sound/pci/echoaudio/layla24.c b/sound/pci/echoaudio/layla24.c index 0524667c02f7..e09e3ea7781e 100644 --- a/sound/pci/echoaudio/layla24.c +++ b/sound/pci/echoaudio/layla24.c | |||
@@ -47,7 +47,6 @@ | |||
47 | #define BX_NUM 32 | 47 | #define BX_NUM 32 |
48 | 48 | ||
49 | 49 | ||
50 | #include <sound/driver.h> | ||
51 | #include <linux/delay.h> | 50 | #include <linux/delay.h> |
52 | #include <linux/init.h> | 51 | #include <linux/init.h> |
53 | #include <linux/interrupt.h> | 52 | #include <linux/interrupt.h> |
diff --git a/sound/pci/echoaudio/mia.c b/sound/pci/echoaudio/mia.c index 893c7c20dd70..f3b9b45c9c1b 100644 --- a/sound/pci/echoaudio/mia.c +++ b/sound/pci/echoaudio/mia.c | |||
@@ -45,7 +45,6 @@ | |||
45 | #define BX_NUM 8 | 45 | #define BX_NUM 8 |
46 | 46 | ||
47 | 47 | ||
48 | #include <sound/driver.h> | ||
49 | #include <linux/delay.h> | 48 | #include <linux/delay.h> |
50 | #include <linux/init.h> | 49 | #include <linux/init.h> |
51 | #include <linux/interrupt.h> | 50 | #include <linux/interrupt.h> |
diff --git a/sound/pci/echoaudio/mona.c b/sound/pci/echoaudio/mona.c index 3a5d5b0020df..b05bad944901 100644 --- a/sound/pci/echoaudio/mona.c +++ b/sound/pci/echoaudio/mona.c | |||
@@ -44,7 +44,6 @@ | |||
44 | #define BX_NUM 26 | 44 | #define BX_NUM 26 |
45 | 45 | ||
46 | 46 | ||
47 | #include <sound/driver.h> | ||
48 | #include <linux/delay.h> | 47 | #include <linux/delay.h> |
49 | #include <linux/init.h> | 48 | #include <linux/init.h> |
50 | #include <linux/interrupt.h> | 49 | #include <linux/interrupt.h> |