Lines Matching refs:ret
267 int ret = 0;
280 ret = snd_hda_codec_prepare(hda_pvt->codec, hda_stream,
282 if (ret < 0)
283 dev_err(&hdev->dev, "codec prepare failed %d\n", ret);
285 return ret;
404 int ret;
423 ret = snd_hda_codec_device_new(hcodec->bus, component->card->snd_card,
425 if (ret < 0) {
426 dev_err(&hdev->dev, "failed to create hda codec %d\n", ret);
444 ret = snd_hda_codec_set_name(hcodec, hcodec->preset->name);
445 if (ret < 0) {
450 ret = snd_hdac_regmap_init(&hcodec->core);
451 if (ret < 0) {
458 ret = patch(hcodec);
459 if (ret < 0) {
460 dev_err(&hdev->dev, "patch failed %d\n", ret);
467 ret = snd_hda_codec_parse_pcms(hcodec);
468 if (ret < 0) {
469 dev_err(&hdev->dev, "unable to map pcms to dai %d\n", ret);
475 ret = snd_hda_codec_build_controls(hcodec);
476 if (ret < 0) {
478 ret);
511 return ret;
595 int ret;
607 ret = devm_snd_soc_register_component(&hdev->dev,
611 ret = devm_snd_soc_register_component(&hdev->dev,
615 if (ret < 0) {
616 dev_err(&hdev->dev, "failed to register HDA codec %d\n", ret);
617 return ret;
622 return ret;