Lines Matching refs:spdif
2223 struct hda_spdif_out *spdif; in snd_hda_spdif_default_get() local
2228 spdif = snd_array_elem(&codec->spdif_out, idx); in snd_hda_spdif_default_get()
2229 ucontrol->value.iec958.status[0] = spdif->status & 0xff; in snd_hda_spdif_default_get()
2230 ucontrol->value.iec958.status[1] = (spdif->status >> 8) & 0xff; in snd_hda_spdif_default_get()
2231 ucontrol->value.iec958.status[2] = (spdif->status >> 16) & 0xff; in snd_hda_spdif_default_get()
2232 ucontrol->value.iec958.status[3] = (spdif->status >> 24) & 0xff; in snd_hda_spdif_default_get()
2329 struct hda_spdif_out *spdif; in snd_hda_spdif_default_put() local
2337 spdif = snd_array_elem(&codec->spdif_out, idx); in snd_hda_spdif_default_put()
2338 nid = spdif->nid; in snd_hda_spdif_default_put()
2339 spdif->status = ucontrol->value.iec958.status[0] | in snd_hda_spdif_default_put()
2343 val = convert_from_spdif_status(spdif->status); in snd_hda_spdif_default_put()
2344 val |= spdif->ctls & 1; in snd_hda_spdif_default_put()
2345 change = spdif->ctls != val; in snd_hda_spdif_default_put()
2346 spdif->ctls = val; in snd_hda_spdif_default_put()
2360 struct hda_spdif_out *spdif; in snd_hda_spdif_out_switch_get() local
2365 spdif = snd_array_elem(&codec->spdif_out, idx); in snd_hda_spdif_out_switch_get()
2366 ucontrol->value.integer.value[0] = spdif->ctls & AC_DIG1_ENABLE; in snd_hda_spdif_out_switch_get()
2387 struct hda_spdif_out *spdif; in snd_hda_spdif_out_switch_put() local
2395 spdif = snd_array_elem(&codec->spdif_out, idx); in snd_hda_spdif_out_switch_put()
2396 nid = spdif->nid; in snd_hda_spdif_out_switch_put()
2397 val = spdif->ctls & ~AC_DIG1_ENABLE; in snd_hda_spdif_out_switch_put()
2400 change = spdif->ctls != val; in snd_hda_spdif_out_switch_put()
2401 spdif->ctls = val; in snd_hda_spdif_out_switch_put()
2462 struct hda_spdif_out *spdif; in snd_hda_create_dig_out_ctls() local
2487 spdif = snd_array_new(&codec->spdif_out); in snd_hda_create_dig_out_ctls()
2488 if (!spdif) in snd_hda_create_dig_out_ctls()
2500 spdif->nid = cvt_nid; in snd_hda_create_dig_out_ctls()
2503 spdif->ctls = val; in snd_hda_create_dig_out_ctls()
2504 spdif->status = convert_to_spdif_status(spdif->ctls); in snd_hda_create_dig_out_ctls()
2519 struct hda_spdif_out *spdif; in snd_hda_spdif_out_of_nid() local
2522 snd_array_for_each(&codec->spdif_out, i, spdif) { in snd_hda_spdif_out_of_nid()
2523 if (spdif->nid == nid) in snd_hda_spdif_out_of_nid()
2524 return spdif; in snd_hda_spdif_out_of_nid()
2539 struct hda_spdif_out *spdif; in snd_hda_spdif_ctls_unassign() local
2544 spdif = snd_array_elem(&codec->spdif_out, idx); in snd_hda_spdif_ctls_unassign()
2545 spdif->nid = (u16)-1; in snd_hda_spdif_ctls_unassign()
2560 struct hda_spdif_out *spdif; in snd_hda_spdif_ctls_assign() local
2566 spdif = snd_array_elem(&codec->spdif_out, idx); in snd_hda_spdif_ctls_assign()
2567 if (spdif->nid != nid) { in snd_hda_spdif_ctls_assign()
2568 spdif->nid = nid; in snd_hda_spdif_ctls_assign()
2569 val = spdif->ctls; in snd_hda_spdif_ctls_assign()
3584 struct hda_spdif_out *spdif; in setup_dig_out_stream() local
3588 spdif = snd_hda_spdif_out_of_nid(codec, nid); in setup_dig_out_stream()
3592 if (WARN_ON(spdif == NULL)) in setup_dig_out_stream()
3598 (spdif->ctls & AC_DIG1_ENABLE) && in setup_dig_out_stream()
3605 spdif->ctls & ~AC_DIG1_ENABLE & 0xff, in setup_dig_out_stream()
3617 spdif->ctls & 0xff, -1); in setup_dig_out_stream()
3772 struct hda_spdif_out *spdif; in snd_hda_multi_out_analog_prepare() local
3776 spdif = snd_hda_spdif_out_of_nid(codec, mout->dig_out_nid); in snd_hda_multi_out_analog_prepare()
3779 if (chs == 2 && spdif != NULL && in snd_hda_multi_out_analog_prepare()
3782 !(spdif->status & IEC958_AES0_NONAUDIO)) { in snd_hda_multi_out_analog_prepare()