diff options
Diffstat (limited to 'sound/pci/hda')
-rw-r--r-- | sound/pci/hda/hda_codec.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c index be6cba349394..890b7566154a 100644 --- a/sound/pci/hda/hda_codec.c +++ b/sound/pci/hda/hda_codec.c | |||
@@ -1449,10 +1449,6 @@ static int set_pcm_default_values(struct hda_codec *codec, struct hda_pcm_stream | |||
1449 | snd_assert(info->nid, return -EINVAL); | 1449 | snd_assert(info->nid, return -EINVAL); |
1450 | info->ops.prepare = hda_pcm_default_prepare; | 1450 | info->ops.prepare = hda_pcm_default_prepare; |
1451 | } | 1451 | } |
1452 | if (info->ops.prepare == NULL) { | ||
1453 | snd_assert(info->nid, return -EINVAL); | ||
1454 | info->ops.prepare = hda_pcm_default_prepare; | ||
1455 | } | ||
1456 | if (info->ops.cleanup == NULL) { | 1452 | if (info->ops.cleanup == NULL) { |
1457 | snd_assert(info->nid, return -EINVAL); | 1453 | snd_assert(info->nid, return -EINVAL); |
1458 | info->ops.cleanup = hda_pcm_default_cleanup; | 1454 | info->ops.cleanup = hda_pcm_default_cleanup; |