Lines Matching refs:spdif

2168 	struct hda_spdif_out *spdif;  in snd_hda_spdif_default_get()  local
2173 spdif = snd_array_elem(&codec->spdif_out, idx); in snd_hda_spdif_default_get()
2174 ucontrol->value.iec958.status[0] = spdif->status & 0xff; in snd_hda_spdif_default_get()
2175 ucontrol->value.iec958.status[1] = (spdif->status >> 8) & 0xff; in snd_hda_spdif_default_get()
2176 ucontrol->value.iec958.status[2] = (spdif->status >> 16) & 0xff; in snd_hda_spdif_default_get()
2177 ucontrol->value.iec958.status[3] = (spdif->status >> 24) & 0xff; in snd_hda_spdif_default_get()
2274 struct hda_spdif_out *spdif; in snd_hda_spdif_default_put() local
2282 spdif = snd_array_elem(&codec->spdif_out, idx); in snd_hda_spdif_default_put()
2283 nid = spdif->nid; in snd_hda_spdif_default_put()
2284 spdif->status = ucontrol->value.iec958.status[0] | in snd_hda_spdif_default_put()
2288 val = convert_from_spdif_status(spdif->status); in snd_hda_spdif_default_put()
2289 val |= spdif->ctls & 1; in snd_hda_spdif_default_put()
2290 change = spdif->ctls != val; in snd_hda_spdif_default_put()
2291 spdif->ctls = val; in snd_hda_spdif_default_put()
2305 struct hda_spdif_out *spdif; in snd_hda_spdif_out_switch_get() local
2310 spdif = snd_array_elem(&codec->spdif_out, idx); in snd_hda_spdif_out_switch_get()
2311 ucontrol->value.integer.value[0] = spdif->ctls & AC_DIG1_ENABLE; in snd_hda_spdif_out_switch_get()
2332 struct hda_spdif_out *spdif; in snd_hda_spdif_out_switch_put() local
2340 spdif = snd_array_elem(&codec->spdif_out, idx); in snd_hda_spdif_out_switch_put()
2341 nid = spdif->nid; in snd_hda_spdif_out_switch_put()
2342 val = spdif->ctls & ~AC_DIG1_ENABLE; in snd_hda_spdif_out_switch_put()
2345 change = spdif->ctls != val; in snd_hda_spdif_out_switch_put()
2346 spdif->ctls = val; in snd_hda_spdif_out_switch_put()
2407 struct hda_spdif_out *spdif; in snd_hda_create_dig_out_ctls() local
2432 spdif = snd_array_new(&codec->spdif_out); in snd_hda_create_dig_out_ctls()
2433 if (!spdif) in snd_hda_create_dig_out_ctls()
2445 spdif->nid = cvt_nid; in snd_hda_create_dig_out_ctls()
2448 spdif->ctls = val; in snd_hda_create_dig_out_ctls()
2449 spdif->status = convert_to_spdif_status(spdif->ctls); in snd_hda_create_dig_out_ctls()
2464 struct hda_spdif_out *spdif; in snd_hda_spdif_out_of_nid() local
2467 snd_array_for_each(&codec->spdif_out, i, spdif) { in snd_hda_spdif_out_of_nid()
2468 if (spdif->nid == nid) in snd_hda_spdif_out_of_nid()
2469 return spdif; in snd_hda_spdif_out_of_nid()
2484 struct hda_spdif_out *spdif; in snd_hda_spdif_ctls_unassign() local
2489 spdif = snd_array_elem(&codec->spdif_out, idx); in snd_hda_spdif_ctls_unassign()
2490 spdif->nid = (u16)-1; in snd_hda_spdif_ctls_unassign()
2505 struct hda_spdif_out *spdif; in snd_hda_spdif_ctls_assign() local
2511 spdif = snd_array_elem(&codec->spdif_out, idx); in snd_hda_spdif_ctls_assign()
2512 if (spdif->nid != nid) { in snd_hda_spdif_ctls_assign()
2513 spdif->nid = nid; in snd_hda_spdif_ctls_assign()
2514 val = spdif->ctls; in snd_hda_spdif_ctls_assign()
3536 struct hda_spdif_out *spdif; in setup_dig_out_stream() local
3540 spdif = snd_hda_spdif_out_of_nid(codec, nid); in setup_dig_out_stream()
3544 if (WARN_ON(spdif == NULL)) in setup_dig_out_stream()
3550 (spdif->ctls & AC_DIG1_ENABLE) && in setup_dig_out_stream()
3557 spdif->ctls & ~AC_DIG1_ENABLE & 0xff, in setup_dig_out_stream()
3569 spdif->ctls & 0xff, -1); in setup_dig_out_stream()
3724 struct hda_spdif_out *spdif; in snd_hda_multi_out_analog_prepare() local
3728 spdif = snd_hda_spdif_out_of_nid(codec, mout->dig_out_nid); in snd_hda_multi_out_analog_prepare()
3731 if (chs == 2 && spdif != NULL && in snd_hda_multi_out_analog_prepare()
3734 !(spdif->status & IEC958_AES0_NONAUDIO)) { in snd_hda_multi_out_analog_prepare()