Michael Trimarchi wrote: > Hi all > > Michael Trimarchi wrote: > >> Hi all, >> >> I'm t rying to unde rstand when the event a re called. >> >> ... >> SND_SOC_DAPM_SPK("Front Speaker", amp_event), >> >> > I have fixed looking in the kernel code. Change this to: > > SND_SOC_DAPM_PRE("Front Speaker", amp_event), > > Is it correct? > So now: [ 400.894580] widget Right Voice ADC [ 400.894592] Right Voice Capture stream HiFi Playback event 2 [ 400.903667] widget Left Voice ADC [ 400.903673] Left Voice Capture stream HiFi Playback event 2 [ 400.912593] widget Right HiFi ADC [ 400.912599] Right HiFi Capture stream HiFi Playback event 2 [ 400.921514] widget Left HiFi ADC [ 400.921520] Left HiFi Capture stream HiFi Playback event 2 [ 400.930282] widget Aux DAC [ 400.930288] Aux Playback stream HiFi Playback event 2 [ 400.938081] widget Voice DAC [ 400.938087] Voice Playback stream HiFi Playback event 2 [ 400.946232] widget Right DAC [ 400.946237] Right HiFi Playback stream HiFi Playback event 2 [ 400.954813] widget Left DAC [ 400.954819] Left HiFi Playback stream HiFi Playback event 2 [ 400.963617] amp_event: event => [ 400.966604] OFF when the stream is closed. Michael > Michael > >> ... >> >> My idea was: >> >> - set the mixe r >> - open st ream >> >> amp_event: event => >> [ 169.820558] ON >> >> - close st ream >> >> and receive the event => OFF. In the aplay example this happen >> afte r some seconds but in my application I don't receive the OFF >> event. What is w rong? >> >> Michael >> >> _______________________________________________ >> Alsa-devel mailing list >> Alsa-devel@xxxxxxxxxxxxxxxx >> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel >> >> >> > > _______________________________________________ > Alsa-devel mailing list > Alsa-devel@xxxxxxxxxxxxxxxx > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel > > _______________________________________________ Alsa-devel mailing list Alsa-devel@xxxxxxxxxxxxxxxx http://mailman.alsa-project.org/mailman/listinfo/alsa-devel