Re: [PATCH 2/2] ASoC: hdmi-codec: add channel mapping control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2016年12月13日 22:23, Takashi Sakamoto wrote:
Hi Arnaud,
This table is invariant in lifetime of the storage object, as well.
Let's put into .rodata section, too.

This table is updated in hdmi_codec_cea_init_channel_alloc so can not be
constant. In theory i could declare all field instead of computing some.
But for lisibility, i would prefer to just declare ca_index  and
speakers allocation field in this table (i will declared both as const)

You should pay enough attention to a case that one system has several
GPUs to which relevant GPU drivers register HDMI_CODEC_DRV_NAME platform
device. The 'static' modifier has an effect to keep just one storage
object, thus your code causes bugs in the case.

Oops, the bug is unrelated to the static modifier. The modifier is for reference scope. I'll correct as the file local symbol has just one storage object.

(I might be tired tonight...)


Regards

Takashi Sakamoto
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux