mout 2567 sound/pci/hda/hda_codec.c struct hda_multi_out *mout = snd_kcontrol_chip(kcontrol); mout 2568 sound/pci/hda/hda_codec.c ucontrol->value.integer.value[0] = mout->share_spdif; mout 2575 sound/pci/hda/hda_codec.c struct hda_multi_out *mout = snd_kcontrol_chip(kcontrol); mout 2576 sound/pci/hda/hda_codec.c mout->share_spdif = !!ucontrol->value.integer.value[0]; mout 2594 sound/pci/hda/hda_codec.c struct hda_multi_out *mout) mout 2598 sound/pci/hda/hda_codec.c if (!mout->dig_out_nid) mout 2601 sound/pci/hda/hda_codec.c kctl = snd_ctl_new1(&spdif_share_sw, mout); mout 2605 sound/pci/hda/hda_codec.c return snd_hda_ctl_add(codec, mout->dig_out_nid, kctl); mout 3604 sound/pci/hda/hda_codec.c struct hda_multi_out *mout) mout 3607 sound/pci/hda/hda_codec.c if (mout->dig_out_used == HDA_DIG_ANALOG_DUP) mout 3609 sound/pci/hda/hda_codec.c cleanup_dig_out_stream(codec, mout->dig_out_nid); mout 3610 sound/pci/hda/hda_codec.c mout->dig_out_used = HDA_DIG_EXCLUSIVE; mout 3625 sound/pci/hda/hda_codec.c struct hda_multi_out *mout, mout 3631 sound/pci/hda/hda_codec.c setup_dig_out_stream(codec, mout->dig_out_nid, stream_tag, format); mout 3643 sound/pci/hda/hda_codec.c struct hda_multi_out *mout) mout 3646 sound/pci/hda/hda_codec.c cleanup_dig_out_stream(codec, mout->dig_out_nid); mout 3658 sound/pci/hda/hda_codec.c struct hda_multi_out *mout) mout 3661 sound/pci/hda/hda_codec.c mout->dig_out_used = 0; mout 3679 sound/pci/hda/hda_codec.c struct hda_multi_out *mout, mout 3684 sound/pci/hda/hda_codec.c runtime->hw.channels_max = mout->max_channels; mout 3685 sound/pci/hda/hda_codec.c if (mout->dig_out_nid) { mout 3686 sound/pci/hda/hda_codec.c if (!mout->analog_rates) { mout 3687 sound/pci/hda/hda_codec.c mout->analog_rates = hinfo->rates; mout 3688 sound/pci/hda/hda_codec.c mout->analog_formats = hinfo->formats; mout 3689 sound/pci/hda/hda_codec.c mout->analog_maxbps = hinfo->maxbps; mout 3691 sound/pci/hda/hda_codec.c runtime->hw.rates = mout->analog_rates; mout 3692 sound/pci/hda/hda_codec.c runtime->hw.formats = mout->analog_formats; mout 3693 sound/pci/hda/hda_codec.c hinfo->maxbps = mout->analog_maxbps; mout 3695 sound/pci/hda/hda_codec.c if (!mout->spdif_rates) { mout 3696 sound/pci/hda/hda_codec.c snd_hda_query_supported_pcm(codec, mout->dig_out_nid, mout 3697 sound/pci/hda/hda_codec.c &mout->spdif_rates, mout 3698 sound/pci/hda/hda_codec.c &mout->spdif_formats, mout 3699 sound/pci/hda/hda_codec.c &mout->spdif_maxbps); mout 3702 sound/pci/hda/hda_codec.c if (mout->share_spdif) { mout 3703 sound/pci/hda/hda_codec.c if ((runtime->hw.rates & mout->spdif_rates) && mout 3704 sound/pci/hda/hda_codec.c (runtime->hw.formats & mout->spdif_formats)) { mout 3705 sound/pci/hda/hda_codec.c runtime->hw.rates &= mout->spdif_rates; mout 3706 sound/pci/hda/hda_codec.c runtime->hw.formats &= mout->spdif_formats; mout 3707 sound/pci/hda/hda_codec.c if (mout->spdif_maxbps < hinfo->maxbps) mout 3708 sound/pci/hda/hda_codec.c hinfo->maxbps = mout->spdif_maxbps; mout 3710 sound/pci/hda/hda_codec.c mout->share_spdif = 0; mout 3733 sound/pci/hda/hda_codec.c struct hda_multi_out *mout, mout 3738 sound/pci/hda/hda_codec.c const hda_nid_t *nids = mout->dac_nids; mout 3744 sound/pci/hda/hda_codec.c spdif = snd_hda_spdif_out_of_nid(codec, mout->dig_out_nid); mout 3745 sound/pci/hda/hda_codec.c if (mout->dig_out_nid && mout->share_spdif && mout 3746 sound/pci/hda/hda_codec.c mout->dig_out_used != HDA_DIG_EXCLUSIVE) { mout 3748 sound/pci/hda/hda_codec.c snd_hda_is_supported_format(codec, mout->dig_out_nid, mout 3751 sound/pci/hda/hda_codec.c mout->dig_out_used = HDA_DIG_ANALOG_DUP; mout 3752 sound/pci/hda/hda_codec.c setup_dig_out_stream(codec, mout->dig_out_nid, mout 3755 sound/pci/hda/hda_codec.c mout->dig_out_used = 0; mout 3756 sound/pci/hda/hda_codec.c cleanup_dig_out_stream(codec, mout->dig_out_nid); mout 3764 sound/pci/hda/hda_codec.c if (!mout->no_share_stream && mout 3765 sound/pci/hda/hda_codec.c mout->hp_nid && mout->hp_nid != nids[HDA_FRONT]) mout 3767 sound/pci/hda/hda_codec.c snd_hda_codec_setup_stream(codec, mout->hp_nid, stream_tag, mout 3770 sound/pci/hda/hda_codec.c for (i = 0; i < ARRAY_SIZE(mout->hp_out_nid); i++) mout 3771 sound/pci/hda/hda_codec.c if (!mout->no_share_stream && mout->hp_out_nid[i]) mout 3773 sound/pci/hda/hda_codec.c mout->hp_out_nid[i], mout 3777 sound/pci/hda/hda_codec.c for (i = 1; i < mout->num_dacs; i++) { mout 3781 sound/pci/hda/hda_codec.c else if (!mout->no_share_stream) /* copy front */ mout 3787 sound/pci/hda/hda_codec.c for (i = 0; i < ARRAY_SIZE(mout->extra_out_nid); i++) { mout 3789 sound/pci/hda/hda_codec.c if (!mout->extra_out_nid[i]) mout 3793 sound/pci/hda/hda_codec.c else if (!mout->no_share_stream) mout 3795 sound/pci/hda/hda_codec.c snd_hda_codec_setup_stream(codec, mout->extra_out_nid[i], mout 3809 sound/pci/hda/hda_codec.c struct hda_multi_out *mout) mout 3811 sound/pci/hda/hda_codec.c const hda_nid_t *nids = mout->dac_nids; mout 3814 sound/pci/hda/hda_codec.c for (i = 0; i < mout->num_dacs; i++) mout 3816 sound/pci/hda/hda_codec.c if (mout->hp_nid) mout 3817 sound/pci/hda/hda_codec.c snd_hda_codec_cleanup_stream(codec, mout->hp_nid); mout 3818 sound/pci/hda/hda_codec.c for (i = 0; i < ARRAY_SIZE(mout->hp_out_nid); i++) mout 3819 sound/pci/hda/hda_codec.c if (mout->hp_out_nid[i]) mout 3821 sound/pci/hda/hda_codec.c mout->hp_out_nid[i]); mout 3822 sound/pci/hda/hda_codec.c for (i = 0; i < ARRAY_SIZE(mout->extra_out_nid); i++) mout 3823 sound/pci/hda/hda_codec.c if (mout->extra_out_nid[i]) mout 3825 sound/pci/hda/hda_codec.c mout->extra_out_nid[i]); mout 3827 sound/pci/hda/hda_codec.c if (mout->dig_out_nid && mout->dig_out_used == HDA_DIG_ANALOG_DUP) { mout 3828 sound/pci/hda/hda_codec.c cleanup_dig_out_stream(codec, mout->dig_out_nid); mout 3829 sound/pci/hda/hda_codec.c mout->dig_out_used = 0; mout 234 sound/pci/hda/hda_local.h struct hda_multi_out *mout); mout 236 sound/pci/hda/hda_local.h struct hda_multi_out *mout); mout 238 sound/pci/hda/hda_local.h struct hda_multi_out *mout); mout 240 sound/pci/hda/hda_local.h struct hda_multi_out *mout, mout 245 sound/pci/hda/hda_local.h struct hda_multi_out *mout); mout 247 sound/pci/hda/hda_local.h struct hda_multi_out *mout, mout 251 sound/pci/hda/hda_local.h struct hda_multi_out *mout, mout 256 sound/pci/hda/hda_local.h struct hda_multi_out *mout);