• Home
  • Raw
  • Download

Lines Matching refs:spdif

2226 	struct hda_spdif_out *spdif;  in snd_hda_spdif_default_get()  local
2231 spdif = snd_array_elem(&codec->spdif_out, idx); in snd_hda_spdif_default_get()
2232 ucontrol->value.iec958.status[0] = spdif->status & 0xff; in snd_hda_spdif_default_get()
2233 ucontrol->value.iec958.status[1] = (spdif->status >> 8) & 0xff; in snd_hda_spdif_default_get()
2234 ucontrol->value.iec958.status[2] = (spdif->status >> 16) & 0xff; in snd_hda_spdif_default_get()
2235 ucontrol->value.iec958.status[3] = (spdif->status >> 24) & 0xff; in snd_hda_spdif_default_get()
2332 struct hda_spdif_out *spdif; in snd_hda_spdif_default_put() local
2340 spdif = snd_array_elem(&codec->spdif_out, idx); in snd_hda_spdif_default_put()
2341 nid = spdif->nid; in snd_hda_spdif_default_put()
2342 spdif->status = ucontrol->value.iec958.status[0] | in snd_hda_spdif_default_put()
2346 val = convert_from_spdif_status(spdif->status); in snd_hda_spdif_default_put()
2347 val |= spdif->ctls & 1; in snd_hda_spdif_default_put()
2348 change = spdif->ctls != val; in snd_hda_spdif_default_put()
2349 spdif->ctls = val; in snd_hda_spdif_default_put()
2363 struct hda_spdif_out *spdif; in snd_hda_spdif_out_switch_get() local
2368 spdif = snd_array_elem(&codec->spdif_out, idx); in snd_hda_spdif_out_switch_get()
2369 ucontrol->value.integer.value[0] = spdif->ctls & AC_DIG1_ENABLE; in snd_hda_spdif_out_switch_get()
2390 struct hda_spdif_out *spdif; in snd_hda_spdif_out_switch_put() local
2398 spdif = snd_array_elem(&codec->spdif_out, idx); in snd_hda_spdif_out_switch_put()
2399 nid = spdif->nid; in snd_hda_spdif_out_switch_put()
2400 val = spdif->ctls & ~AC_DIG1_ENABLE; in snd_hda_spdif_out_switch_put()
2403 change = spdif->ctls != val; in snd_hda_spdif_out_switch_put()
2404 spdif->ctls = val; in snd_hda_spdif_out_switch_put()
2465 struct hda_spdif_out *spdif; in snd_hda_create_dig_out_ctls() local
2490 spdif = snd_array_new(&codec->spdif_out); in snd_hda_create_dig_out_ctls()
2491 if (!spdif) in snd_hda_create_dig_out_ctls()
2503 spdif->nid = cvt_nid; in snd_hda_create_dig_out_ctls()
2506 spdif->ctls = val; in snd_hda_create_dig_out_ctls()
2507 spdif->status = convert_to_spdif_status(spdif->ctls); in snd_hda_create_dig_out_ctls()
2522 struct hda_spdif_out *spdif; in snd_hda_spdif_out_of_nid() local
2525 snd_array_for_each(&codec->spdif_out, i, spdif) { in snd_hda_spdif_out_of_nid()
2526 if (spdif->nid == nid) in snd_hda_spdif_out_of_nid()
2527 return spdif; in snd_hda_spdif_out_of_nid()
2542 struct hda_spdif_out *spdif; in snd_hda_spdif_ctls_unassign() local
2547 spdif = snd_array_elem(&codec->spdif_out, idx); in snd_hda_spdif_ctls_unassign()
2548 spdif->nid = (u16)-1; in snd_hda_spdif_ctls_unassign()
2563 struct hda_spdif_out *spdif; in snd_hda_spdif_ctls_assign() local
2569 spdif = snd_array_elem(&codec->spdif_out, idx); in snd_hda_spdif_ctls_assign()
2570 if (spdif->nid != nid) { in snd_hda_spdif_ctls_assign()
2571 spdif->nid = nid; in snd_hda_spdif_ctls_assign()
2572 val = spdif->ctls; in snd_hda_spdif_ctls_assign()
3582 struct hda_spdif_out *spdif; in setup_dig_out_stream() local
3586 spdif = snd_hda_spdif_out_of_nid(codec, nid); in setup_dig_out_stream()
3590 if (WARN_ON(spdif == NULL)) in setup_dig_out_stream()
3596 (spdif->ctls & AC_DIG1_ENABLE) && in setup_dig_out_stream()
3603 spdif->ctls & ~AC_DIG1_ENABLE & 0xff, in setup_dig_out_stream()
3615 spdif->ctls & 0xff, -1); in setup_dig_out_stream()
3770 struct hda_spdif_out *spdif; in snd_hda_multi_out_analog_prepare() local
3774 spdif = snd_hda_spdif_out_of_nid(codec, mout->dig_out_nid); in snd_hda_multi_out_analog_prepare()
3777 if (chs == 2 && spdif != NULL && in snd_hda_multi_out_analog_prepare()
3780 !(spdif->status & IEC958_AES0_NONAUDIO)) { in snd_hda_multi_out_analog_prepare()