trying alsa_aplay I get a "unable to set parameters..."
On 18 Apr, 20:22, Androidphan <[email protected]> wrote:
> I think those properties are searched in your asound.conf
> You don't have any PCM inside your asound.conf
> So your alsa.mixer.playback.master should not be PCM but Master.
>
> On Apr 18, 3:17 pm, Luca Belluccini <[email protected]> wrote:
>
> > Hi...
> > I got alsa state from my eeepc and configured asound.conf
>
> > # #
>
> > # # Mixer devices
>
> > # #
>
> > ctl.AndroidPlayback {
>
> > type hw
>
> > card 0 # Can replace with drivers name from /proc/asound/cards
>
> > }
>
> > ctl.AndroidRecord {
>
> > type hw
>
> > card 0
>
> > }
>
> > # #
>
> > # # Playback devices
>
> > # #
>
> > pcm.AndroidPlayback {
>
> > type hooks
>
> > slave.pcm {
>
> > type hw
>
> > card 0
>
> > device 0
>
> > }
> > hooks.0 {
>
> > type ctl_elems
>
> > hook_args [
>
> > {
>
> > name 'Speaker Playback Switch'
>
> > value.0 true
> > value.1 true
>
> > }
>
> > {
>
> > name 'Line-Out Playback Volume'
> > value.0 52
> > value.1 52
>
> > }
>
> > {
>
> > name 'Line-Out Playback Switch'
> > value.0 true
> > value.1 true
>
> > }
>
> > {
>
> > name 'e-Mic Boost'
> > value.0 0
> > value.1 0
>
> > }
>
> > {
>
> > name 'e-Mic Playback Volume'
> > value.0 0
> > value.1 0
>
> > }
>
> > {
>
> > name 'e-Mic Playback Switch'
> > value.0 false
> > value.1 false
>
> > }
>
> > {
>
> > name 'i-Mic Boost'
> > value.0 0
> > value.1 0
>
> > }
>
> > {
>
> > name 'i-Mic Playback Volume'
> > value.0 0
> > value.1 0
>
> > }
>
> > {
>
> > name 'i-Mic Playback Switch'
> > value.0 false
> > value.1 false
>
> > }
>
> > {
>
> > name 'Capture Volume'
> > value.0 0
> > value.1 0
>
> > }
>
> > {
>
> > name 'Input Source'
> > value i-Mic
>
> > }
>
> > {
>
> > name 'Master Playback Volume'
> > value 52
>
> > }
>
> > {
>
> > name 'Master Playback Switch'
> > value true
>
> > }
>
> > ]
>
> > }
>
> > }
>
> > pcm.AndroidPlayback_Speaker {
>
> > type hooks
>
> > slave.pcm {
>
> > type hw
>
> > card 0
>
> > device 0
>
> > }
>
> > hooks.0 {
>
> > type ctl_elems
>
> > hook_args [
>
> > {
>
> > name 'Speaker Playback Switch'
>
> > value.0 true
> > value.1 true
>
> > }
>
> > {
>
> > name 'Line-Out Playback Volume'
> > value.0 52
> > value.1 52
>
> > }
>
> > {
>
> > name 'Line-Out Playback Switch'
> > value.0 true
> > value.1 true
>
> > }
>
> > {
>
> > name 'e-Mic Boost'
> > value.0 0
> > value.1 0
>
> > }
>
> > {
>
> > name 'e-Mic Playback Volume'
> > value.0 0
> > value.1 0
>
> > }
>
> > {
>
> > name 'e-Mic Playback Switch'
> > value.0 false
> > value.1 false
>
> > }
>
> > {
>
> > name 'i-Mic Boost'
> > value.0 0
> > value.1 0
>
> > }
>
> > {
>
> > name 'i-Mic Playback Volume'
> > value.0 0
> > value.1 0
>
> > }
>
> > {
>
> > name 'i-Mic Playback Switch'
> > value.0 false
> > value.1 false
>
> > }
>
> > {
>
> > name 'Capture Volume'
> > value.0 0
> > value.1 0
>
> > }
>
> > {
>
> > name 'Input Source'
> > value i-Mic
>
> > }
>
> > {
>
> > name 'Master Playback Volume'
> > value 52
>
> > }
>
> > {
>
> > name 'Master Playback Switch'
> > value true
>
> > }
>
> > ]
>
> > }
>
> > }
>
> > pcm.AndroidPlayback_Speaker_normal {
>
> > type hooks
>
> > slave.pcm {
>
> > type hw
>
> > card 0
>
> > device 0
>
> > }
>
> > hooks.0 {
>
> > type ctl_elems
>
> > hook_args [
>
> > {
>
> > name 'Speaker Playback Switch'
>
> > value.0 true
> > value.1 true
>
> > }
>
> > {
>
> > name 'Line-Out Playback Volume'
> > value.0 52
> > value.1 52
>
> > }
>
> > {
>
> > name 'Line-Out Playback Switch'
> > value.0 true
> > value.1 true
>
> > }
>
> > {
>
> > name 'e-Mic Boost'
> > value.0 0
> > value.1 0
>
> > }
>
> > {
>
> > name 'e-Mic Playback Volume'
> > value.0 0
> > value.1 0
>
> > }
>
> > {
>
> > name 'e-Mic Playback Switch'
> > value.0 false
> > value.1 false
>
> > }
>
> > {
>
> > name 'i-Mic Boost'
> > value.0 0
> > value.1 0
>
> > }
>
> > {
>
> > name 'i-Mic Playback Volume'
> > value.0 0
> > value.1 0
>
> > }
>
> > {
>
> > name 'i-Mic Playback Switch'
> > value.0 false
> > value.1 false
>
> > }
>
> > {
>
> > name 'Capture Volume'
> > value.0 0
> > value.1 0
>
> > }
>
> > {
>
> > name 'Input Source'
> > value i-Mic
>
> > }
>
> > {
>
> > name 'Master Playback Volume'
> > value 52
>
> > }
>
> > {
>
> > name 'Master Playback Switch'
> > value true
>
> > }
>
> > ]
>
> > }
>
> > }
>
> > pcm.AndroidPlayback_Speaker_ringtone {
>
> > type hooks
>
> > slave.pcm {
>
> > type hw
>
> > card 0
>
> > device 0
>
> > }
>
> > hooks.0 {
>
> > type ctl_elems
>
> > hook_args [
>
> > {
>
> > name 'Speaker Playback Switch'
>
> > value.0 true
> > value.1 true
>
> > }
>
> > {
>
> > name 'Line-Out Playback Volume'
> > value.0 52
> > value.1 52
>
> > }
>
> > {
>
> > name 'Line-Out Playback Switch'
> > value.0 true
> > value.1 true
>
> > }
>
> > {
>
> > name 'e-Mic Boost'
> > value.0 0
> > value.1 0
>
> > }
>
> > {
>
> > name 'e-Mic Playback Volume'
> > value.0 0
> > value.1 0
>
> > }
>
> > {
>
> > name 'e-Mic Playback Switch'
> > value.0 false
> > value.1 false
>
> > }
>
> > {
>
> > name 'i-Mic Boost'
> > value.0 0
> > value.1 0
>
> > }
>
> > {
>
> > name 'i-Mic Playback Volume'
> > value.0 0
> > value.1 0
>
> > }
>
> > {
>
> > name 'i-Mic Playback Switch'
> > value.0 false
> > value.1 false
>
> > }
>
> > {
>
> > name 'Capture Volume'
> > value.0 0
> > value.1 0
>
> > }
>
> > {
>
> > name 'Input Source'
> > value i-Mic
>
> > }
>
> >
>
> ...
>
> leggi tutto
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---