All of lore.kernel.org
 help / color / mirror / Atom feed
* USB Audio/ALSA
@ 2013-09-12  3:30 Rajaram R
  2013-09-12 16:33 ` Daniel Mack
  2013-09-12 17:57 ` Clemens Ladisch
  0 siblings, 2 replies; 6+ messages in thread
From: Rajaram R @ 2013-09-12  3:30 UTC (permalink / raw)
  To: alsa-devel

Hi

I am trying to bring up Android Accessory Audio in my Samsung Grand
mobile.. I am using a Linux PC for the same. The mobile re-enumerates in
AOA mode with an Audio interface. But when I play song, I see nothing on
the bus.  I can see an AOA audio device entry in /proc/asound/cards. The
mobile runs Android JB

The error i see when I play is "Sorry this player does not support this
type of audio file android" . I also tried a Note 2  & tab 2 with JB, i
dont see the error , but still i dont see anything on the bus.. Nexus is
working fine in the same setup.

Also logcat shows information as below. When i search net i understand some
problem with ALSA/Android handshake

AudioTrack: obtainBuffer timed out (is the CPU pegged?).......some
address............
AudioTrack: obtainBuffer timed out (is the CPU pegged?).......some
address............
AudioTrack: obtainBuffer timed out (is the CPU pegged?).......some
address............
AudioTrack: obtainBuffer timed out (is the CPU pegged?).......some
address............

Looking forward for some support

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

* Re: USB Audio/ALSA
  2013-09-12  3:30 USB Audio/ALSA Rajaram R
@ 2013-09-12 16:33 ` Daniel Mack
  2013-09-12 17:05   ` Radoslaw Szkodzinski
  2013-09-12 17:57 ` Clemens Ladisch
  1 sibling, 1 reply; 6+ messages in thread
From: Daniel Mack @ 2013-09-12 16:33 UTC (permalink / raw)
  To: Rajaram R; +Cc: alsa-devel

On 12.09.2013 05:30, Rajaram R wrote:
> I am trying to bring up Android Accessory Audio in my Samsung Grand
> mobile.. I am using a Linux PC for the same. The mobile re-enumerates in
> AOA mode with an Audio interface. But when I play song, I see nothing on
> the bus.  I can see an AOA audio device entry in /proc/asound/cards. The
> mobile runs Android JB

If the card is present in /proc/asound/cards, alsa detected it just
fine, and you have to look at the Adroid sound system in order to find
out why it's not used. Unfortunately, Android decided not to use any of
the ALSA userspace code but reinvented the wheel, for which simple tools
like aplay are unavailable.

I guess you have to ask about that on a Android specific mailing list.


Daniel

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

* Re: USB Audio/ALSA
  2013-09-12 16:33 ` Daniel Mack
@ 2013-09-12 17:05   ` Radoslaw Szkodzinski
  2013-09-12 17:11     ` Rajaram R
  0 siblings, 1 reply; 6+ messages in thread
From: Radoslaw Szkodzinski @ 2013-09-12 17:05 UTC (permalink / raw)
  To: Daniel Mack; +Cc: alsa-devel, Rajaram R

On Thu, Sep 12, 2013 at 6:33 PM, Daniel Mack <zonque@gmail.com> wrote:
> On 12.09.2013 05:30, Rajaram R wrote:
>> I am trying to bring up Android Accessory Audio in my Samsung Grand
>> mobile.. I am using a Linux PC for the same. The mobile re-enumerates in
>> AOA mode with an Audio interface. But when I play song, I see nothing on
>> the bus.  I can see an AOA audio device entry in /proc/asound/cards. The
>> mobile runs Android JB
>
> If the card is present in /proc/asound/cards, alsa detected it just
> fine, and you have to look at the Adroid sound system in order to find
> out why it's not used. Unfortunately, Android decided not to use any of
> the ALSA userspace code but reinvented the wheel, for which simple tools
> like aplay are unavailable.

Actually quite a few devices come with either tinyalsa or full alsa-lib.

Qualcomm-based ones are the exception.

-- 
Radosław Szkodziński
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

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

* Re: USB Audio/ALSA
  2013-09-12 17:05   ` Radoslaw Szkodzinski
@ 2013-09-12 17:11     ` Rajaram R
  0 siblings, 0 replies; 6+ messages in thread
From: Rajaram R @ 2013-09-12 17:11 UTC (permalink / raw)
  To: Radoslaw Szkodzinski; +Cc: alsa-devel, Daniel Mack

The one i use is broadcom chipset i guess (Samsung Grand). Any pointers
based on the above logcat message will be helpful ? I wonder if there is
any Android/Samsung mailing list that can answer this topic.

I am expecting some developers who worked on the above said platform will
be on this list.


On Thu, Sep 12, 2013 at 10:35 PM, Radoslaw Szkodzinski <
astralstorm@gmail.com> wrote:

> On Thu, Sep 12, 2013 at 6:33 PM, Daniel Mack <zonque@gmail.com> wrote:
> > On 12.09.2013 05:30, Rajaram R wrote:
> >> I am trying to bring up Android Accessory Audio in my Samsung Grand
> >> mobile.. I am using a Linux PC for the same. The mobile re-enumerates in
> >> AOA mode with an Audio interface. But when I play song, I see nothing on
> >> the bus.  I can see an AOA audio device entry in /proc/asound/cards. The
> >> mobile runs Android JB
> >
> > If the card is present in /proc/asound/cards, alsa detected it just
> > fine, and you have to look at the Adroid sound system in order to find
> > out why it's not used. Unfortunately, Android decided not to use any of
> > the ALSA userspace code but reinvented the wheel, for which simple tools
> > like aplay are unavailable.
>
> Actually quite a few devices come with either tinyalsa or full alsa-lib.
>
> Qualcomm-based ones are the exception.
>
> --
> Radosław Szkodziński
>

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

* Re: USB Audio/ALSA
  2013-09-12  3:30 USB Audio/ALSA Rajaram R
  2013-09-12 16:33 ` Daniel Mack
@ 2013-09-12 17:57 ` Clemens Ladisch
  2013-09-13  6:27   ` Rajaram R
  1 sibling, 1 reply; 6+ messages in thread
From: Clemens Ladisch @ 2013-09-12 17:57 UTC (permalink / raw)
  To: alsa-devel

Rajaram R wrote:
> I am trying to bring up Android Accessory Audio

There are lots of bugs in various accessory firmware version; you need
kernel 3.10 or the latest stable kernel on the host for a workaround.

> But when I play song, I see nothing on the bus.  I can see an AOA
> audio device entry in /proc/asound/cards.

The important thing is whether you see an entry with "arecord -l".

> The error i see when I play is "Sorry this player does not support this
> type of audio file android".

Is that on the Android device?  In that case, this has nothing to do
with ALSA.


Regards,
Clemens

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

* Re: USB Audio/ALSA
  2013-09-12 17:57 ` Clemens Ladisch
@ 2013-09-13  6:27   ` Rajaram R
  0 siblings, 0 replies; 6+ messages in thread
From: Rajaram R @ 2013-09-13  6:27 UTC (permalink / raw)
  To: Clemens Ladisch; +Cc: alsa-devel

On Thu, Sep 12, 2013 at 11:27 PM, Clemens Ladisch <clemens@ladisch.de> wrote:
>
> Rajaram R wrote:
> > I am trying to bring up Android Accessory Audio
>
> There are lots of bugs in various accessory firmware version; you need
> kernel 3.10 or the latest stable kernel on the host for a workaround.
>
> > But when I play song, I see nothing on the bus.  I can see an AOA
> > audio device entry in /proc/asound/cards.
>
> The important thing is whether you see an entry with "arecord -l".
>
> > The error i see when I play is "Sorry this player does not support this
> > type of audio file android".
>
> Is that on the Android device?  In that case, this has nothing to do
> with ALSA.

Yes I understand it is nothing to do with ALSA. I hope to get
attention of ALSA guys who worked on Samsung grand/Android platform
who would have definitely faced this issue.

>
>
> Regards,
> Clemens
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel@alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

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

end of thread, other threads:[~2013-09-13  6:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-12  3:30 USB Audio/ALSA Rajaram R
2013-09-12 16:33 ` Daniel Mack
2013-09-12 17:05   ` Radoslaw Szkodzinski
2013-09-12 17:11     ` Rajaram R
2013-09-12 17:57 ` Clemens Ladisch
2013-09-13  6:27   ` Rajaram R

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.