diff options
author | Takashi Iwai <tiwai@suse.de> | 2015-01-23 09:12:13 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2015-01-28 01:21:12 -0500 |
commit | ab5cdcbab2efb833b4c199d0b0a6603af080eaa2 (patch) | |
tree | 12e098b773ad20c120b17cf8c5a43eb3170c2f8c /sound/usb | |
parent | 9fb754b79e536eb35d69a4678687addff589e45b (diff) |
ALSA: line6: Drop voodoo workarounds
If the problem still really remains, we should fix it instead of
papering over it like this...
Tested-by: Chris Rorvick <chris@rorvick.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb')
-rw-r--r-- | sound/usb/line6/capture.c | 12 | ||||
-rw-r--r-- | sound/usb/line6/playback.c | 12 |
2 files changed, 0 insertions, 24 deletions
diff --git a/sound/usb/line6/capture.c b/sound/usb/line6/capture.c index 97283e631e45..bad1b5b02786 100644 --- a/sound/usb/line6/capture.c +++ b/sound/usb/line6/capture.c | |||
@@ -297,18 +297,6 @@ static int snd_line6_capture_hw_params(struct snd_pcm_substream *substream, | |||
297 | int ret; | 297 | int ret; |
298 | struct snd_line6_pcm *line6pcm = snd_pcm_substream_chip(substream); | 298 | struct snd_line6_pcm *line6pcm = snd_pcm_substream_chip(substream); |
299 | 299 | ||
300 | /* -- Florian Demski [FD] */ | ||
301 | /* don't ask me why, but this fixes the bug on my machine */ | ||
302 | if (line6pcm == NULL) { | ||
303 | if (substream->pcm == NULL) | ||
304 | return -ENOMEM; | ||
305 | if (substream->pcm->private_data == NULL) | ||
306 | return -ENOMEM; | ||
307 | substream->private_data = substream->pcm->private_data; | ||
308 | line6pcm = snd_pcm_substream_chip(substream); | ||
309 | } | ||
310 | /* -- [FD] end */ | ||
311 | |||
312 | ret = line6_pcm_acquire(line6pcm, LINE6_BIT_PCM_ALSA_CAPTURE_BUFFER); | 300 | ret = line6_pcm_acquire(line6pcm, LINE6_BIT_PCM_ALSA_CAPTURE_BUFFER); |
313 | 301 | ||
314 | if (ret < 0) | 302 | if (ret < 0) |
diff --git a/sound/usb/line6/playback.c b/sound/usb/line6/playback.c index ab9a83f0f864..7e031b1761aa 100644 --- a/sound/usb/line6/playback.c +++ b/sound/usb/line6/playback.c | |||
@@ -445,18 +445,6 @@ static int snd_line6_playback_hw_params(struct snd_pcm_substream *substream, | |||
445 | int ret; | 445 | int ret; |
446 | struct snd_line6_pcm *line6pcm = snd_pcm_substream_chip(substream); | 446 | struct snd_line6_pcm *line6pcm = snd_pcm_substream_chip(substream); |
447 | 447 | ||
448 | /* -- Florian Demski [FD] */ | ||
449 | /* don't ask me why, but this fixes the bug on my machine */ | ||
450 | if (line6pcm == NULL) { | ||
451 | if (substream->pcm == NULL) | ||
452 | return -ENOMEM; | ||
453 | if (substream->pcm->private_data == NULL) | ||
454 | return -ENOMEM; | ||
455 | substream->private_data = substream->pcm->private_data; | ||
456 | line6pcm = snd_pcm_substream_chip(substream); | ||
457 | } | ||
458 | /* -- [FD] end */ | ||
459 | |||
460 | ret = line6_pcm_acquire(line6pcm, LINE6_BIT_PCM_ALSA_PLAYBACK_BUFFER); | 448 | ret = line6_pcm_acquire(line6pcm, LINE6_BIT_PCM_ALSA_PLAYBACK_BUFFER); |
461 | 449 | ||
462 | if (ret < 0) | 450 | if (ret < 0) |