[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <00537bf3-926c-eb2f-98ed-3d0242ecd8fd@opensource.cirrus.com>
Date: Tue, 9 Mar 2021 13:41:48 +0000
From: Vitaly Rodionov <vitalyr@...nsource.cirrus.com>
To: Pierre-Louis Bossart <pierre-louis.bossart@...ux.intel.com>,
Jaroslav Kysela <perex@...ex.cz>, Takashi Iwai <tiwai@...e.com>
CC: <patches@...nsource.cirrus.com>, <alsa-devel@...a-project.org>,
<linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v3 3/4] ALSA: hda/cirrus: Add jack detect interrupt
support from CS42L42 companion codec.
On 08/03/2021 3:35 pm, Pierre-Louis Bossart wrote:
>
>
>
>> @@ -38,6 +39,15 @@ struct cs_spec {
>> /* for MBP SPDIF control */
>> int (*spdif_sw_put)(struct snd_kcontrol *kcontrol,
>> struct snd_ctl_elem_value *ucontrol);
>> +
>> + unsigned int cs42l42_hp_jack_in:1;
>> + unsigned int cs42l42_mic_jack_in:1;
>> +
>> + struct mutex cs8409_i2c_mux;
>
> what does this protect? there isn't any comment or explanations in the
> commit message.
>
>
we are protecting sequences of i2c transactions.
for example, when we are writing sequence to activate jack detect, as a
result of interrupt via gpio4
unsolicited response can be called by framework at the same time. we
want to finish first sequence.
Powered by blists - more mailing lists