[libcamera-devel] [PATCH v6 5/5] android: soraka: Add camera HAL configuration
Kieran Bingham
kieran.bingham at ideasonboard.com
Thu Apr 15 20:54:27 CEST 2021
On 15/04/2021 17:08, Tomasz Figa wrote:
> On Thu, Apr 15, 2021 at 10:56 PM Jacopo Mondi <jacopo at jmondi.org> wrote:
>>
>> Hi Hiro, Tomasz, Han-lin
>>
>> On Thu, Apr 15, 2021 at 03:52:13PM +0200, Jacopo Mondi wrote:
>>> Add camera HAL configuration file for IPU3 Soraka.
>>>
>>
>> I've sent this patch for discussion, but I'm wondering if libcamera is
>> the right place where to store the HAL configuration file.
>>
>> In my opinion they would be better placed in the device overlay, like
>> it happens today, in example, with the Intel HAL .xml configuration
>> files.
>>
>> What do you think ?
>
> How about non-Chrome OS users of the device? I think we should have a
> repository of default configuration files for supported devices, which
> would be used if there is no custom configuration provided.
Is there a generic way to detect what platform we are running on?
Then we could select /etc/libcamera/$PLATFORM.yaml or such?
--
Kieran
> Best regards,
> Tomasz
>
>> We should find a way to install this file in
>> /etc/libcamera/ before merging the series, otherwise we'll break the
>> HAL support in ChromiumOS.
>>
>> Thanks
>> j
>>
>>> Reviewed-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
>>> Reviewed-by: Hirokazu Honda <hiroh at chromium.org>
>>> Signed-off-by: Jacopo Mondi <jacopo at jmondi.org>
>>> ---
>>> src/android/data/soraka/camera_hal.yaml | 8 ++++++++
>>> 1 file changed, 8 insertions(+)
>>> create mode 100644 src/android/data/soraka/camera_hal.yaml
>>>
>>> diff --git a/src/android/data/soraka/camera_hal.yaml b/src/android/data/soraka/camera_hal.yaml
>>> new file mode 100644
>>> index 000000000000..2e9964035098
>>> --- /dev/null
>>> +++ b/src/android/data/soraka/camera_hal.yaml
>>> @@ -0,0 +1,8 @@
>>> +cameras:
>>> + "\\_SB_.PCI0.I2C4.CAM1":
>>> + location: front
>>> + rotation: 0
>>> +
>>> + "\\_SB_.PCI0.I2C2.CAM0":
>>> + location: back
>>> + rotation: 0
>>> --
>>> 2.31.1
>>>
>>> _______________________________________________
>>> libcamera-devel mailing list
>>> libcamera-devel at lists.libcamera.org
>>> https://lists.libcamera.org/listinfo/libcamera-devel
> _______________________________________________
> libcamera-devel mailing list
> libcamera-devel at lists.libcamera.org
> https://lists.libcamera.org/listinfo/libcamera-devel
>
--
Regards
--
Kieran
More information about the libcamera-devel
mailing list