Skip to contentSkip to conversation

exynos-drm-next todo work.

DISCUSSION Inki Dae 4 participants 6 messages Jun 18, 2013 – Jul 8, 2013 Arm Samsung Exynos

lore
Share & tools
lore

Inki Dae

author
#0 lore raw

Hi all,

I'd like to discuss Exynos DRM TODO work.

There are features we have to solve and implement. The purpose of this email is to share what we have to do so that other guys can be involved without duplicated work.

1. gscaler based on KMS interfaces - exynos5250 and later use the gscaler device instead of VP device. And now exynos drm driver has gscaler module as a sub module of IPP framework. However, this gscaler module is very specific to IPP framework so it's not easy to reuse this module. So maybe we need so many works for it.

Video play back path using post process (AS IS):

	MFC--------IPP--------KMS---------FIMD or HDMI

Ideal video play back path using post process (TO BE):

	MFC--------KMS--------FIMD or HDMI

The above scenario is to send decoded image data (YUV format) to display device via post process. However, we don't really need to use IPP framework in case of using gscaler as VP. All we have to do is to call kms interface (setplane) for it like we did before.

2. More features for HDMI sound support - we need to implement Exynos ALSA SoC DAI driver for HDMI audio (CPU DAI and CODEC DAI). Sampling freq, bit rate, and so on from user side should be sent to drm hdmi driver via ALSA interface and the ALSA SoC DAI driver. As of now, it seems like that we should implement this driver like OMAP does because there is no common framework for interfacing between ALSA SoC DAI driver and DRM HDMI driver:
in case of OMAP, it seems like that ALSA SoC audio driver calls interfaces of DSS driver directly. I think we could implement ALSA SoC DAI driver in more generic way if we first implement common framework for it.

Welcome to any volunteer and other opinions.

Thanks,
Inki Dae

#1 lore raw

Hi Mr. Dae,

Related to HDMI sound support in Alsa, I have posted a working RFC "exynos-hdmi to CDF complaint display driver". It registers a separate sound card by registering hdmi audio codec dai and cpu-dai, as you mentioned. But there is a problem with this approach that I2S being the single cpu dai for HDMI and Speaker sound card, only one card can support playback at a time.

I would like to work on this to provide a more refined solution.

regards,
Rahul Sharma.

Quoted 44 lines · Inki Dae

Hi all,

I'd like to discuss Exynos DRM TODO work.

There are features we have to solve and implement. The purpose of this email is to share what we have to do so that other guys can be involved without duplicated work.

1. gscaler based on KMS interfaces - exynos5250 and later use the gscaler device instead of VP device. And now exynos drm driver has gscaler module as a sub module of IPP framework. However, this gscaler module is very specific to IPP framework so it's not easy to reuse this module. So maybe we need so many works for it.

Video play back path using post process (AS IS):

        MFC--------IPP--------KMS---------FIMD or HDMI

Ideal video play back path using post process (TO BE):

        MFC--------KMS--------FIMD or HDMI

The above scenario is to send decoded image data (YUV format) to display device via post process. However, we don't really need to use IPP framework in case of using gscaler as VP. All we have to do is to call kms interface (setplane) for it like we did before.

2. More features for HDMI sound support - we need to implement Exynos ALSA SoC DAI driver for HDMI audio (CPU DAI and CODEC DAI). Sampling freq, bit rate, and so on from user side should be sent to drm hdmi driver via ALSA interface and the ALSA SoC DAI driver. As of now, it seems like that we should implement this driver like OMAP does because there is no common framework for interfacing between ALSA SoC DAI driver and DRM HDMI driver:
in case of OMAP, it seems like that ALSA SoC audio driver calls interfaces of DSS driver directly. I think we could implement ALSA SoC DAI driver in more generic way if we first implement common framework for it.

Welcome to any volunteer and other opinions.

Thanks,
Inki Dae

--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

author
#2 lore raw
Quoted 11 lines

-----Original Message-----
From: Rahul Sharma [mailto:[email protected]]
Sent: Tuesday, June 18, 2013 6:46 PM
To: Inki Dae
Cc: [email protected]; DRI mailing list
Subject: Re: exynos-drm-next todo work.

Hi Mr. Dae,

Quoted 9 lines

Related to HDMI sound support in Alsa, I have posted a working RFC "exynos-hdmi to CDF complaint display driver". It registers a separate sound card by registering hdmi audio codec dai and cpu-dai, as you mentioned. But there is a problem with this approach that I2S being the single cpu dai for HDMI and Speaker sound card, only one card can support playback at a time.

I would like to work on this to provide a more refined solution.

Thanks. However, I think it's not good to use the CDF framework to interface between ALSA SoC DAI driver and DRM HDMI driver. The purpose of the CDF framework is to provide common interfaces to display bus drivers to Linux framebuffer and DRM KMS based display controller drivers as long as I know. So my opinion is to implement ALSA Soc DAI driver-it seems like possible to use as is-based on a new common framework that the other can also use it.

Thanks,
Inki Dae

Quoted 63 lines

regards,
Rahul Sharma.

Quoted 5 lines · Inki Dae

Hi all,

I'd like to discuss Exynos DRM TODO work.

There are features we have to solve and implement. The purpose of this

email

Quoted 1 line

is to share what we have to do so that other guys can be involved

without

Quoted 3 lines

duplicated work.

1. gscaler based on KMS interfaces - exynos5250 and later use the

gscaler

Quoted 1 line

device instead of VP device. And now exynos drm driver has gscaler

module as

Quoted 1 line

a sub module of IPP framework. However, this gscaler module is very

specific

Quoted 1 line

to IPP framework so it's not easy to reuse this module. So maybe we need

so

Quoted 10 lines

many works for it.

Video play back path using post process (AS IS):

        MFC--------IPP--------KMS---------FIMD or HDMI

Ideal video play back path using post process (TO BE):

        MFC--------KMS--------FIMD or HDMI

The above scenario is to send decoded image data (YUV format) to display device via post process. However, we don't really need to use IPP

framework

Quoted 1 line

in case of using gscaler as VP. All we have to do is to call kms

interface

Quoted 3 lines

(setplane) for it like we did before.

2. More features for HDMI sound support - we need to implement Exynos

ALSA

Quoted 1 line

SoC DAI driver for HDMI audio (CPU DAI and CODEC DAI). Sampling freq,

bit

Quoted 1 line

rate, and so on from user side should be sent to drm hdmi driver via

ALSA

Quoted 3 lines

interface and the ALSA SoC DAI driver. As of now, it seems like that we should implement this driver like OMAP does because there is no common framework for interfacing between ALSA SoC DAI driver and DRM HDMI

driver:

Quoted 1 line

in case of OMAP, it seems like that ALSA SoC audio driver calls

interfaces

Quoted 1 line

of DSS driver directly. I think we could implement ALSA SoC DAI driver

in

Quoted 9 lines

more generic way if we first implement common framework for it.

Welcome to any volunteer and other opinions.

Thanks,
Inki Dae

--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-

soc" in

Quoted 2 lines

the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw
Quoted 7 lines · Inki Dae
Quoted 6 lines

Related to HDMI sound support in Alsa, I have posted a working RFC "exynos-hdmi to CDF complaint display driver". It registers a separate sound card by registering hdmi audio codec dai and cpu-dai, as you mentioned. But there is a problem with this approach that I2S being the single cpu dai for HDMI and Speaker sound card, only one card can support playback at a time.

Quoted 8 lines
Quoted 1 line

I would like to work on this to provide a more refined solution.

Thanks. However, I think it's not good to use the CDF framework to interface between ALSA SoC DAI driver and DRM HDMI driver. The purpose of the CDF framework is to provide common interfaces to display bus drivers to Linux framebuffer and DRM KMS based display controller drivers as long as I know. So my opinion is to implement ALSA Soc DAI driver-it seems like possible to use as is-based on a new common framework that the other can also use it.

You guys really want to be discussing this on the ALSA list and CCing the ASoC maintainers... I do note that OMAP and SH both have HDMI support in mainline, whatever they're doing seems like a good place to start.

#4 lore raw
Quoted 18 lines · Mark Brown
Quoted 7 lines · Inki Dae
Quoted 6 lines

Related to HDMI sound support in Alsa, I have posted a working RFC "exynos-hdmi to CDF complaint display driver". It registers a separate sound card by registering hdmi audio codec dai and cpu-dai, as you mentioned. But there is a problem with this approach that I2S being the single cpu dai for HDMI and Speaker sound card, only one card can support playback at a time.

Quoted 8 lines
Quoted 1 line

I would like to work on this to provide a more refined solution.

Thanks. However, I think it's not good to use the CDF framework to interface between ALSA SoC DAI driver and DRM HDMI driver. The purpose of the CDF framework is to provide common interfaces to display bus drivers to Linux framebuffer and DRM KMS based display controller drivers as long as I know. So my opinion is to implement ALSA Soc DAI driver-it seems like possible to use as is-based on a new common framework that the other can also use it.

Quoted 4 lines

You guys really want to be discussing this on the ALSA list and CCing the ASoC maintainers... I do note that OMAP and SH both have HDMI support in mainline, whatever they're doing seems like a good place to start.

I don't know about SH, but at least OMAP (and I've seen same on MSM non-upstream driver, and I guess it is the same elsewhere), there end up being some calls from audio driver to functions exported by the display driver. I guess there is probably some better way to do it compared to how the existing drivers work.

BR,
-R

Quoted 5 lines

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

author
#5 lore raw

2013년 7월 8일 월요일에 Rob Clark<[email protected]>님이 작성:

Quoted 7 lines · Mark Brown
Quoted 6 lines · Inki Dae
Quoted 5 lines
Quoted 5 lines

Related to HDMI sound support in Alsa, I have posted a working RFC "exynos-hdmi to CDF complaint display driver". It registers a separate sound card by registering hdmi audio codec dai and cpu-dai, as you mentioned. But there is a problem with this approach that I2S being

the

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 4 lines

single cpu dai for HDMI and Speaker sound card, only one card can support playback at a time.

I would like to work on this to provide a more refined solution.

Thanks. However, I think it's not good to use the CDF framework to

interface

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

between ALSA SoC DAI driver and DRM HDMI driver. The purpose of the CDF framework is to provide common interfaces to display bus drivers to

Linux

Quoted 1 line
Quoted 1 line
Quoted 1 line

framebuffer and DRM KMS based display controller drivers as long as I

know.

Quoted 1 line
Quoted 1 line
Quoted 1 line

So my opinion is to implement ALSA Soc DAI driver-it seems like

possible to

Quoted 1 line
Quoted 1 line
Quoted 1 line

use as is-based on a new common framework that the other can also use

it.

Quoted 6 lines
Quoted 5 lines

You guys really want to be discussing this on the ALSA list and CCing the ASoC maintainers... I do note that OMAP and SH both have HDMI support in mainline, whatever they're doing seems like a good place to start.

Quoted 6 lines

I don't know about SH, but at least OMAP (and I've seen same on MSM non-upstream driver, and I guess it is the same elsewhere), there end up being some calls from audio driver to functions exported by the display driver. I guess there is probably some better way to do it compared to how the existing drivers work.

Agree with you. we had looked into omap driver that audio driver calls callbacks of dss driver. For this, it seems possible to use common framework between audio and hdmi driver like PHY framework does.

exynos audio---+ +--exynos hdmi
omap audio ----+--common fw--+--omap dss
other audio----+ +--other hdmi

Thanks,
Inki Dae

Quoted 8 lines

BR,
-R

Quoted 5 lines

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

Quoted 5 lines

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel