CRAS audio server is not running properly in google onhub

73 views
Skip to first unread message

MALLIKARJUN PHULARI

unread,
Nov 28, 2016, 1:29:41 PM11/28/16
to Chromium OS dev
localhost ~ # /usr/bin/cras --syslog_mask=7
iniparser: cannot open /etc/cras/dsp.ini
iniparser: cannot open /etc/cras/ipq806x-max98357a
ALSA lib ../../../alsa-lib-1.1.0/src/ucm/utils.c:67:(uc_mgr_config_load) could not open configuration file /usr/share/alsa/ucm/ipq806x-max98357a/ipq806x-max98357a.conf
ALSA lib ../../../alsa-lib-1.1.0/src/ucm/parser.c:1221:(load_master_config) error: could not parse configuration for card ipq806x-max98357a
ALSA lib ../../../alsa-lib-1.1.0/src/ucm/main.c:871:(snd_use_case_mgr_open) error: failed to import ipq806x-max98357a use case configuration -2


Actually the files for which it is lokking are not present in the in the path

Dylan Reid

unread,
Nov 28, 2016, 2:57:13 PM11/28/16
to MALLIKARJUN PHULARI, Chromium OS dev
the only one that is required for OnHub is /etc/cras/dsp.ini. This is
there on my build.

You should start cras using upstart: "start cras", assuming you've
stopped it as it runs by default.

That will run it as the cras user instead of the chronos or root user
you are logged in as, which should get it running correctly.

>
> --
> --
> Chromium OS Developers mailing list: chromiu...@chromium.org
> View archives, change email options, or unsubscribe:
> http://groups.google.com/a/chromium.org/group/chromium-os-dev?hl=en
>

MALLIKARJUN PHULARI

unread,
Nov 29, 2016, 7:15:32 AM11/29/16
to Chromium OS dev, mallu.p...@gmail.com
Hi daylen
I dont have option to build for whirlwind board:
So i have built for arm-generic and i got dsp.ini file in the parh:
chromium/src/third_party/adhd/cras-config/whirlwind/dsp.ini
And i kept it in /etc/cras/. Now the error for dsp.ini is not appearind still i am getting this error:

iniparser: cannot open /etc/cras/ipq806x-max98357a
ALSA lib ../../../alsa-lib-1.1.0/src/ucm/utils.c:67:(uc_mgr_config_load) could not open configuration file /usr/share/alsa/ucm/ipq806x-max98357a/ipq806x-max98357a.conf
ALSA lib ../../../alsa-lib-1.1.0/src/ucm/parser.c:1221:(load_master_config) error: could not parse configuration for card ipq806x-max98357a
ALSA lib ../../../alsa-lib-1.1.0/src/ucm/main.c:871:(snd_use_case_mgr_open) error: failed to import ipq806x-max98357a use case configuration -2

If you have those files then please share here

Dylan Reid

unread,
Nov 29, 2016, 12:56:12 PM11/29/16
to MALLIKARJUN PHULARI, Chromium OS dev
On Tue, Nov 29, 2016 at 4:15 AM, MALLIKARJUN PHULARI
<mallu.p...@gmail.com> wrote:
> Hi daylen
> I dont have option to build for whirlwind board:
> So i have built for arm-generic and i got dsp.ini file in the parh:
> chromium/src/third_party/adhd/cras-config/whirlwind/dsp.ini
> And i kept it in /etc/cras/. Now the error for dsp.ini is not appearind still i am getting this error:
>
> iniparser: cannot open /etc/cras/ipq806x-max98357a
> ALSA lib ../../../alsa-lib-1.1.0/src/ucm/utils.c:67:(uc_mgr_config_load) could not open configuration file /usr/share/alsa/ucm/ipq806x-max98357a/ipq806x-max98357a.conf
> ALSA lib ../../../alsa-lib-1.1.0/src/ucm/parser.c:1221:(load_master_config) error: could not parse configuration for card ipq806x-max98357a
> ALSA lib ../../../alsa-lib-1.1.0/src/ucm/main.c:871:(snd_use_case_mgr_open) error: failed to import ipq806x-max98357a use case configuration -2
>
> If you have those files then please share here

You should be able to run without the UCM config. If you start cras
does it keep running or exit? Does cras_test_client --dump_s show
anything?

Mallikarjun Phulari

unread,
Nov 29, 2016, 1:12:18 PM11/29/16
to Dylan Reid, MALLIKARJUN PHULARI, Chromium OS dev
It keeps running. And i will share the dump-show result

Sent from my iPhone
> You received this message because you are subscribed to the Google Groups "Chromium OS dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to chromium-os-d...@chromium.org.
>

chacho bass

unread,
Nov 29, 2016, 3:30:33 PM11/29/16
to Chromium OS dev

chacho bass

unread,
Nov 29, 2016, 3:30:59 PM11/29/16
to Chromium OS dev


On Monday, November 28, 2016 at 8:29:41 PM UTC+2, MALLIKARJUN PHULARI wrote:

chacho bass

unread,
Nov 29, 2016, 3:31:23 PM11/29/16
to Chromium OS dev


On Monday, November 28, 2016 at 8:29:41 PM UTC+2, MALLIKARJUN PHULARI wrote:

chacho bass

unread,
Nov 29, 2016, 3:31:42 PM11/29/16
to Chromium OS dev


On Monday, November 28, 2016 at 8:29:41 PM UTC+2, MALLIKARJUN PHULARI wrote:

Mallikarjun Phulari

unread,
Dec 1, 2016, 7:24:41 AM12/1/16
to Dylan Reid, MALLIKARJUN PHULARI, Chromium OS dev
Hi dylan,
Now it is working fine. I ran dump_server_info and selected my Bluetooth headset and the audio is routed to it.

Can i record audio using arecord and Bluetooth microphone in google onhub?

Sent from my iPhone

> On 29-Nov-2016, at 11:25 PM, Dylan Reid <dgr...@chromium.org> wrote:
>

Dylan Reid

unread,
Dec 1, 2016, 4:57:34 PM12/1/16
to Mallikarjun Phulari, MALLIKARJUN PHULARI, Chromium OS dev
On Thu, Dec 1, 2016 at 4:24 AM, Mallikarjun Phulari
<mallu....@gmail.com> wrote:
> Hi dylan,
> Now it is working fine. I ran dump_server_info and selected my Bluetooth headset and the audio is routed to it.
>
> Can i record audio using arecord and Bluetooth microphone in google onhub?

Theoretically, yes. However you are blazing a new path here and I'd expect
there to be a few issues.

Ashutosh Pandey

unread,
Sep 19, 2017, 6:49:52 AM9/19/17
to Chromium OS dev
I am getting an error as 
iniparser: cannot open /usr/etc/board.ini
iniparser: cannot open /usr/etc/device_blacklist
iniparser: cannot open /usr/etc/dsp.ini


Can you please tell me where I am heading wrong. I have installed cras in /usr/src/gtest/ directory

Dylan Reid

unread,
Sep 19, 2017, 12:40:58 PM9/19/17
to Ashutosh Pandey, Chromium OS dev
On Tue, Sep 19, 2017 at 3:49 AM, Ashutosh Pandey
<ashutoshp...@gmail.com> wrote:
> I am getting an error as
> iniparser: cannot open /usr/etc/board.ini
> iniparser: cannot open /usr/etc/device_blacklist
> iniparser: cannot open /usr/etc/dsp.ini
>
> I am following this link for building CRAS over Ubuntu -
> https://sites.google.com/a/chromium.org/dev/chromium-os/how-tos-and-troubleshooting/chrome-with-libcras-on-gprecise

Is your question related to onhub? If not, please don't bring back
long dead threads.

>
> Can you please tell me where I am heading wrong. I have installed cras in
> /usr/src/gtest/ directory

It shouldn't matter where you install it. You will need to provide
more details for me to be able to help. What is failing? Is there an
error message?
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages