[Freedreno] freedreno hdmi audio

Rob Clark robdclark at gmail.com
Wed Sep 3 07:48:39 PDT 2014


At the moment we are not doing anything triggered by audio irq.. it is
all triggered by either calls from the audio driver, or modeset.  So
there has been no need to hook anything up to audio irqs that I have
found yet.

Fwiw, drm drivers don't do anything automatically (within the driver)
in response to HPD other than signalling an event.  (Which then might
trigger someone to do modeset, which calls in to the driver via normal
modeset callpaths, either from worker or from userspace process via
ioctl if userspace decides to react to the hpd event)

BR,
-R

On Wed, Sep 3, 2014 at 10:42 AM, vinay simha
<vinaysimha at inforcecomputing.com> wrote:
> rob,
>
> In drivers/gpu/drm/msm/hdmi/hdmi.c , in TODO audio , do we need to change
> the codec settings for audio, in case an analog audio is
> connected/disconnected or hpd of hdmi.
>
> irqreturn_t hdmi_irq(int irq, void *dev_id)
> {
>         struct hdmi *hdmi = dev_id;
>
>         /* Process HPD: */
>         hdmi_connector_irq(hdmi->connector);
>
>         /* Process DDC: */
>         hdmi_i2c_irq(hdmi->i2c);
>
>         /* TODO audio.. */
>
>         return IRQ_HANDLED;
> }
>
>
> Regards,
> vinay simha
>
>
> On Wed, Sep 3, 2014 at 7:54 PM, vinay simha
> <vinaysimha at inforcecomputing.com> wrote:
>>
>> rob,
>>
>>  drivers/gpu/drm/msm/hdmi/hdmi.c . This part of code is suppose to be a
>> TODO or it is not required.
>>
>> struct msm_hdmi_audio_codec_ops;
>> int msm_hdmi_register_audio_codec(struct platform_device *pdev,
>>         struct msm_hdmi_audio_codec_ops *ops)
>> {
>> #if 0
>>         struct hdmi_tx_ctrl *hdmi_ctrl = platform_get_drvdata(pdev);
>>
>>         if (!hdmi_ctrl || !ops) {
>>                 DEV_ERR("%s: invalid input\n", __func__);
>>                 return -ENODEV;
>>         }
>>
>>         ops->audio_info_setup = hdmi_tx_audio_info_setup;
>>         ops->get_audio_edid_blk = hdmi_tx_get_audio_edid_blk;
>> #endif
>>         return 0;
>> }
>>
>>
>> Regards,
>> vinay simha
>>
>>
>> On Wed, Sep 3, 2014 at 4:20 PM, vinay simha
>> <vinaysimha at inforcecomputing.com> wrote:
>>>
>>> Rob,
>>>
>>> Here is the log of the edid of the TV i'm using
>>>
>>> root at linaro-gnome:~# cat /sys/class/drm/card0-HDMI-A-1/edid >
>>> edid_reconnecte_monitor
>>> root at linaro-gnome:~# hexdump -C edid_reconnecte_montior
>>> 00000000  00 ff ff ff ff ff ff 00  1c 88 21 90 00 00 00 01
>>> |..........!.....|
>>> 00000010  2f 15 01 03 80 3c 22 61  0a d4 6c a3 57 49 9c 25
>>> |/....<"a..l.WI.%|
>>> 00000020  11 48 4b 21 08 00 81 80  01 01 01 01 01 01 01 01
>>> |.HK!............|
>>> 00000030  01 01 01 01 01 01 01 1d  00 72 51 d0 1e 20 6e 28
>>> |.........rQ.. n(|
>>> 00000040  55 00 c4 8e 21 00 00 18  00 00 00 fc 00 43 48 48
>>> |U...!........CHH|
>>> 00000050  57 4a 54 0a 20 20 20 20  20 20 00 00 00 fd 00 17  |WJT.
>>> ......|
>>> 00000060  50 18 50 10 00 0a 20 20  20 20 20 20 00 00 00 00  |P.P...
>>> ....|
>>> 00000070  00 00 00 00 00 00 00 00  00 00 00 00 00 18 01 4d
>>> |...............M|
>>> 00000080  02 03 23 75 50 01 02 03  04 05 10 11 12 13 14 15
>>> |..#uP...........|
>>> 00000090  16 1f 20 21 22 23 09 07  03 83 01 00 00 65 03 0c  |..
>>> !"#.......e..|
>>> 000000a0  00 10 00 01 1d 80 18 71  1c 16 20 58 2c 25 00 45  |.......q..
>>> X,%.E|
>>> 000000b0  27 00 00 00 9e d6 09 80  a0 20 e0 2d 10 10 60 a2  |'........
>>> .-..`.|
>>> 000000c0  00 46 27 00 00 00 18 01  1d 00 72 51 d0 1e 20 6e
>>> |.F'.......rQ.. n|
>>> 000000d0  28 55 00 46 27 00 00 00  1e 8c 0a d0 8a 20 e0 2d
>>> |(U.F'........ .-|
>>> 000000e0  10 10 3e 96 00 46 27 00  00 00 18 8c 0a d0 90 20
>>> |..>..F'........ |
>>> 000000f0  40 31 20 0c 40 55 00 46  27 00 00 00 18 00 00 f8  |@1
>>> . at U.F'.......|
>>> 00000100
>>>
>>>
>>> Regards,
>>> vinay simha
>>>
>>>
>>> On Wed, Sep 3, 2014 at 2:03 PM, Nicolas Dechesne
>>> <nicolas.dechesne at linaro.org> wrote:
>>>>
>>>> On Tue, Sep 2, 2014 at 5:43 PM, vinay simha
>>>> <vinaysimha at inforcecomputing.com> wrote:
>>>> > Nicolas, if possible can you give me dmes log with DRM.debug=15 in cmd
>>>> > line.
>>>>
>>>> here is it, using 14.08 Linaro release
>>>>
>>>> http://pastebin.com/QpQNm0em
>>>
>>>
>>
>


More information about the Freedreno mailing list