All of lore.kernel.org
 help / color / mirror / Atom feed
From: Peter Ujfalusi <peter.ujfalusi@nokia.com>
To: ext Bob Liu <lliubbo@gmail.com>
Cc: "ABRAHAM, KISHON VIJAY" <kishon@ti.com>,
	"Premi, Sanjeev" <premi@ti.com>,
	Jarkko Nikula <jhnikula@gmail.com>,
	"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
	"broonie@opensource.wolfsonmicro.com"
	<broonie@opensource.wolfsonmicro.com>,
	"lrg@slimlogic.co.uk" <lrg@slimlogic.co.uk>,
	"lars@metafoo.de" <lars@metafoo.de>,
	"paul@pwsan.com" <paul@pwsan.com>,
	"Koyamangalath, Abhilash" <abhilash.kv@ti.com>
Subject: Re: [HELP] Audio on BeagleBoard xM can't work
Date: Wed, 16 Mar 2011 12:42:40 +0200	[thread overview]
Message-ID: <4D809420.9080709@nokia.com> (raw)
In-Reply-To: <AANLkTim95q6eu6M7r5J49-xjqHMn094++tqALaE1U6Zh@mail.gmail.com>

Hi,

On 03/16/11 11:27, ext Bob Liu wrote:
> On Wed, Mar 16, 2011 at 3:40 PM, Peter Ujfalusi
> <peter.ujfalusi@nokia.com> wrote:
>> On 03/16/11 07:45, ext Bob Liu wrote:
>>>> amixer cset name="HandsfreeR Switch" 1
>>>> amixer cset name="HandsfreeR Mux" 2
>>>> amixer cset name="HandsfreeL Switch" 1
>>>> amixer cset name="HandsfreeL Mux" 2
>>>> amixer cset name="DAC1 Analog Playback Switch" 1
>>>> amixer cset name="DAC1 Analog Playback Volume" 12
>>>> amixer cset name="DAC1 Digital Coarse Playback Volume" 2
>>>> amixer cset name="DAC1 Digital Fine Playback Volume" 50
>>>> amixer cset name="DAC2 Analog Playback Switch" 1
>>>> amixer cset name="DAC2 Analog Playback Volume" 12
>>>> amixer cset name="DAC2 Digital Coarse Playback Volume" 2
>>>> amixer cset name="DAC2 Digital Fine Playback Volume" 50
>>>>
>>>> aplay -D plughw:0,0 -d 5 /mnt/mmc/beethoven.wav
>>
>> AFAIK the Beagle has the the Headset lines routed to the stereo jack, so
>> you might want to try:
>>
>> amixer sset 'HeadsetL Mixer AudioL2' on
>> amixer sset 'HeadsetR Mixer AudioR2' on
>>
>> Do apply the gain settings related to DAC2 path. This is the path for
>> the stereo (2ch mode).
>>
> 
> Below is my log, I have reboot the system, still no sound.
> Did I missed something?
> Thanks
> 
> -------------------------------------------
> # amixer sset 'HeadsetL Mixer AudioL2' on
> Simple mixer control 'HeadsetL Mixer AudioL2',0
>   Capabilities: pswitch pswitch-joined penum
>   Playback channels: Mono
>   Mono: Playback [on]
> # amixer sset 'HeadsetR Mixer AudioR2' on
> Simple mixer control 'HeadsetR Mixer AudioR2',0
>   Capabilities: pswitch pswitch-joined penum
>   Playback channels: Mono
>   Mono: Playback [on]
> #
> # amixer cset name="DAC2 Analog Playback Switch" 1
> name="DAC2 Digital Coarse Playback Volume" 2
> amixer cset name="DAC2 Digital Fine Playback Volume" 50
> numid=9,iface=MIXER,name='DAC2 Analog Playback Switch'
>   ; type=BOOLEAN,access=rw------,values=2
>   : values=on,on
> # amixer cset name="DAC2 Analog Playback Volume" 12
> numid=7,iface=MIXER,name='DAC2 Analog Playback Volume'
>   ; type=INTEGER,access=rw---R--,values=2,min=0,max=18,step=0
>   : values=12,12
>   | dBscale-min=-24.00dB,step=2.00dB,mute=0
> # amixer cset name="DAC2 Digital Coarse Playback Volume" 2
> numid=5,iface=MIXER,name='DAC2 Digital Coarse Playback Volume'
>   ; type=INTEGER,access=rw---R--,values=2,min=0,max=2,step=0
>   : values=2,2
>   | dBscale-min=0.00dB,step=6.00dB,mute=0
> # amixer cset name="DAC2 Digital Fine Playback Volume" 50
> numid=3,iface=MIXER,name='DAC2 Digital Fine Playback Volume'
>   ; type=INTEGER,access=rw---R--,values=2,min=0,max=63,step=0
>   : values=50,50
>   | dBscale-min=-63.00dB,step=1.00dB,mute=1
> #
> # aplay ~/alsa/ap.wav
> Playing WAVE '/home/bob/alsa/ap.wav' : Signed 16 bit Little Endian,
> Rate 22050 Hz, Stereo
> 
> ----------------------------------------------------

I have downloaded the documentation for the BeagleBoard xM.
The stereo audio out jack is connected to the HSOL/R (Headset L/R) of
the codec.
The commands you execute should be correct, but one thing might be missing:

amixer sset 'Headset' 2

Does this helps?

The Beagle doc has this to say about the audio output:

8.16.3 Audio Output Jack
A single 3.5mm jack is provided on BeagleBoard to support external
stereo audio output
devices such as headphones and powered speakers. This interface is not
amplified and
may require the use of amplified speakers in certain instances.

-- 
Péter
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2011-03-16 10:42 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-15  3:12 [HELP] Audio on BeagleBoard xM can't work Bob Liu
2011-03-15  9:53 ` Jarkko Nikula
2011-03-15  9:57   ` Bob Liu
2011-03-15 16:21     ` Premi, Sanjeev
2011-03-16  3:39       ` Bob Liu
2011-03-16  5:31         ` ABRAHAM, KISHON VIJAY
2011-03-16  5:45           ` Bob Liu
2011-03-16  7:40             ` Peter Ujfalusi
2011-03-16  9:27               ` Bob Liu
2011-03-16 10:42                 ` Peter Ujfalusi [this message]
2011-03-16 10:52                   ` Bob Liu
2011-03-16 11:29                     ` Peter Ujfalusi
2011-03-16  6:59         ` Premi, Sanjeev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D809420.9080709@nokia.com \
    --to=peter.ujfalusi@nokia.com \
    --cc=abhilash.kv@ti.com \
    --cc=broonie@opensource.wolfsonmicro.com \
    --cc=jhnikula@gmail.com \
    --cc=kishon@ti.com \
    --cc=lars@metafoo.de \
    --cc=linux-omap@vger.kernel.org \
    --cc=lliubbo@gmail.com \
    --cc=lrg@slimlogic.co.uk \
    --cc=paul@pwsan.com \
    --cc=premi@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.