• Home
  • Raw
  • Download

Lines Matching refs:spdif

2227 	struct hda_spdif_out *spdif;  in snd_hda_spdif_default_get()  local
2232 spdif = snd_array_elem(&codec->spdif_out, idx); in snd_hda_spdif_default_get()
2233 ucontrol->value.iec958.status[0] = spdif->status & 0xff; in snd_hda_spdif_default_get()
2234 ucontrol->value.iec958.status[1] = (spdif->status >> 8) & 0xff; in snd_hda_spdif_default_get()
2235 ucontrol->value.iec958.status[2] = (spdif->status >> 16) & 0xff; in snd_hda_spdif_default_get()
2236 ucontrol->value.iec958.status[3] = (spdif->status >> 24) & 0xff; in snd_hda_spdif_default_get()
2333 struct hda_spdif_out *spdif; in snd_hda_spdif_default_put() local
2341 spdif = snd_array_elem(&codec->spdif_out, idx); in snd_hda_spdif_default_put()
2342 nid = spdif->nid; in snd_hda_spdif_default_put()
2343 spdif->status = ucontrol->value.iec958.status[0] | in snd_hda_spdif_default_put()
2347 val = convert_from_spdif_status(spdif->status); in snd_hda_spdif_default_put()
2348 val |= spdif->ctls & 1; in snd_hda_spdif_default_put()
2349 change = spdif->ctls != val; in snd_hda_spdif_default_put()
2350 spdif->ctls = val; in snd_hda_spdif_default_put()
2364 struct hda_spdif_out *spdif; in snd_hda_spdif_out_switch_get() local
2369 spdif = snd_array_elem(&codec->spdif_out, idx); in snd_hda_spdif_out_switch_get()
2370 ucontrol->value.integer.value[0] = spdif->ctls & AC_DIG1_ENABLE; in snd_hda_spdif_out_switch_get()
2391 struct hda_spdif_out *spdif; in snd_hda_spdif_out_switch_put() local
2399 spdif = snd_array_elem(&codec->spdif_out, idx); in snd_hda_spdif_out_switch_put()
2400 nid = spdif->nid; in snd_hda_spdif_out_switch_put()
2401 val = spdif->ctls & ~AC_DIG1_ENABLE; in snd_hda_spdif_out_switch_put()
2404 change = spdif->ctls != val; in snd_hda_spdif_out_switch_put()
2405 spdif->ctls = val; in snd_hda_spdif_out_switch_put()
2466 struct hda_spdif_out *spdif; in snd_hda_create_dig_out_ctls() local
2491 spdif = snd_array_new(&codec->spdif_out); in snd_hda_create_dig_out_ctls()
2492 if (!spdif) in snd_hda_create_dig_out_ctls()
2504 spdif->nid = cvt_nid; in snd_hda_create_dig_out_ctls()
2507 spdif->ctls = val; in snd_hda_create_dig_out_ctls()
2508 spdif->status = convert_to_spdif_status(spdif->ctls); in snd_hda_create_dig_out_ctls()
2523 struct hda_spdif_out *spdif; in snd_hda_spdif_out_of_nid() local
2526 snd_array_for_each(&codec->spdif_out, i, spdif) { in snd_hda_spdif_out_of_nid()
2527 if (spdif->nid == nid) in snd_hda_spdif_out_of_nid()
2528 return spdif; in snd_hda_spdif_out_of_nid()
2543 struct hda_spdif_out *spdif; in snd_hda_spdif_ctls_unassign() local
2548 spdif = snd_array_elem(&codec->spdif_out, idx); in snd_hda_spdif_ctls_unassign()
2549 spdif->nid = (u16)-1; in snd_hda_spdif_ctls_unassign()
2564 struct hda_spdif_out *spdif; in snd_hda_spdif_ctls_assign() local
2570 spdif = snd_array_elem(&codec->spdif_out, idx); in snd_hda_spdif_ctls_assign()
2571 if (spdif->nid != nid) { in snd_hda_spdif_ctls_assign()
2572 spdif->nid = nid; in snd_hda_spdif_ctls_assign()
2573 val = spdif->ctls; in snd_hda_spdif_ctls_assign()
3583 struct hda_spdif_out *spdif; in setup_dig_out_stream() local
3587 spdif = snd_hda_spdif_out_of_nid(codec, nid); in setup_dig_out_stream()
3591 if (WARN_ON(spdif == NULL)) in setup_dig_out_stream()
3597 (spdif->ctls & AC_DIG1_ENABLE) && in setup_dig_out_stream()
3604 spdif->ctls & ~AC_DIG1_ENABLE & 0xff, in setup_dig_out_stream()
3616 spdif->ctls & 0xff, -1); in setup_dig_out_stream()
3771 struct hda_spdif_out *spdif; in snd_hda_multi_out_analog_prepare() local
3775 spdif = snd_hda_spdif_out_of_nid(codec, mout->dig_out_nid); in snd_hda_multi_out_analog_prepare()
3778 if (chs == 2 && spdif != NULL && in snd_hda_multi_out_analog_prepare()
3781 !(spdif->status & IEC958_AES0_NONAUDIO)) { in snd_hda_multi_out_analog_prepare()