Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1240830 > unrolled thread
| Started by | Fabio Estevam <festevam@gmail.com> |
|---|---|
| First post | 2015-10-06 20:10 +0200 |
| Last post | 2015-10-09 18:20 +0200 |
| Articles | 8 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH 1/9] drm: bridge/dw_hdmi-ahb-audio: add audio driver Fabio Estevam <festevam@gmail.com> - 2015-10-06 20:10 +0200
Re: [PATCH 1/9] drm: bridge/dw_hdmi-ahb-audio: add audio driver Russell King - ARM Linux <linux@arm.linux.org.uk> - 2015-10-06 20:20 +0200
Re: [PATCH 1/9] drm: bridge/dw_hdmi-ahb-audio: add audio driver Fabio Estevam <festevam@gmail.com> - 2015-10-06 20:50 +0200
Re: [PATCH 1/9] drm: bridge/dw_hdmi-ahb-audio: add audio driver Russell King - ARM Linux <linux@arm.linux.org.uk> - 2015-10-06 21:00 +0200
Re: [PATCH 1/9] drm: bridge/dw_hdmi-ahb-audio: add audio driver Fabio Estevam <festevam@gmail.com> - 2015-10-06 22:30 +0200
Re: [PATCH 1/9] drm: bridge/dw_hdmi-ahb-audio: add audio driver Russell King - ARM Linux <linux@arm.linux.org.uk> - 2015-10-09 18:10 +0200
Re: [PATCH 1/9] drm: bridge/dw_hdmi-ahb-audio: add audio driver Fabio Estevam <festevam@gmail.com> - 2015-10-09 18:10 +0200
Re: [PATCH 1/9] drm: bridge/dw_hdmi-ahb-audio: add audio driver Russell King - ARM Linux <linux@arm.linux.org.uk> - 2015-10-09 18:20 +0200
| From | Fabio Estevam <festevam@gmail.com> |
|---|---|
| Date | 2015-10-06 20:10 +0200 |
| Subject | Re: [PATCH 1/9] drm: bridge/dw_hdmi-ahb-audio: add audio driver |
| Message-ID | <qgEQy-5kz-11@gated-at.bofh.it> |
On Sat, Aug 8, 2015 at 1:10 PM, Russell King <rmk+kernel@arm.linux.org.uk> wrote: > Add ALSA based HDMI AHB audio driver for dw_hdmi. The only buffer > format supported by the hardware is its own special IEC958 based format, > which is not compatible with any ALSA format. To avoid doing too much > data manipulation within the driver, we support only ALSAs IEC958 LE and > 24-bit PCM formats for 2 to 6 channels, which we convert to its hardware > format. > > A more desirable solution would be to have this conversion in userspace, > but ALSA does not appear to allow such transformations outside of > libasound itself. > > Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> I applied this series, but the HDMI audio card is not registered. I guess I missed the dts pieces. Are the dts patches available? Thanks -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [next] | [standalone]
| From | Russell King - ARM Linux <linux@arm.linux.org.uk> |
|---|---|
| Date | 2015-10-06 20:20 +0200 |
| Message-ID | <qgF0d-5vZ-3@gated-at.bofh.it> |
| In reply to | #1240830 |
On Tue, Oct 06, 2015 at 03:07:40PM -0300, Fabio Estevam wrote:
> On Sat, Aug 8, 2015 at 1:10 PM, Russell King
> <rmk+kernel@arm.linux.org.uk> wrote:
> > Add ALSA based HDMI AHB audio driver for dw_hdmi. The only buffer
> > format supported by the hardware is its own special IEC958 based format,
> > which is not compatible with any ALSA format. To avoid doing too much
> > data manipulation within the driver, we support only ALSAs IEC958 LE and
> > 24-bit PCM formats for 2 to 6 channels, which we convert to its hardware
> > format.
> >
> > A more desirable solution would be to have this conversion in userspace,
> > but ALSA does not appear to allow such transformations outside of
> > libasound itself.
> >
> > Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
>
> I applied this series, but the HDMI audio card is not registered. I
> guess I missed the dts pieces. Are the dts patches available?
Sorry, I've been out for most of the day. There's no DT patches required.
The dw_hdmi bridge driver creates its own platform device for the audio,
which should then bind to the dw_hdmi-ahb-audio driver using normal Linux
methods.
I don't know what's wrong with your setup, for me, it just works:
[ 1.358829] dwhdmi-imx 120000.hdmi: Detected HDMI controller 0x13:0xa:0xa0:0xc1
[ 1.377173] imx-drm display-subsystem: bound 120000.hdmi (ops dw_hdmi_imx_ops)
...
[ 2.851343] ALSA device list:
[ 2.857364] #0: DW-HDMI rev 0x0a, irq 21
as it always has done for me. There's nothing special about it.
There's nothing special about it - it's a standard ALSA PCM audio driver,
it doesn't have any requirements over and above having ALSA and ALSA's PCM
support enabled. If you didn't have those enabled, but somehow had the
dw_hdmi-ahb-audio set as built-in, you'd get a link time error, so it's
not a configuration issue.
It works for me on all iMX6 platforms (solo, dual-lite, dual and quad).
As it's a straight ALSA device, it doesn't need any codec or any of the
ASoC infrastructure either.
I guess the thing to start looking at is whether the device and driver
appear in /sys/bus/platform/{devices,drivers}/. You should have:
/sys/bus/platform/devices/dw-hdmi-ahb-audio.0.auto
/sys/bus/platform/drivers/dw-hdmi-ahb-audio
and obviously the latter should contain the symlink to the device. If
that is present, then the driver has bound, and it should appear in
/proc/asound/cards.
--
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Fabio Estevam <festevam@gmail.com> |
|---|---|
| Date | 2015-10-06 20:50 +0200 |
| Message-ID | <qgFtg-648-7@gated-at.bofh.it> |
| In reply to | #1240837 |
On Tue, Oct 6, 2015 at 3:18 PM, Russell King - ARM Linux <linux@arm.linux.org.uk> wrote: > Sorry, I've been out for most of the day. There's no DT patches required. > > The dw_hdmi bridge driver creates its own platform device for the audio, > which should then bind to the dw_hdmi-ahb-audio driver using normal Linux > methods. > > I don't know what's wrong with your setup, for me, it just works: > > [ 1.358829] dwhdmi-imx 120000.hdmi: Detected HDMI controller 0x13:0xa:0xa0:0xc1 > [ 1.377173] imx-drm display-subsystem: bound 120000.hdmi (ops dw_hdmi_imx_ops) > ... > [ 2.851343] ALSA device list: > [ 2.857364] #0: DW-HDMI rev 0x0a, irq 21 > > as it always has done for me. There's nothing special about it. Great, got it to probe now: [ 7.454760] ALSA device list: [ 7.457764] #0: DW-HDMI rev 0x0a, irq 19 [ 7.461990] #1: wm8962-audio There was a conflict and I resolved incorrectly here. Will try to play a wav file via aplay now. Thanks -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Russell King - ARM Linux <linux@arm.linux.org.uk> |
|---|---|
| Date | 2015-10-06 21:00 +0200 |
| Message-ID | <qgFCV-6fq-3@gated-at.bofh.it> |
| In reply to | #1240851 |
[Multipart message — attachments visible in raw view] — view raw
On Tue, Oct 06, 2015 at 03:45:32PM -0300, Fabio Estevam wrote: > On Tue, Oct 6, 2015 at 3:18 PM, Russell King - ARM Linux > <linux@arm.linux.org.uk> wrote: > > > Sorry, I've been out for most of the day. There's no DT patches required. > > > > The dw_hdmi bridge driver creates its own platform device for the audio, > > which should then bind to the dw_hdmi-ahb-audio driver using normal Linux > > methods. > > > > I don't know what's wrong with your setup, for me, it just works: > > > > [ 1.358829] dwhdmi-imx 120000.hdmi: Detected HDMI controller 0x13:0xa:0xa0:0xc1 > > [ 1.377173] imx-drm display-subsystem: bound 120000.hdmi (ops dw_hdmi_imx_ops) > > ... > > [ 2.851343] ALSA device list: > > [ 2.857364] #0: DW-HDMI rev 0x0a, irq 21 > > > > as it always has done for me. There's nothing special about it. > > Great, got it to probe now: > > [ 7.454760] ALSA device list: > [ 7.457764] #0: DW-HDMI rev 0x0a, irq 19 > [ 7.461990] #1: wm8962-audio > > There was a conflict and I resolved incorrectly here. Will try to play > a wav file via aplay now. Make sure you have the ALSA config file, as alsalib won't get on with dw-hdmi only accepting 24-bit audio without this. A copy is attached. It also tells ALSA how to deal with multi-channel audio as well. -- FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up according to speedtest.net.
[toc] | [prev] | [next] | [standalone]
| From | Fabio Estevam <festevam@gmail.com> |
|---|---|
| Date | 2015-10-06 22:30 +0200 |
| Message-ID | <qgH22-8u5-17@gated-at.bofh.it> |
| In reply to | #1240854 |
On Tue, Oct 6, 2015 at 3:54 PM, Russell King - ARM Linux <linux@arm.linux.org.uk> wrote: > Make sure you have the ALSA config file, as alsalib won't get on > with dw-hdmi only accepting 24-bit audio without this. A copy is > attached. It also tells ALSA how to deal with multi-channel audio > as well. Thanks, Russell! Got audio to play on my HDMI TV :-) For the entire series: Tested-by: Fabio Estevam <fabio.estevam@freescale.com> -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Russell King - ARM Linux <linux@arm.linux.org.uk> |
|---|---|
| Date | 2015-10-09 18:10 +0200 |
| Message-ID | <qhIp3-72M-9@gated-at.bofh.it> |
| In reply to | #1240972 |
On Tue, Oct 06, 2015 at 05:25:16PM -0300, Fabio Estevam wrote: > On Tue, Oct 6, 2015 at 3:54 PM, Russell King - ARM Linux > <linux@arm.linux.org.uk> wrote: > > > Make sure you have the ALSA config file, as alsalib won't get on > > with dw-hdmi only accepting 24-bit audio without this. A copy is > > attached. It also tells ALSA how to deal with multi-channel audio > > as well. > > Thanks, Russell! > > Got audio to play on my HDMI TV :-) > > For the entire series: > > Tested-by: Fabio Estevam <fabio.estevam@freescale.com> Just to confirm - that's for _all_ of these 8 patches, including the changes to the ACR code in the last four patches, and you're happy that I send all of these: drm: bridge/dw_hdmi-ahb-audio: add audio driver drm: bridge/dw_hdmi-ahb-audio: parse ELD from HDMI driver drm: bridge/dw_hdmi-ahb-audio: basic support for multi-channel PCM audio drm: bridge/dw_hdmi-ahb-audio: allow larger buffer sizes drm: bridge/dw_hdmi: avoid being recursive in N calculation drm: bridge/dw_hdmi: adjust pixel clock values in N calculation drm: bridge/dw_hdmi: remove ratio support from ACR code drm: bridge/dw_hdmi: replace CTS calculation for the ACR -- FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up according to speedtest.net. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Fabio Estevam <festevam@gmail.com> |
|---|---|
| Date | 2015-10-09 18:10 +0200 |
| Message-ID | <qhIp4-72M-21@gated-at.bofh.it> |
| In reply to | #1243502 |
On Fri, Oct 9, 2015 at 1:00 PM, Russell King - ARM Linux <linux@arm.linux.org.uk> wrote: >> Thanks, Russell! >> >> Got audio to play on my HDMI TV :-) >> >> For the entire series: >> >> Tested-by: Fabio Estevam <fabio.estevam@freescale.com> > > Just to confirm - that's for _all_ of these 8 patches, including the > changes to the ACR code in the last four patches, and you're happy that > I send all of these: > > drm: bridge/dw_hdmi-ahb-audio: add audio driver > drm: bridge/dw_hdmi-ahb-audio: parse ELD from HDMI driver > drm: bridge/dw_hdmi-ahb-audio: basic support for multi-channel PCM audio > drm: bridge/dw_hdmi-ahb-audio: allow larger buffer sizes > drm: bridge/dw_hdmi: avoid being recursive in N calculation > drm: bridge/dw_hdmi: adjust pixel clock values in N calculation > drm: bridge/dw_hdmi: remove ratio support from ACR code > drm: bridge/dw_hdmi: replace CTS calculation for the ACR That's correct. Thanks, Russell -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Russell King - ARM Linux <linux@arm.linux.org.uk> |
|---|---|
| Date | 2015-10-09 18:20 +0200 |
| Message-ID | <qhIyL-7ea-31@gated-at.bofh.it> |
| In reply to | #1243506 |
On Fri, Oct 09, 2015 at 01:02:11PM -0300, Fabio Estevam wrote: > On Fri, Oct 9, 2015 at 1:00 PM, Russell King - ARM Linux > <linux@arm.linux.org.uk> wrote: > > >> Thanks, Russell! > >> > >> Got audio to play on my HDMI TV :-) > >> > >> For the entire series: > >> > >> Tested-by: Fabio Estevam <fabio.estevam@freescale.com> > > > > Just to confirm - that's for _all_ of these 8 patches, including the > > changes to the ACR code in the last four patches, and you're happy that > > I send all of these: > > > > drm: bridge/dw_hdmi-ahb-audio: add audio driver > > drm: bridge/dw_hdmi-ahb-audio: parse ELD from HDMI driver > > drm: bridge/dw_hdmi-ahb-audio: basic support for multi-channel PCM audio > > drm: bridge/dw_hdmi-ahb-audio: allow larger buffer sizes > > drm: bridge/dw_hdmi: avoid being recursive in N calculation > > drm: bridge/dw_hdmi: adjust pixel clock values in N calculation > > drm: bridge/dw_hdmi: remove ratio support from ACR code > > drm: bridge/dw_hdmi: replace CTS calculation for the ACR > > That's correct. Thanks, Russell Thanks. I'll drop that set into linux-next tonight, along with the TDA998x and Armada DRM patches that haven't seen an airing there yet - before asking David to pull them next week (the timescale has slipped...) -- FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up according to speedtest.net. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web