Re: [HELP] Audio on BeagleBoard xM can't work

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Mar 16, 2011 at 6:42 PM, Peter Ujfalusi
<peter.ujfalusi@xxxxxxxxx> wrote:
> Hi,
>
> On 03/16/11 11:27, ext Bob Liu wrote:
>> On Wed, Mar 16, 2011 at 3:40 PM, Peter Ujfalusi
>> <peter.ujfalusi@xxxxxxxxx> 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?
>

Yeah, it works!!  Thank you very much.

So in order to make aplay work I need to set all of these?
--------------------
amixer sset 'HeadsetL Mixer AudioL2' on
amixer sset 'HeadsetR Mixer AudioR2' on
amixer sset 'Headset' 2
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
--------------------

And what should I set making arecord also work?
Sorry for that because I didn't have any alsa experiences.

Thanks.

>
> 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.
>

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


[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux