X-Git-Url: https://git.kernelconcepts.de/?a=blobdiff_plain;f=sound%2Fpci%2Fhda%2Fhda_codec.c;h=a249d5486889dca683af566e0818d95ee49b12ae;hb=060b85b0d3064032b6810928973f8c7a15ab9c11;hp=37f43a1b34ef1f5f48682230055c0f01d9a07449;hpb=312e0bce7f2d7fcf57f38f6e229a82eb4e0c2af4;p=karo-tx-linux.git diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c index 37f43a1b34ef..a249d5486889 100644 --- a/sound/pci/hda/hda_codec.c +++ b/sound/pci/hda/hda_codec.c @@ -3367,10 +3367,8 @@ int snd_hda_codec_build_pcms(struct hda_codec *codec) int dev, err; err = snd_hda_codec_parse_pcms(codec); - if (err < 0) { - snd_hda_codec_reset(codec); + if (err < 0) return err; - } /* attach a new PCM streams */ list_for_each_entry(cpcm, &codec->pcm_list_head, list) {