All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-raspberrypi][PATCH] make sound work out of the box for raspberrypi2
@ 2015-03-22 20:21 Andreas Müller
  2015-03-23 15:59 ` Gary Thomas
  0 siblings, 1 reply; 17+ messages in thread
From: Andreas Müller @ 2015-03-22 20:21 UTC (permalink / raw)
  To: yocto

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
---
 ...-during-boot-by-compiling-SND_BCM2835-int.patch | 38 ++++++++++++++++++++++
 recipes-kernel/linux/linux-raspberrypi_3.18.bb     |  8 +++--
 2 files changed, 43 insertions(+), 3 deletions(-)
 create mode 100644 recipes-kernel/linux/linux-raspberrypi/0001-start-sound-during-boot-by-compiling-SND_BCM2835-int.patch

diff --git a/recipes-kernel/linux/linux-raspberrypi/0001-start-sound-during-boot-by-compiling-SND_BCM2835-int.patch b/recipes-kernel/linux/linux-raspberrypi/0001-start-sound-during-boot-by-compiling-SND_BCM2835-int.patch
new file mode 100644
index 0000000..cb06253
--- /dev/null
+++ b/recipes-kernel/linux/linux-raspberrypi/0001-start-sound-during-boot-by-compiling-SND_BCM2835-int.patch
@@ -0,0 +1,38 @@
+From dc6d02c68956a1833bd30159d4e411f1515db66e Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com>
+Date: Wed, 18 Mar 2015 23:51:37 +0100
+Subject: [PATCH] start sound during boot by compiling SND_BCM2835 into kernel
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
+---
+ arch/arm/configs/bcm2709_defconfig | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/arch/arm/configs/bcm2709_defconfig b/arch/arm/configs/bcm2709_defconfig
+index b5bf4cb..426f2ed 100644
+--- a/arch/arm/configs/bcm2709_defconfig
++++ b/arch/arm/configs/bcm2709_defconfig
+@@ -765,7 +765,7 @@ CONFIG_LOGO=y
+ # CONFIG_LOGO_LINUX_MONO is not set
+ # CONFIG_LOGO_LINUX_VGA16 is not set
+ CONFIG_SOUND=y
+-CONFIG_SND=m
++CONFIG_SND=y
+ CONFIG_SND_SEQUENCER=m
+ CONFIG_SND_SEQ_DUMMY=m
+ CONFIG_SND_MIXER_OSS=m
+@@ -778,7 +778,7 @@ CONFIG_SND_VIRMIDI=m
+ CONFIG_SND_MTPAV=m
+ CONFIG_SND_SERIAL_U16550=m
+ CONFIG_SND_MPU401=m
+-CONFIG_SND_BCM2835=m
++CONFIG_SND_BCM2835=y
+ CONFIG_SND_USB_AUDIO=m
+ CONFIG_SND_USB_UA101=m
+ CONFIG_SND_USB_CAIAQ=m
+-- 
+1.9.3
+
diff --git a/recipes-kernel/linux/linux-raspberrypi_3.18.bb b/recipes-kernel/linux/linux-raspberrypi_3.18.bb
index 921e702..053e892 100644
--- a/recipes-kernel/linux/linux-raspberrypi_3.18.bb
+++ b/recipes-kernel/linux/linux-raspberrypi_3.18.bb
@@ -1,8 +1,10 @@
 LINUX_VERSION ?= "3.18.5"
 
 SRCREV = "a6cf3c99bc89e2c010c2f78fbf9e3ed478ccfd46"
-SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.18.y \
-           file://sl030raspberrypii2ckernel.patch \
-          "
+SRC_URI = " \
+    git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.18.y \
+    file://sl030raspberrypii2ckernel.patch \
+    file://0001-start-sound-during-boot-by-compiling-SND_BCM2835-int.patch \
+"
 
 require linux-raspberrypi.inc
-- 
1.9.3



^ permalink raw reply related	[flat|nested] 17+ messages in thread

* Re: [meta-raspberrypi][PATCH] make sound work out of the box for raspberrypi2
  2015-03-22 20:21 [meta-raspberrypi][PATCH] make sound work out of the box for raspberrypi2 Andreas Müller
@ 2015-03-23 15:59 ` Gary Thomas
  2015-03-23 16:42   ` Alex J Lennon
  2015-03-23 20:57   ` Andreas Müller
  0 siblings, 2 replies; 17+ messages in thread
From: Gary Thomas @ 2015-03-23 15:59 UTC (permalink / raw)
  To: yocto

On 2015-03-22 14:21, Andreas Müller wrote:
> Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
> ---
>   ...-during-boot-by-compiling-SND_BCM2835-int.patch | 38 ++++++++++++++++++++++
>   recipes-kernel/linux/linux-raspberrypi_3.18.bb     |  8 +++--
>   2 files changed, 43 insertions(+), 3 deletions(-)
>   create mode 100644 recipes-kernel/linux/linux-raspberrypi/0001-start-sound-during-boot-by-compiling-SND_BCM2835-int.patch

I tried this patch (which downloaded very strangely using Thunderbird) and the
kernel rebuilt fine.  I now have the audio detected, but still no sound :-(
Again I've tried the internal (phono) speakers as well as HDMI audio.

Just to prove a point on the [brand new] hardware, I installed OpenELEC (XBMC)
and it works fine using the HDMI audio.  Sadly when I tried Raspbian and Ubuntu
there was no sound either...

Were you (Andreas) able to get any sound with this patch?

> diff --git a/recipes-kernel/linux/linux-raspberrypi/0001-start-sound-during-boot-by-compiling-SND_BCM2835-int.patch b/recipes-kernel/linux/linux-raspberrypi/0001-start-sound-during-boot-by-compiling-SND_BCM2835-int.patch
> new file mode 100644
> index 0000000..cb06253
> --- /dev/null
> +++ b/recipes-kernel/linux/linux-raspberrypi/0001-start-sound-during-boot-by-compiling-SND_BCM2835-int.patch
> @@ -0,0 +1,38 @@
> +From dc6d02c68956a1833bd30159d4e411f1515db66e Mon Sep 17 00:00:00 2001
> +From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com>
> +Date: Wed, 18 Mar 2015 23:51:37 +0100
> +Subject: [PATCH] start sound during boot by compiling SND_BCM2835 into kernel
> +MIME-Version: 1.0
> +Content-Type: text/plain; charset=UTF-8
> +Content-Transfer-Encoding: 8bit
> +
> +Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
> +---
> + arch/arm/configs/bcm2709_defconfig | 4 ++--
> + 1 file changed, 2 insertions(+), 2 deletions(-)
> +
> +diff --git a/arch/arm/configs/bcm2709_defconfig b/arch/arm/configs/bcm2709_defconfig
> +index b5bf4cb..426f2ed 100644
> +--- a/arch/arm/configs/bcm2709_defconfig
> ++++ b/arch/arm/configs/bcm2709_defconfig
> +@@ -765,7 +765,7 @@ CONFIG_LOGO=y
> + # CONFIG_LOGO_LINUX_MONO is not set
> + # CONFIG_LOGO_LINUX_VGA16 is not set
> + CONFIG_SOUND=y
> +-CONFIG_SND=m
> ++CONFIG_SND=y
> + CONFIG_SND_SEQUENCER=m
> + CONFIG_SND_SEQ_DUMMY=m
> + CONFIG_SND_MIXER_OSS=m
> +@@ -778,7 +778,7 @@ CONFIG_SND_VIRMIDI=m
> + CONFIG_SND_MTPAV=m
> + CONFIG_SND_SERIAL_U16550=m
> + CONFIG_SND_MPU401=m
> +-CONFIG_SND_BCM2835=m
> ++CONFIG_SND_BCM2835=y
> + CONFIG_SND_USB_AUDIO=m
> + CONFIG_SND_USB_UA101=m
> + CONFIG_SND_USB_CAIAQ=m
> +--
> +1.9.3
> +
> diff --git a/recipes-kernel/linux/linux-raspberrypi_3.18.bb b/recipes-kernel/linux/linux-raspberrypi_3.18.bb
> index 921e702..053e892 100644
> --- a/recipes-kernel/linux/linux-raspberrypi_3.18.bb
> +++ b/recipes-kernel/linux/linux-raspberrypi_3.18.bb
> @@ -1,8 +1,10 @@
>   LINUX_VERSION ?= "3.18.5"
>
>   SRCREV = "a6cf3c99bc89e2c010c2f78fbf9e3ed478ccfd46"
> -SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.18.y \
> -           file://sl030raspberrypii2ckernel.patch \
> -          "
> +SRC_URI = " \
> +    git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-3.18.y \
> +    file://sl030raspberrypii2ckernel.patch \
> +    file://0001-start-sound-during-boot-by-compiling-SND_BCM2835-int.patch \
> +"
>
>   require linux-raspberrypi.inc
>

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [meta-raspberrypi][PATCH] make sound work out of the box for raspberrypi2
  2015-03-23 15:59 ` Gary Thomas
@ 2015-03-23 16:42   ` Alex J Lennon
  2015-03-23 17:08     ` Gary Thomas
  2015-03-23 20:57   ` Andreas Müller
  1 sibling, 1 reply; 17+ messages in thread
From: Alex J Lennon @ 2015-03-23 16:42 UTC (permalink / raw)
  To: Gary Thomas; +Cc: yocto



On 23/03/2015 16:59, Gary Thomas wrote:
> On 2015-03-22 14:21, Andreas Müller wrote:
>> Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
>> ---
>>   ...-during-boot-by-compiling-SND_BCM2835-int.patch | 38
>> ++++++++++++++++++++++
>>   recipes-kernel/linux/linux-raspberrypi_3.18.bb     |  8 +++--
>>   2 files changed, 43 insertions(+), 3 deletions(-)
>>   create mode 100644
>> recipes-kernel/linux/linux-raspberrypi/0001-start-sound-during-boot-by-compiling-SND_BCM2835-int.patch
>
> I tried this patch (which downloaded very strangely using Thunderbird)
> and the
> kernel rebuilt fine.  I now have the audio detected, but still no
> sound :-(
> Again I've tried the internal (phono) speakers as well as HDMI audio.
>
> Just to prove a point on the [brand new] hardware, I installed
> OpenELEC (XBMC)
> and it works fine using the HDMI audio.  Sadly when I tried Raspbian
> and Ubuntu
> there was no sound either...
>
> Were you (Andreas) able to get any sound with this patch? 

Sorry to jump in on your conversation Gary but I am also doing some bits
and pieces with meta-raspberrypi myself to test out my new-ish RPiv2.

I'll have a look at changing the kernel configuration here later, but I
did also try changing TEST_MODE in the config.txt which is billed as
giving analogue audio and video out at startup. Sure enough I hear the
startup beeps.

Perhaps this would enable you to verify the hardware is working too?

The docs would seem to indicate that it should output a/v for the
configured number of seconds whereas I see this continuously until I
power cycle, but maybe that is a typo.

http://www.raspberrypi.org/documentation/configuration/config-txt.md

Regards, Alex



^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [meta-raspberrypi][PATCH] make sound work out of the box for raspberrypi2
  2015-03-23 16:42   ` Alex J Lennon
@ 2015-03-23 17:08     ` Gary Thomas
  2015-03-23 17:13       ` Alex J Lennon
  0 siblings, 1 reply; 17+ messages in thread
From: Gary Thomas @ 2015-03-23 17:08 UTC (permalink / raw)
  To: yocto

On 2015-03-23 10:42, Alex J Lennon wrote:
>
>
> On 23/03/2015 16:59, Gary Thomas wrote:
>> On 2015-03-22 14:21, Andreas Müller wrote:
>>> Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
>>> ---
>>>    ...-during-boot-by-compiling-SND_BCM2835-int.patch | 38
>>> ++++++++++++++++++++++
>>>    recipes-kernel/linux/linux-raspberrypi_3.18.bb     |  8 +++--
>>>    2 files changed, 43 insertions(+), 3 deletions(-)
>>>    create mode 100644
>>> recipes-kernel/linux/linux-raspberrypi/0001-start-sound-during-boot-by-compiling-SND_BCM2835-int.patch
>>
>> I tried this patch (which downloaded very strangely using Thunderbird)
>> and the
>> kernel rebuilt fine.  I now have the audio detected, but still no
>> sound :-(
>> Again I've tried the internal (phono) speakers as well as HDMI audio.
>>
>> Just to prove a point on the [brand new] hardware, I installed
>> OpenELEC (XBMC)
>> and it works fine using the HDMI audio.  Sadly when I tried Raspbian
>> and Ubuntu
>> there was no sound either...
>>
>> Were you (Andreas) able to get any sound with this patch?
>
> Sorry to jump in on your conversation Gary but I am also doing some bits
> and pieces with meta-raspberrypi myself to test out my new-ish RPiv2.
>
> I'll have a look at changing the kernel configuration here later, but I
> did also try changing TEST_MODE in the config.txt which is billed as
> giving analogue audio and video out at startup. Sure enough I hear the
> startup beeps.
>
> Perhaps this would enable you to verify the hardware is working too?

Verified - this works.  Still no sound when I boot Poky/Yocto.

Have you tried audio output from Linux?

>
> The docs would seem to indicate that it should output a/v for the
> configured number of seconds whereas I see this continuously until I
> power cycle, but maybe that is a typo.
>
> http://www.raspberrypi.org/documentation/configuration/config-txt.md
>
> Regards, Alex
>

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [meta-raspberrypi][PATCH] make sound work out of the box for raspberrypi2
  2015-03-23 17:08     ` Gary Thomas
@ 2015-03-23 17:13       ` Alex J Lennon
  2015-03-23 17:33         ` Gary Thomas
  0 siblings, 1 reply; 17+ messages in thread
From: Alex J Lennon @ 2015-03-23 17:13 UTC (permalink / raw)
  To: Gary Thomas; +Cc: yocto



On 23/03/2015 18:08, Gary Thomas wrote:
> On 2015-03-23 10:42, Alex J Lennon wrote:
>>
>>
>> On 23/03/2015 16:59, Gary Thomas wrote:
>>> On 2015-03-22 14:21, Andreas Müller wrote:
>>>> Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
>>>> ---
>>>>    ...-during-boot-by-compiling-SND_BCM2835-int.patch | 38
>>>> ++++++++++++++++++++++
>>>>    recipes-kernel/linux/linux-raspberrypi_3.18.bb     |  8 +++--
>>>>    2 files changed, 43 insertions(+), 3 deletions(-)
>>>>    create mode 100644
>>>> recipes-kernel/linux/linux-raspberrypi/0001-start-sound-during-boot-by-compiling-SND_BCM2835-int.patch
>>>>
>>>
>>> I tried this patch (which downloaded very strangely using Thunderbird)
>>> and the
>>> kernel rebuilt fine.  I now have the audio detected, but still no
>>> sound :-(
>>> Again I've tried the internal (phono) speakers as well as HDMI audio.
>>>
>>> Just to prove a point on the [brand new] hardware, I installed
>>> OpenELEC (XBMC)
>>> and it works fine using the HDMI audio.  Sadly when I tried Raspbian
>>> and Ubuntu
>>> there was no sound either...
>>>
>>> Were you (Andreas) able to get any sound with this patch?
>>
>> Sorry to jump in on your conversation Gary but I am also doing some bits
>> and pieces with meta-raspberrypi myself to test out my new-ish RPiv2.
>>
>> I'll have a look at changing the kernel configuration here later, but I
>> did also try changing TEST_MODE in the config.txt which is billed as
>> giving analogue audio and video out at startup. Sure enough I hear the
>> startup beeps.
>>
>> Perhaps this would enable you to verify the hardware is working too?
>
> Verified - this works.  Still no sound when I boot Poky/Yocto.
>
> Have you tried audio output from Linux?

OK that's something then. I'm in the middle of some i.MX6 builds at the
minute but will look at this with the meta-raspberrypi kernel later and
come back to you. I suspect I will see the same as you.

I don't have anything capable of HDMI audio about here so will output a
wav file or something to the analogue jack. What's your simplest test case?

I might also have a look and see if I can get anything out of the
GStreamer1.0 audio/video playback as I'm looking at that too at the minute.

Regards, Alex



^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [meta-raspberrypi][PATCH] make sound work out of the box for raspberrypi2
  2015-03-23 17:13       ` Alex J Lennon
@ 2015-03-23 17:33         ` Gary Thomas
  2015-03-23 17:41           ` Andrei Gherzan
  0 siblings, 1 reply; 17+ messages in thread
From: Gary Thomas @ 2015-03-23 17:33 UTC (permalink / raw)
  To: yocto

On 2015-03-23 11:13, Alex J Lennon wrote:
>
>
> On 23/03/2015 18:08, Gary Thomas wrote:
>> On 2015-03-23 10:42, Alex J Lennon wrote:
>>>
>>>
>>> On 23/03/2015 16:59, Gary Thomas wrote:
>>>> On 2015-03-22 14:21, Andreas Müller wrote:
>>>>> Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
>>>>> ---
>>>>>     ...-during-boot-by-compiling-SND_BCM2835-int.patch | 38
>>>>> ++++++++++++++++++++++
>>>>>     recipes-kernel/linux/linux-raspberrypi_3.18.bb     |  8 +++--
>>>>>     2 files changed, 43 insertions(+), 3 deletions(-)
>>>>>     create mode 100644
>>>>> recipes-kernel/linux/linux-raspberrypi/0001-start-sound-during-boot-by-compiling-SND_BCM2835-int.patch
>>>>>
>>>>
>>>> I tried this patch (which downloaded very strangely using Thunderbird)
>>>> and the
>>>> kernel rebuilt fine.  I now have the audio detected, but still no
>>>> sound :-(
>>>> Again I've tried the internal (phono) speakers as well as HDMI audio.
>>>>
>>>> Just to prove a point on the [brand new] hardware, I installed
>>>> OpenELEC (XBMC)
>>>> and it works fine using the HDMI audio.  Sadly when I tried Raspbian
>>>> and Ubuntu
>>>> there was no sound either...
>>>>
>>>> Were you (Andreas) able to get any sound with this patch?
>>>
>>> Sorry to jump in on your conversation Gary but I am also doing some bits
>>> and pieces with meta-raspberrypi myself to test out my new-ish RPiv2.
>>>
>>> I'll have a look at changing the kernel configuration here later, but I
>>> did also try changing TEST_MODE in the config.txt which is billed as
>>> giving analogue audio and video out at startup. Sure enough I hear the
>>> startup beeps.
>>>
>>> Perhaps this would enable you to verify the hardware is working too?
>>
>> Verified - this works.  Still no sound when I boot Poky/Yocto.
>>
>> Have you tried audio output from Linux?
>
> OK that's something then. I'm in the middle of some i.MX6 builds at the
> minute but will look at this with the meta-raspberrypi kernel later and
> come back to you. I suspect I will see the same as you.
>
> I don't have anything capable of HDMI audio about here so will output a
> wav file or something to the analogue jack. What's your simplest test case?

Use gstreamer:
   # gst-launch audiotestsrc ! alsasink

>
> I might also have a look and see if I can get anything out of the
> GStreamer1.0 audio/video playback as I'm looking at that too at the minute.
>
> Regards, Alex
>

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [meta-raspberrypi][PATCH] make sound work out of the box for raspberrypi2
  2015-03-23 17:33         ` Gary Thomas
@ 2015-03-23 17:41           ` Andrei Gherzan
  2015-03-23 19:01             ` Gary Thomas
  0 siblings, 1 reply; 17+ messages in thread
From: Andrei Gherzan @ 2015-03-23 17:41 UTC (permalink / raw)
  To: Gary Thomas; +Cc: Yocto Project

[-- Attachment #1: Type: text/plain, Size: 2656 bytes --]

On Mon, Mar 23, 2015 at 6:33 PM, Gary Thomas <gary@mlbassoc.com> wrote:

> On 2015-03-23 11:13, Alex J Lennon wrote:
>
>>
>>
>> On 23/03/2015 18:08, Gary Thomas wrote:
>>
>>> On 2015-03-23 10:42, Alex J Lennon wrote:
>>>
>>>>
>>>>
>>>> On 23/03/2015 16:59, Gary Thomas wrote:
>>>>
>>>>> On 2015-03-22 14:21, Andreas Müller wrote:
>>>>>
>>>>>> Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
>>>>>> ---
>>>>>>     ...-during-boot-by-compiling-SND_BCM2835-int.patch | 38
>>>>>> ++++++++++++++++++++++
>>>>>>     recipes-kernel/linux/linux-raspberrypi_3.18.bb     |  8 +++--
>>>>>>     2 files changed, 43 insertions(+), 3 deletions(-)
>>>>>>     create mode 100644
>>>>>> recipes-kernel/linux/linux-raspberrypi/0001-start-sound-
>>>>>> during-boot-by-compiling-SND_BCM2835-int.patch
>>>>>>
>>>>>>
>>>>> I tried this patch (which downloaded very strangely using Thunderbird)
>>>>> and the
>>>>> kernel rebuilt fine.  I now have the audio detected, but still no
>>>>> sound :-(
>>>>> Again I've tried the internal (phono) speakers as well as HDMI audio.
>>>>>
>>>>> Just to prove a point on the [brand new] hardware, I installed
>>>>> OpenELEC (XBMC)
>>>>> and it works fine using the HDMI audio.  Sadly when I tried Raspbian
>>>>> and Ubuntu
>>>>> there was no sound either...
>>>>>
>>>>> Were you (Andreas) able to get any sound with this patch?
>>>>>
>>>>
>>>> Sorry to jump in on your conversation Gary but I am also doing some bits
>>>> and pieces with meta-raspberrypi myself to test out my new-ish RPiv2.
>>>>
>>>> I'll have a look at changing the kernel configuration here later, but I
>>>> did also try changing TEST_MODE in the config.txt which is billed as
>>>> giving analogue audio and video out at startup. Sure enough I hear the
>>>> startup beeps.
>>>>
>>>> Perhaps this would enable you to verify the hardware is working too?
>>>>
>>>
>>> Verified - this works.  Still no sound when I boot Poky/Yocto.
>>>
>>> Have you tried audio output from Linux?
>>>
>>
>> OK that's something then. I'm in the middle of some i.MX6 builds at the
>> minute but will look at this with the meta-raspberrypi kernel later and
>> come back to you. I suspect I will see the same as you.
>>
>> I don't have anything capable of HDMI audio about here so will output a
>> wav file or something to the analogue jack. What's your simplest test
>> case?
>>
>
> Use gstreamer:
>   # gst-launch audiotestsrc ! alsasink


I think I tested sound with omxplayer on rpi2... this is pretty strange.

-- 
*Andrei Gherzan*
*e: **andrei@gherzan.ro <andrei@gherzan.ro>*
*w: *www.gherzan.ro

[-- Attachment #2: Type: text/html, Size: 4380 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [meta-raspberrypi][PATCH] make sound work out of the box for raspberrypi2
  2015-03-23 17:41           ` Andrei Gherzan
@ 2015-03-23 19:01             ` Gary Thomas
  0 siblings, 0 replies; 17+ messages in thread
From: Gary Thomas @ 2015-03-23 19:01 UTC (permalink / raw)
  To: yocto

On 2015-03-23 11:41, Andrei Gherzan wrote:
>
>
> On Mon, Mar 23, 2015 at 6:33 PM, Gary Thomas <gary@mlbassoc.com <mailto:gary@mlbassoc.com>> wrote:
>
>     On 2015-03-23 11:13, Alex J Lennon wrote:
>
>
>
>         On 23/03/2015 18:08, Gary Thomas wrote:
>
>             On 2015-03-23 10:42, Alex J Lennon wrote:
>
>
>
>                 On 23/03/2015 16:59, Gary Thomas wrote:
>
>                     On 2015-03-22 14:21, Andreas Müller wrote:
>
>                         Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com <mailto:schnitzeltony@googlemail.com>>
>                         ---
>                              ...-during-boot-by-compiling-__SND_BCM2835-int.patch | 38
>                         ++++++++++++++++++++++
>                              recipes-kernel/linux/linux-__raspberrypi_3.18.bb <http://linux-raspberrypi_3.18.bb>     |  8 +++--
>                              2 files changed, 43 insertions(+), 3 deletions(-)
>                              create mode 100644
>                         recipes-kernel/linux/linux-__raspberrypi/0001-start-sound-__during-boot-by-compiling-SND___BCM2835-int.patch
>
>
>                     I tried this patch (which downloaded very strangely using Thunderbird)
>                     and the
>                     kernel rebuilt fine.  I now have the audio detected, but still no
>                     sound :-(
>                     Again I've tried the internal (phono) speakers as well as HDMI audio.
>
>                     Just to prove a point on the [brand new] hardware, I installed
>                     OpenELEC (XBMC)
>                     and it works fine using the HDMI audio.  Sadly when I tried Raspbian
>                     and Ubuntu
>                     there was no sound either...
>
>                     Were you (Andreas) able to get any sound with this patch?
>
>
>                 Sorry to jump in on your conversation Gary but I am also doing some bits
>                 and pieces with meta-raspberrypi myself to test out my new-ish RPiv2.
>
>                 I'll have a look at changing the kernel configuration here later, but I
>                 did also try changing TEST_MODE in the config.txt which is billed as
>                 giving analogue audio and video out at startup. Sure enough I hear the
>                 startup beeps.
>
>                 Perhaps this would enable you to verify the hardware is working too?
>
>
>             Verified - this works.  Still no sound when I boot Poky/Yocto.
>
>             Have you tried audio output from Linux?
>
>
>         OK that's something then. I'm in the middle of some i.MX6 builds at the
>         minute but will look at this with the meta-raspberrypi kernel later and
>         come back to you. I suspect I will see the same as you.
>
>         I don't have anything capable of HDMI audio about here so will output a
>         wav file or something to the analogue jack. What's your simplest test case?
>
>
>     Use gstreamer:
>        # gst-launch audiotestsrc ! alsasink
>
>
> I think I tested sound with omxplayer on rpi2... this is pretty strange.

I just tried it with omxplayer - still nothing, sorry.

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [meta-raspberrypi][PATCH] make sound work out of the box for raspberrypi2
  2015-03-23 15:59 ` Gary Thomas
  2015-03-23 16:42   ` Alex J Lennon
@ 2015-03-23 20:57   ` Andreas Müller
  2015-03-23 21:43     ` Gary Thomas
  1 sibling, 1 reply; 17+ messages in thread
From: Andreas Müller @ 2015-03-23 20:57 UTC (permalink / raw)
  To: Gary Thomas; +Cc: Yocto Project

On Mon, Mar 23, 2015 at 4:59 PM, Gary Thomas <gary@mlbassoc.com> wrote:
> On 2015-03-22 14:21, Andreas Müller wrote:
>>
>> Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
>> ---
>>   ...-during-boot-by-compiling-SND_BCM2835-int.patch | 38
>> ++++++++++++++++++++++
>>   recipes-kernel/linux/linux-raspberrypi_3.18.bb     |  8 +++--
>>   2 files changed, 43 insertions(+), 3 deletions(-)
>>   create mode 100644
>> recipes-kernel/linux/linux-raspberrypi/0001-start-sound-during-boot-by-compiling-SND_BCM2835-int.patch
>
>
> I tried this patch (which downloaded very strangely using Thunderbird) and
> the
> kernel rebuilt fine.  I now have the audio detected, but still no sound :-(
> Again I've tried the internal (phono) speakers as well as HDMI audio.
>
> Just to prove a point on the [brand new] hardware, I installed OpenELEC
> (XBMC)
> and it works fine using the HDMI audio.  Sadly when I tried Raspbian and
> Ubuntu
> there was no sound either...
>
> Were you (Andreas) able to get any sound with this patch?
>
Yes but I have used 3.5mm sound output - Should have mentioned that in
commit. I guess there is to enable something else in kernel config for
HDMI. Will look into that

Andreas


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [meta-raspberrypi][PATCH] make sound work out of the box for raspberrypi2
  2015-03-23 20:57   ` Andreas Müller
@ 2015-03-23 21:43     ` Gary Thomas
  2015-03-23 22:22       ` Andreas Müller
  0 siblings, 1 reply; 17+ messages in thread
From: Gary Thomas @ 2015-03-23 21:43 UTC (permalink / raw)
  To: Andreas Müller; +Cc: Yocto Project

On 2015-03-23 14:57, Andreas Müller wrote:
> On Mon, Mar 23, 2015 at 4:59 PM, Gary Thomas <gary@mlbassoc.com> wrote:
>> On 2015-03-22 14:21, Andreas Müller wrote:
>>>
>>> Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
>>> ---
>>>    ...-during-boot-by-compiling-SND_BCM2835-int.patch | 38
>>> ++++++++++++++++++++++
>>>    recipes-kernel/linux/linux-raspberrypi_3.18.bb     |  8 +++--
>>>    2 files changed, 43 insertions(+), 3 deletions(-)
>>>    create mode 100644
>>> recipes-kernel/linux/linux-raspberrypi/0001-start-sound-during-boot-by-compiling-SND_BCM2835-int.patch
>>
>>
>> I tried this patch (which downloaded very strangely using Thunderbird) and
>> the
>> kernel rebuilt fine.  I now have the audio detected, but still no sound :-(
>> Again I've tried the internal (phono) speakers as well as HDMI audio.
>>
>> Just to prove a point on the [brand new] hardware, I installed OpenELEC
>> (XBMC)
>> and it works fine using the HDMI audio.  Sadly when I tried Raspbian and
>> Ubuntu
>> there was no sound either...
>>
>> Were you (Andreas) able to get any sound with this patch?
>>
> Yes but I have used 3.5mm sound output - Should have mentioned that in
> commit. I guess there is to enable something else in kernel config for
> HDMI. Will look into that

I've tried the 3.5mm jack as well but nothing seems to come out.
I even tried booting with the HDMI missing (powered off) in case
that was causing some confusion.

Did you make any changes to config.txt to get this going?

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [meta-raspberrypi][PATCH] make sound work out of the box for raspberrypi2
  2015-03-23 21:43     ` Gary Thomas
@ 2015-03-23 22:22       ` Andreas Müller
  2015-03-23 23:14         ` Gary Thomas
  0 siblings, 1 reply; 17+ messages in thread
From: Andreas Müller @ 2015-03-23 22:22 UTC (permalink / raw)
  To: Gary Thomas; +Cc: Yocto Project

On Mon, Mar 23, 2015 at 10:43 PM, Gary Thomas <gary@mlbassoc.com> wrote:
> On 2015-03-23 14:57, Andreas Müller wrote:
>>
>> On Mon, Mar 23, 2015 at 4:59 PM, Gary Thomas <gary@mlbassoc.com> wrote:
>>>
>>> On 2015-03-22 14:21, Andreas Müller wrote:
>>>>
>>>>
>>>> Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
>>>> ---
>>>>    ...-during-boot-by-compiling-SND_BCM2835-int.patch | 38
>>>> ++++++++++++++++++++++
>>>>    recipes-kernel/linux/linux-raspberrypi_3.18.bb     |  8 +++--
>>>>    2 files changed, 43 insertions(+), 3 deletions(-)
>>>>    create mode 100644
>>>>
>>>> recipes-kernel/linux/linux-raspberrypi/0001-start-sound-during-boot-by-compiling-SND_BCM2835-int.patch
>>>
>>>
>>>
>>> I tried this patch (which downloaded very strangely using Thunderbird)
>>> and
>>> the
>>> kernel rebuilt fine.  I now have the audio detected, but still no sound
>>> :-(
>>> Again I've tried the internal (phono) speakers as well as HDMI audio.
>>>
>>> Just to prove a point on the [brand new] hardware, I installed OpenELEC
>>> (XBMC)
>>> and it works fine using the HDMI audio.  Sadly when I tried Raspbian and
>>> Ubuntu
>>> there was no sound either...
>>>
>>> Were you (Andreas) able to get any sound with this patch?
>>>
>> Yes but I have used 3.5mm sound output - Should have mentioned that in
>> commit. I guess there is to enable something else in kernel config for
>> HDMI. Will look into that
>
>
> I've tried the 3.5mm jack as well but nothing seems to come out.
> I even tried booting with the HDMI missing (powered off) in case
> that was causing some confusion.
>
> Did you make any changes to config.txt to get this going?
No
>
Have my standard xfce-image with xfce4-mixer and as mentioned out of
the box: I can hear sound / change volume...

What does happen if you start alsamixer - if it is installed on your image?

Andreas


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [meta-raspberrypi][PATCH] make sound work out of the box for raspberrypi2
  2015-03-23 22:22       ` Andreas Müller
@ 2015-03-23 23:14         ` Gary Thomas
  2015-03-24  7:21           ` Andreas Müller
  0 siblings, 1 reply; 17+ messages in thread
From: Gary Thomas @ 2015-03-23 23:14 UTC (permalink / raw)
  To: Andreas Müller; +Cc: Yocto Project

On 2015-03-23 16:22, Andreas Müller wrote:
> On Mon, Mar 23, 2015 at 10:43 PM, Gary Thomas <gary@mlbassoc.com> wrote:
>> On 2015-03-23 14:57, Andreas Müller wrote:
>>>
>>> On Mon, Mar 23, 2015 at 4:59 PM, Gary Thomas <gary@mlbassoc.com> wrote:
>>>>
>>>> On 2015-03-22 14:21, Andreas Müller wrote:
>>>>>
>>>>>
>>>>> Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
>>>>> ---
>>>>>     ...-during-boot-by-compiling-SND_BCM2835-int.patch | 38
>>>>> ++++++++++++++++++++++
>>>>>     recipes-kernel/linux/linux-raspberrypi_3.18.bb     |  8 +++--
>>>>>     2 files changed, 43 insertions(+), 3 deletions(-)
>>>>>     create mode 100644
>>>>>
>>>>> recipes-kernel/linux/linux-raspberrypi/0001-start-sound-during-boot-by-compiling-SND_BCM2835-int.patch
>>>>
>>>>
>>>>
>>>> I tried this patch (which downloaded very strangely using Thunderbird)
>>>> and
>>>> the
>>>> kernel rebuilt fine.  I now have the audio detected, but still no sound
>>>> :-(
>>>> Again I've tried the internal (phono) speakers as well as HDMI audio.
>>>>
>>>> Just to prove a point on the [brand new] hardware, I installed OpenELEC
>>>> (XBMC)
>>>> and it works fine using the HDMI audio.  Sadly when I tried Raspbian and
>>>> Ubuntu
>>>> there was no sound either...
>>>>
>>>> Were you (Andreas) able to get any sound with this patch?
>>>>
>>> Yes but I have used 3.5mm sound output - Should have mentioned that in
>>> commit. I guess there is to enable something else in kernel config for
>>> HDMI. Will look into that
>>
>>
>> I've tried the 3.5mm jack as well but nothing seems to come out.
>> I even tried booting with the HDMI missing (powered off) in case
>> that was causing some confusion.
>>
>> Did you make any changes to config.txt to get this going?
> No
>>
> Have my standard xfce-image with xfce4-mixer and as mentioned out of
> the box: I can hear sound / change volume...

Would it be possible to share your [bootable] image?

>
> What does happen if you start alsamixer - if it is installed on your image?

alsamixer looks correct.

BTW, I've tried this on my RaspberryPi Model B and I don't get any sound
from it either :-(  Again, booting with test_mode=1 shows that the hardware
is working, just not in Linux. I'm sure I've tried this in the past with
success so I'm becoming more and more confused...

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [meta-raspberrypi][PATCH] make sound work out of the box for raspberrypi2
  2015-03-23 23:14         ` Gary Thomas
@ 2015-03-24  7:21           ` Andreas Müller
  2015-03-24  8:21             ` Alex J Lennon
  0 siblings, 1 reply; 17+ messages in thread
From: Andreas Müller @ 2015-03-24  7:21 UTC (permalink / raw)
  To: Gary Thomas; +Cc: Yocto Project

On Tue, Mar 24, 2015 at 12:14 AM, Gary Thomas <gary@mlbassoc.com> wrote:
> On 2015-03-23 16:22, Andreas Müller wrote:
>>
>> On Mon, Mar 23, 2015 at 10:43 PM, Gary Thomas <gary@mlbassoc.com> wrote:
>>>
>>> On 2015-03-23 14:57, Andreas Müller wrote:
>>>>
>>>>
>>>> On Mon, Mar 23, 2015 at 4:59 PM, Gary Thomas <gary@mlbassoc.com> wrote:
>>>>>
>>>>>
>>>>> On 2015-03-22 14:21, Andreas Müller wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>> Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
>>>>>> ---
>>>>>>     ...-during-boot-by-compiling-SND_BCM2835-int.patch | 38
>>>>>> ++++++++++++++++++++++
>>>>>>     recipes-kernel/linux/linux-raspberrypi_3.18.bb     |  8 +++--
>>>>>>     2 files changed, 43 insertions(+), 3 deletions(-)
>>>>>>     create mode 100644
>>>>>>
>>>>>>
>>>>>> recipes-kernel/linux/linux-raspberrypi/0001-start-sound-during-boot-by-compiling-SND_BCM2835-int.patch
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> I tried this patch (which downloaded very strangely using Thunderbird)
>>>>> and
>>>>> the
>>>>> kernel rebuilt fine.  I now have the audio detected, but still no sound
>>>>> :-(
>>>>> Again I've tried the internal (phono) speakers as well as HDMI audio.
>>>>>
>>>>> Just to prove a point on the [brand new] hardware, I installed OpenELEC
>>>>> (XBMC)
>>>>> and it works fine using the HDMI audio.  Sadly when I tried Raspbian
>>>>> and
>>>>> Ubuntu
>>>>> there was no sound either...
>>>>>
>>>>> Were you (Andreas) able to get any sound with this patch?
>>>>>
>>>> Yes but I have used 3.5mm sound output - Should have mentioned that in
>>>> commit. I guess there is to enable something else in kernel config for
>>>> HDMI. Will look into that
>>>
>>>
>>>
>>> I've tried the 3.5mm jack as well but nothing seems to come out.
>>> I even tried booting with the HDMI missing (powered off) in case
>>> that was causing some confusion.
>>>
>>> Did you make any changes to config.txt to get this going?
>>
>> No
>>>
>>>
>> Have my standard xfce-image with xfce4-mixer and as mentioned out of
>> the box: I can hear sound / change volume...
>
>
> Would it be possible to share your [bootable] image?
>
>>
>> What does happen if you start alsamixer - if it is installed on your
>> image?
>
>
> alsamixer looks correct.
>
> BTW, I've tried this on my RaspberryPi Model B and I don't get any sound
> from it either :-(  Again, booting with test_mode=1 shows that the hardware
> is working, just not in Linux. I'm sure I've tried this in the past with
> success so I'm becoming more and more confused...
>
For sharing I need to create a smaller image - the current one
contains all stuff from meta-games, all browsers and more. Hope to get
that done tomorrow evening. What is the preferred way of sharing huge
files?

Andreas


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [meta-raspberrypi][PATCH] make sound work out of the box for raspberrypi2
  2015-03-24  7:21           ` Andreas Müller
@ 2015-03-24  8:21             ` Alex J Lennon
  2015-03-24  8:40               ` Alex J Lennon
  0 siblings, 1 reply; 17+ messages in thread
From: Alex J Lennon @ 2015-03-24  8:21 UTC (permalink / raw)
  To: Andreas Müller, Gary Thomas; +Cc: Yocto Project



On 24/03/2015 08:21, Andreas Müller wrote:
> On Tue, Mar 24, 2015 at 12:14 AM, Gary Thomas <gary@mlbassoc.com> wrote:
>> On 2015-03-23 16:22, Andreas Müller wrote:
>>> On Mon, Mar 23, 2015 at 10:43 PM, Gary Thomas <gary@mlbassoc.com> wrote:
>>>> On 2015-03-23 14:57, Andreas Müller wrote:
>>>>>
>>>>> On Mon, Mar 23, 2015 at 4:59 PM, Gary Thomas <gary@mlbassoc.com> wrote:
>>>>>>
>>>>>> On 2015-03-22 14:21, Andreas Müller wrote:
>>>>>>>
>>>>>>>
>>>>>>> Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
>>>>>>> ---
>>>>>>>     ...-during-boot-by-compiling-SND_BCM2835-int.patch | 38
>>>>>>> ++++++++++++++++++++++
>>>>>>>     recipes-kernel/linux/linux-raspberrypi_3.18.bb     |  8 +++--
>>>>>>>     2 files changed, 43 insertions(+), 3 deletions(-)
>>>>>>>     create mode 100644
>>>>>>>
>>>>>>>
>>>>>>> recipes-kernel/linux/linux-raspberrypi/0001-start-sound-during-boot-by-compiling-SND_BCM2835-int.patch
>>>>>>
>>>>>>
>>>>>>
>>>>>> I tried this patch (which downloaded very strangely using Thunderbird)
>>>>>> and
>>>>>> the
>>>>>> kernel rebuilt fine.  I now have the audio detected, but still no sound
>>>>>> :-(
>>>>>> Again I've tried the internal (phono) speakers as well as HDMI audio.
>>>>>>
>>>>>> Just to prove a point on the [brand new] hardware, I installed OpenELEC
>>>>>> (XBMC)
>>>>>> and it works fine using the HDMI audio.  Sadly when I tried Raspbian
>>>>>> and
>>>>>> Ubuntu
>>>>>> there was no sound either...
>>>>>>
>>>>>> Were you (Andreas) able to get any sound with this patch?
>>>>>>
>>>>> Yes but I have used 3.5mm sound output - Should have mentioned that in
>>>>> commit. I guess there is to enable something else in kernel config for
>>>>> HDMI. Will look into that
>>>>
>>>>
>>>> I've tried the 3.5mm jack as well but nothing seems to come out.
>>>> I even tried booting with the HDMI missing (powered off) in case
>>>> that was causing some confusion.
>>>>
>>>> Did you make any changes to config.txt to get this going?
>>> No
>>>>
>>> Have my standard xfce-image with xfce4-mixer and as mentioned out of
>>> the box: I can hear sound / change volume...
>>
>> Would it be possible to share your [bootable] image?
>>
>>> What does happen if you start alsamixer - if it is installed on your
>>> image?
>>
>> alsamixer looks correct.
>>
>> BTW, I've tried this on my RaspberryPi Model B and I don't get any sound
>> from it either :-(  Again, booting with test_mode=1 shows that the hardware
>> is working, just not in Linux. I'm sure I've tried this in the past with
>> success so I'm becoming more and more confused...
>>
> For sharing I need to create a smaller image - the current one
> contains all stuff from meta-games, all browsers and more. Hope to get
> that done tomorrow evening. What is the preferred way of sharing huge
> files?
>

Circling around this a little, hello_audio built out of vc_graphics
works too over the audio jack

Alex



^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [meta-raspberrypi][PATCH] make sound work out of the box for raspberrypi2
  2015-03-24  8:21             ` Alex J Lennon
@ 2015-03-24  8:40               ` Alex J Lennon
  2015-03-24 11:21                 ` Gary Thomas
  0 siblings, 1 reply; 17+ messages in thread
From: Alex J Lennon @ 2015-03-24  8:40 UTC (permalink / raw)
  To: Andreas Müller, Gary Thomas, Andrei Gherzan; +Cc: Yocto Project

[-- Attachment #1: Type: text/plain, Size: 3380 bytes --]



On 24/03/2015 09:21, Alex J Lennon wrote:
>
> On 24/03/2015 08:21, Andreas Müller wrote:
>> On Tue, Mar 24, 2015 at 12:14 AM, Gary Thomas <gary@mlbassoc.com> wrote:
>>> On 2015-03-23 16:22, Andreas Müller wrote:
>>>> On Mon, Mar 23, 2015 at 10:43 PM, Gary Thomas <gary@mlbassoc.com> wrote:
>>>>> On 2015-03-23 14:57, Andreas Müller wrote:
>>>>>> On Mon, Mar 23, 2015 at 4:59 PM, Gary Thomas <gary@mlbassoc.com> wrote:
>>>>>>> On 2015-03-22 14:21, Andreas Müller wrote:
>>>>>>>>
>>>>>>>> Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
>>>>>>>> ---
>>>>>>>>     ...-during-boot-by-compiling-SND_BCM2835-int.patch | 38
>>>>>>>> ++++++++++++++++++++++
>>>>>>>>     recipes-kernel/linux/linux-raspberrypi_3.18.bb     |  8 +++--
>>>>>>>>     2 files changed, 43 insertions(+), 3 deletions(-)
>>>>>>>>     create mode 100644
>>>>>>>>
>>>>>>>>
>>>>>>>> recipes-kernel/linux/linux-raspberrypi/0001-start-sound-during-boot-by-compiling-SND_BCM2835-int.patch
>>>>>>>
>>>>>>>
>>>>>>> I tried this patch (which downloaded very strangely using Thunderbird)
>>>>>>> and
>>>>>>> the
>>>>>>> kernel rebuilt fine.  I now have the audio detected, but still no sound
>>>>>>> :-(
>>>>>>> Again I've tried the internal (phono) speakers as well as HDMI audio.
>>>>>>>
>>>>>>> Just to prove a point on the [brand new] hardware, I installed OpenELEC
>>>>>>> (XBMC)
>>>>>>> and it works fine using the HDMI audio.  Sadly when I tried Raspbian
>>>>>>> and
>>>>>>> Ubuntu
>>>>>>> there was no sound either...
>>>>>>>
>>>>>>> Were you (Andreas) able to get any sound with this patch?
>>>>>>>
>>>>>> Yes but I have used 3.5mm sound output - Should have mentioned that in
>>>>>> commit. I guess there is to enable something else in kernel config for
>>>>>> HDMI. Will look into that
>>>>>
>>>>> I've tried the 3.5mm jack as well but nothing seems to come out.
>>>>> I even tried booting with the HDMI missing (powered off) in case
>>>>> that was causing some confusion.
>>>>>
>>>>> Did you make any changes to config.txt to get this going?
>>>> No
>>>> Have my standard xfce-image with xfce4-mixer and as mentioned out of
>>>> the box: I can hear sound / change volume...
>>> Would it be possible to share your [bootable] image?
>>>
>>>> What does happen if you start alsamixer - if it is installed on your
>>>> image?
>>> alsamixer looks correct.
>>>
>>> BTW, I've tried this on my RaspberryPi Model B and I don't get any sound
>>> from it either :-(  Again, booting with test_mode=1 shows that the hardware
>>> is working, just not in Linux. I'm sure I've tried this in the past with
>>> success so I'm becoming more and more confused...
>>>
>> For sharing I need to create a smaller image - the current one
>> contains all stuff from meta-games, all browsers and more. Hope to get
>> that done tomorrow evening. What is the preferred way of sharing huge
>> files?
>>
> Circling around this a little, hello_audio built out of vc_graphics
> works too over the audio jack
>
> Alex
>

OK I got some life from GStreamer and my RPIv2

Install amixer

modprobe snd_bcm2835 (or presumably use an image with audio built-in)

amixer cset numid=3 1 (to set output to audio jack)

gst-launch-1.0 audiotestsrc ! alsasink

I get a tone out of the audio jack. So some kind of audio routing
defaults issue.

Alex


[-- Attachment #2: Type: text/html, Size: 5439 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [meta-raspberrypi][PATCH] make sound work out of the box for raspberrypi2
  2015-03-24  8:40               ` Alex J Lennon
@ 2015-03-24 11:21                 ` Gary Thomas
  2015-03-24 11:31                   ` Alex J Lennon
  0 siblings, 1 reply; 17+ messages in thread
From: Gary Thomas @ 2015-03-24 11:21 UTC (permalink / raw)
  To: yocto

On 2015-03-24 02:40, Alex J Lennon wrote:
>
>
> On 24/03/2015 09:21, Alex J Lennon wrote:
>>
>> On 24/03/2015 08:21, Andreas Müller wrote:
>>> On Tue, Mar 24, 2015 at 12:14 AM, Gary Thomas<gary@mlbassoc.com>  wrote:
>>>> On 2015-03-23 16:22, Andreas Müller wrote:
>>>>> On Mon, Mar 23, 2015 at 10:43 PM, Gary Thomas<gary@mlbassoc.com>  wrote:
>>>>>> On 2015-03-23 14:57, Andreas Müller wrote:
>>>>>>> On Mon, Mar 23, 2015 at 4:59 PM, Gary Thomas<gary@mlbassoc.com>  wrote:
>>>>>>>> On 2015-03-22 14:21, Andreas Müller wrote:
>>>>>>>>>
>>>>>>>>> Signed-off-by: Andreas Müller<schnitzeltony@googlemail.com>
>>>>>>>>> ---
>>>>>>>>>      ...-during-boot-by-compiling-SND_BCM2835-int.patch | 38
>>>>>>>>> ++++++++++++++++++++++
>>>>>>>>>      recipes-kernel/linux/linux-raspberrypi_3.18.bb     |  8 +++--
>>>>>>>>>      2 files changed, 43 insertions(+), 3 deletions(-)
>>>>>>>>>      create mode 100644
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> recipes-kernel/linux/linux-raspberrypi/0001-start-sound-during-boot-by-compiling-SND_BCM2835-int.patch
>>>>>>>>
>>>>>>>>
>>>>>>>> I tried this patch (which downloaded very strangely using Thunderbird)
>>>>>>>> and
>>>>>>>> the
>>>>>>>> kernel rebuilt fine.  I now have the audio detected, but still no sound
>>>>>>>> :-(
>>>>>>>> Again I've tried the internal (phono) speakers as well as HDMI audio.
>>>>>>>>
>>>>>>>> Just to prove a point on the [brand new] hardware, I installed OpenELEC
>>>>>>>> (XBMC)
>>>>>>>> and it works fine using the HDMI audio.  Sadly when I tried Raspbian
>>>>>>>> and
>>>>>>>> Ubuntu
>>>>>>>> there was no sound either...
>>>>>>>>
>>>>>>>> Were you (Andreas) able to get any sound with this patch?
>>>>>>>>
>>>>>>> Yes but I have used 3.5mm sound output - Should have mentioned that in
>>>>>>> commit. I guess there is to enable something else in kernel config for
>>>>>>> HDMI. Will look into that
>>>>>>
>>>>>> I've tried the 3.5mm jack as well but nothing seems to come out.
>>>>>> I even tried booting with the HDMI missing (powered off) in case
>>>>>> that was causing some confusion.
>>>>>>
>>>>>> Did you make any changes to config.txt to get this going?
>>>>> No
>>>>> Have my standard xfce-image with xfce4-mixer and as mentioned out of
>>>>> the box: I can hear sound / change volume...
>>>> Would it be possible to share your [bootable] image?
>>>>
>>>>> What does happen if you start alsamixer - if it is installed on your
>>>>> image?
>>>> alsamixer looks correct.
>>>>
>>>> BTW, I've tried this on my RaspberryPi Model B and I don't get any sound
>>>> from it either :-(  Again, booting with test_mode=1 shows that the hardware
>>>> is working, just not in Linux. I'm sure I've tried this in the past with
>>>> success so I'm becoming more and more confused...
>>>>
>>> For sharing I need to create a smaller image - the current one
>>> contains all stuff from meta-games, all browsers and more. Hope to get
>>> that done tomorrow evening. What is the preferred way of sharing huge
>>> files?
>>>
>> Circling around this a little, hello_audio built out of vc_graphics
>> works too over the audio jack
>>
>> Alex
>>
>
> OK I got some life from GStreamer and my RPIv2
>
> Install amixer
>
> modprobe snd_bcm2835 (or presumably use an image with audio built-in)
>
> amixer cset numid=3 1 (to set output to audio jack)
>
> gst-launch-1.0 audiotestsrc ! alsasink
>
> I get a tone out of the audio jack. So some kind of audio routing defaults issue.

Indeed, this does work - tested on RaspberryPi and RaspberryPi2.

Now, to figure out how to make audio over HDMI work.

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [meta-raspberrypi][PATCH] make sound work out of the box for raspberrypi2
  2015-03-24 11:21                 ` Gary Thomas
@ 2015-03-24 11:31                   ` Alex J Lennon
  0 siblings, 0 replies; 17+ messages in thread
From: Alex J Lennon @ 2015-03-24 11:31 UTC (permalink / raw)
  To: Gary Thomas; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 4326 bytes --]



On 24/03/2015 12:21, Gary Thomas wrote:
> On 2015-03-24 02:40, Alex J Lennon wrote:
>>
>>
>> On 24/03/2015 09:21, Alex J Lennon wrote:
>>>
>>> On 24/03/2015 08:21, Andreas Müller wrote:
>>>> On Tue, Mar 24, 2015 at 12:14 AM, Gary Thomas<gary@mlbassoc.com> 
>>>> wrote:
>>>>> On 2015-03-23 16:22, Andreas Müller wrote:
>>>>>> On Mon, Mar 23, 2015 at 10:43 PM, Gary Thomas<gary@mlbassoc.com> 
>>>>>> wrote:
>>>>>>> On 2015-03-23 14:57, Andreas Müller wrote:
>>>>>>>> On Mon, Mar 23, 2015 at 4:59 PM, Gary
>>>>>>>> Thomas<gary@mlbassoc.com>  wrote:
>>>>>>>>> On 2015-03-22 14:21, Andreas Müller wrote:
>>>>>>>>>>
>>>>>>>>>> Signed-off-by: Andreas Müller<schnitzeltony@googlemail.com>
>>>>>>>>>> ---
>>>>>>>>>>      ...-during-boot-by-compiling-SND_BCM2835-int.patch | 38
>>>>>>>>>> ++++++++++++++++++++++
>>>>>>>>>>      recipes-kernel/linux/linux-raspberrypi_3.18.bb     |  8
>>>>>>>>>> +++--
>>>>>>>>>>      2 files changed, 43 insertions(+), 3 deletions(-)
>>>>>>>>>>      create mode 100644
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> recipes-kernel/linux/linux-raspberrypi/0001-start-sound-during-boot-by-compiling-SND_BCM2835-int.patch
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> I tried this patch (which downloaded very strangely using
>>>>>>>>> Thunderbird)
>>>>>>>>> and
>>>>>>>>> the
>>>>>>>>> kernel rebuilt fine.  I now have the audio detected, but still
>>>>>>>>> no sound
>>>>>>>>> :-(
>>>>>>>>> Again I've tried the internal (phono) speakers as well as HDMI
>>>>>>>>> audio.
>>>>>>>>>
>>>>>>>>> Just to prove a point on the [brand new] hardware, I installed
>>>>>>>>> OpenELEC
>>>>>>>>> (XBMC)
>>>>>>>>> and it works fine using the HDMI audio.  Sadly when I tried
>>>>>>>>> Raspbian
>>>>>>>>> and
>>>>>>>>> Ubuntu
>>>>>>>>> there was no sound either...
>>>>>>>>>
>>>>>>>>> Were you (Andreas) able to get any sound with this patch?
>>>>>>>>>
>>>>>>>> Yes but I have used 3.5mm sound output - Should have mentioned
>>>>>>>> that in
>>>>>>>> commit. I guess there is to enable something else in kernel
>>>>>>>> config for
>>>>>>>> HDMI. Will look into that
>>>>>>>
>>>>>>> I've tried the 3.5mm jack as well but nothing seems to come out.
>>>>>>> I even tried booting with the HDMI missing (powered off) in case
>>>>>>> that was causing some confusion.
>>>>>>>
>>>>>>> Did you make any changes to config.txt to get this going?
>>>>>> No
>>>>>> Have my standard xfce-image with xfce4-mixer and as mentioned out of
>>>>>> the box: I can hear sound / change volume...
>>>>> Would it be possible to share your [bootable] image?
>>>>>
>>>>>> What does happen if you start alsamixer - if it is installed on your
>>>>>> image?
>>>>> alsamixer looks correct.
>>>>>
>>>>> BTW, I've tried this on my RaspberryPi Model B and I don't get any
>>>>> sound
>>>>> from it either :-(  Again, booting with test_mode=1 shows that the
>>>>> hardware
>>>>> is working, just not in Linux. I'm sure I've tried this in the
>>>>> past with
>>>>> success so I'm becoming more and more confused...
>>>>>
>>>> For sharing I need to create a smaller image - the current one
>>>> contains all stuff from meta-games, all browsers and more. Hope to get
>>>> that done tomorrow evening. What is the preferred way of sharing huge
>>>> files?
>>>>
>>> Circling around this a little, hello_audio built out of vc_graphics
>>> works too over the audio jack
>>>
>>> Alex
>>>
>>
>> OK I got some life from GStreamer and my RPIv2
>>
>> Install amixer
>>
>> modprobe snd_bcm2835 (or presumably use an image with audio built-in)
>>
>> amixer cset numid=3 1 (to set output to audio jack)
>>
>> gst-launch-1.0 audiotestsrc ! alsasink
>>
>> I get a tone out of the audio jack. So some kind of audio routing
>> defaults issue.
>
> Indeed, this does work - tested on RaspberryPi and RaspberryPi2.
>
> Now, to figure out how to make audio over HDMI work.
>

I don't have HDMI audio kit with me here but there are some bits and
bobs here which might help

http://raspberrypi.stackexchange.com/questions/22708/is-there-some-trick-to-getting-aplay-audio-output-working

I'd be wont to try

|amixer cset numid=3 2|


For starters to try to force HDMI output

Some other bits and pieces on ALSA in there I see, which might be relevant

Cheers, Alex





[-- Attachment #2: Type: text/html, Size: 9548 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2015-03-24 11:34 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-22 20:21 [meta-raspberrypi][PATCH] make sound work out of the box for raspberrypi2 Andreas Müller
2015-03-23 15:59 ` Gary Thomas
2015-03-23 16:42   ` Alex J Lennon
2015-03-23 17:08     ` Gary Thomas
2015-03-23 17:13       ` Alex J Lennon
2015-03-23 17:33         ` Gary Thomas
2015-03-23 17:41           ` Andrei Gherzan
2015-03-23 19:01             ` Gary Thomas
2015-03-23 20:57   ` Andreas Müller
2015-03-23 21:43     ` Gary Thomas
2015-03-23 22:22       ` Andreas Müller
2015-03-23 23:14         ` Gary Thomas
2015-03-24  7:21           ` Andreas Müller
2015-03-24  8:21             ` Alex J Lennon
2015-03-24  8:40               ` Alex J Lennon
2015-03-24 11:21                 ` Gary Thomas
2015-03-24 11:31                   ` Alex J Lennon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.