[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <47c802d1-bf26-4d02-b86d-1ca9ddda0fa5@nxp.com>
Date: Tue, 21 Oct 2025 16:55:18 +0800
From: Liu Ying <victor.liu@....com>
To: Shengjiu Wang <shengjiu.wang@....com>, andrzej.hajda@...el.com,
neil.armstrong@...aro.org, rfoss@...nel.org,
Laurent.pinchart@...asonboard.com, jonas@...boo.se,
jernej.skrabec@...il.com, maarten.lankhorst@...ux.intel.com,
mripard@...nel.org, tzimmermann@...e.de, airlied@...il.com, simona@...ll.ch,
lumag@...nel.org, dianders@...omium.org, cristian.ciocaltea@...labora.com,
luca.ceresoli@...tlin.com, dri-devel@...ts.freedesktop.org,
linux-kernel@...r.kernel.org, shawnguo@...nel.org, s.hauer@...gutronix.de,
kernel@...gutronix.de, festevam@...il.com, imx@...ts.linux.dev,
linux-arm-kernel@...ts.infradead.org, robh@...nel.org, krzk+dt@...nel.org,
conor+dt@...nel.org, p.zabel@...gutronix.de, devicetree@...r.kernel.org,
l.stach@...gutronix.de, shengjiu.wang@...il.com, perex@...ex.cz,
tiwai@...e.com, linux-sound@...r.kernel.org
Subject: Re: [PATCH v7 2/7] ALSA: Add definitions for the bits in IEC958
subframe
Hi Sima,
On 10/21/2025, Simona Vetter wrote:
> On Tue, Sep 23, 2025 at 01:29:56PM +0800, Shengjiu Wang wrote:
>> The IEC958 subframe format SNDRV_PCM_FMTBIT_IEC958_SUBFRAME_LE are used
>> in HDMI and DisplayPort to describe the audio stream, but hardware device
>> may need to reorder the IEC958 bits for internal transmission, so need
>> these standard bits definitions for IEC958 subframe format.
>>
>> Signed-off-by: Shengjiu Wang <shengjiu.wang@....com>
>> Reviewed-by: Takashi Iwai <tiwai@...e.de>
>> Tested-by: Alexander Stein <alexander.stein@...tq-group.com>
>
> Would be good to get a formal ack from alsa maintainers before merging
> through drm, just to be sure.
Yes, we've got an ack from Takashi for that in the cover letter. I should
have recorded that in commit. Sorry for missing that.
>
> Thanks, Sima
>
>> ---
>> include/sound/asoundef.h | 9 +++++++++
>> 1 file changed, 9 insertions(+)
>>
>> diff --git a/include/sound/asoundef.h b/include/sound/asoundef.h
>> index 09b2c3dffb30..c4a929d4fd51 100644
>> --- a/include/sound/asoundef.h
>> +++ b/include/sound/asoundef.h
>> @@ -12,6 +12,15 @@
>> * Digital audio interface *
>> * *
>> ****************************************************************************/
>> +/* IEC958 subframe format */
>> +#define IEC958_SUBFRAME_PREAMBLE_MASK (0xfU)
>> +#define IEC958_SUBFRAME_AUXILIARY_MASK (0xfU << 4)
>> +#define IEC958_SUBFRAME_SAMPLE_24_MASK (0xffffffU << 4)
>> +#define IEC958_SUBFRAME_SAMPLE_20_MASK (0xfffffU << 8)
>> +#define IEC958_SUBFRAME_VALIDITY (0x1U << 28)
>> +#define IEC958_SUBFRAME_USER_DATA (0x1U << 29)
>> +#define IEC958_SUBFRAME_CHANNEL_STATUS (0x1U << 30)
>> +#define IEC958_SUBFRAME_PARITY (0x1U << 31)
>>
>> /* AES/IEC958 channel status bits */
>> #define IEC958_AES0_PROFESSIONAL (1<<0) /* 0 = consumer, 1 = professional */
>> --
>> 2.34.1
>>
>
--
Regards,
Liu Ying
Powered by blists - more mailing lists