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
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
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.
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
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
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
participants (4)
-
Clemens Ladisch
-
Daniel Mack
-
Radoslaw Szkodzinski
-
Rajaram R