Re: [PATCH v2] ALSA: hda: Notify IEC958 Default PCM switch state changes
From: Cássio Gabriel Monteiro Pires
Date: Thu Apr 02 2026 - 19:54:12 EST
On 4/2/26 13:08, Takashi Iwai wrote:
> On Thu, 02 Apr 2026 16:45:13 +0200,
> Cássio Gabriel wrote:
>>
>> --- a/sound/hda/common/hda_local.h
>> +++ b/sound/hda/common/hda_local.h
>> @@ -12,6 +12,8 @@
>>
>> #include <sound/pcm_drm_eld.h>
>>
>> +struct snd_kcontrol;
>
> No need for an extra declaration.
>
>> +
>> /* We abuse kcontrol_new.subdev field to pass the NID corresponding to
>> * the given new control. If id.subdev has a bit flag HDA_SUBDEV_NID_FLAG,
>> * snd_hda_ctl_add() takes the lower-bit subdev value as a valid NID.
>> @@ -203,6 +205,7 @@ enum { HDA_DIG_NONE, HDA_DIG_EXCLUSIVE, HDA_DIG_ANALOG_DUP }; /* dig_out_used */
>> #define HDA_MAX_OUTS 5
>>
>> struct hda_multi_out {
>> + struct snd_kcontrol *share_spdif_kctl; /* cached shared SPDIF switch */
>
> I'd put at the tail of the struct as it's rather an optional stuff.
>
>
> thanks,
>
> Takashi
Thanks, I'll drop the extra declaration
and move share_spdif_kctl to the tail for v3.
--
Thanks,
Cássio