> > >> When PulseAudio boots up it initializes AMIC ( > > Headset ) only and i can record using it. > > Now, the problem starts. When i plugged Headset the Port switching done > > from AMIC to DMIC and after sometime i got overrun without recording > > anything. > > >> You seem to be saying that AMIC is the same thing as Headset > > >> *Yes AMIC is detected as HeadSet when executed pulseaudio* > > >> but then you say that when the headset is plugged in, the port changes > > >> from AMIC > > to DMIC, which doesn't make sense. > > >> * I missed one thing, when i plugged out Headset from target board, > > pulseaudio switches port from AMIC to DMIC* > > * which i think should initializes ( hw params ) DMIC first as done for > > AMIC??* > > >> No, hw params are not reconfigured. Only mixer settings are changed > > according to the UCM configuration. > > >> My analysis:- PulseAudio should initialize both AMIC and DMIC ( setting > > hw params and other stuff ) but only AMIC initialized. Only port switching > > should not have been happened as no hw params setup for DMIC. Port > > switched but PulseAudio is expecting I/P for AMIC. Am i right here? > > >> Hw params are set when opening the PCM device. If AMIC and DMIC are on > > the same PCM device, there's no need to reconfigure the hw params (or > > if the hardware requires such reconfiguration, pulseaudio certainly > > won't do it). It's a bit unclear unclear whether AMIC and DMIC are on > > same or different PCM devices, but if they are two ports on the same > > sink, then they are on the same PCM device. > > >> If it is so then DMIC will be accepting HW params which were set for > > AMIC ( HeadSet ), but then there will be difference between the period > > size, buffer size passed to DMIC sink which **again can cause problem? * > > >> Why would there be a difference in the buffer parameters? Since we > > don't reconfigure the hw params, it's clear that there will be no > > difference. > > >> If you actually want different buffering parameters depending on the > > active port, that's not supported in pulseaudio. > > * Is there any workaround to close device/stream and open new device/stream when switching from AMIC to DMIC??* * I mean, When AMIC plugged out the device/stream should be closed and opens new device/stream for DMIC as pulseaudio did for AMIC. Instead of switching only port, DMIC Initailzation happens as done for AMIC* > >> Regards > > Nishit > -- > > Tanu > > _______________________________________________ > > pulseaudio-discuss mailing list > > pulseaudio-discuss at lists.freedesktop.org > > https://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.freedesktop.org/archives/pulseaudio-discuss/attachments/20160919/c96004f2/attachment-0001.html>