RE: [PATCHv4 2/2] ASoC: OMAP-McBSP: ASoC interface for McBSP sidetone

2010-02-19 Thread ext-Eero.Nurkkala
> Oops, I seemed to copy Q1.14 instead of Q14.1, but isn't it still the same. > When I added some debug messages it still seemed to be corret. > > Lowest number (-32768) is represented with 16th bit '1' and the rest are > zeros, right? That is 0x8000. > -1 has all the bits set (0x) and 0 has

RE: [PATCHv4 2/2] ASoC: OMAP-McBSP: ASoC interface for McBSP sidetone

2010-02-19 Thread ext-Eero.Nurkkala
> I'm a bit confused. What do you mean by that? > > AFAICS, Q1.14 defines values [-16384.0, +16383.5], which are mapped in the > driver to integers [-32768, 32767], right? Moreover, those Q1.14 values in > registers are mapped to [-2, 2] in HW. So is there a problem somewhere? > > Cheers, Ilkka

RE: [PATCHv4 2/2] ASoC: OMAP-McBSP: ASoC interface for McBSP sidetone

2010-02-18 Thread ext-Eero.Nurkkala
> + > +static const struct snd_kcontrol_new omap_mcbsp2_st_controls[] = { > + SOC_SINGLE_EXT("McBSP2 Sidetone Switch", 1, 0, 1, 0, > + omap_mcbsp_st_get_mode, omap_mcbsp_st_put_mode), > + OMAP_MCBSP_SOC_SINGLE_S16_EXT("McBSP2 Sidetone Channel 0 Volume", > +

RE: [PATCH 7/8] ASoC: tlv320aic3x: add initial usage of regulator framework to control avdd_dac

2009-10-08 Thread ext-Eero.Nurkkala
Mark Brown wrote: >> Will this ever be revisited =) ? If so, I think there's going to be a >> jungle in finding the right spots - you need to remember the bypass >> paths also (bias is not on necessarily). > > The bias is always on when any path through the chip is on, this was > fixed in either .

RE: [RFC][PATCH] ARM: OMAP: McBSP: Use register cache

2009-09-05 Thread ext-Eero.Nurkkala
> Isn't the better way to achieve this thing, at least from the OFF mode > perspective, is to provide similar implementation for McBSP in > omap3_core_save_context () / omap3_core_restore_context(), in > file arch/arm/mach-omap2/pm34xx.c? Code for other core peripherals > is already there and we h

RE: [alsa-devel] [PATCH 11/20] OMAP: McBSP: Add link DMA mode selection

2009-08-06 Thread ext-Eero.Nurkkala
>> >> I would say the default mode for the omap34xx should be also element as >> it keeps the omap_pcm_pointer behavior the same than currently and >> avoids possible regression. > > Yes, the default mode should be the element mode in my opinion as well. > > -- > Péter Well, the element mode i

RE: [PATCH 07/20] OMAP: McBSP: Add transmit/receive threshold handler

2009-08-06 Thread ext-Eero.Nurkkala
>> >> +/** McBSP IRQSTATUS bit definitions >> / >> +#define IRQST_XRDY (1<<10) >> +#define IRQST_RRDY (1<<3) >> + >> /** McBSP WAKEUPEN bit definitions >> */ >> #define XEMPTYEOFEN 0x40

RE: [PATCH] OMAP: GPIO: Avoid generating extra IRQs

2009-08-05 Thread ext-Eero.Nurkkala
>> It is possible for GPIO IRQ lines configured with >> falling edge triggering only to get IRQs at the >> rising edge upon the exit of offmode. And vice >> versa. Prevent such IRQs to arrive by generating >> the IRQ obeying the detection scheme. > > Is the situation still the same if we temporari

RE: [PATCH] OMAP: GPIO: Avoid generating extra IRQs

2009-08-05 Thread ext-Eero.Nurkkala
>> l ^= bank->saved_datain; >> l &= bank->non_wakeup_gpios; >> - if (l) { >> + >> + /* >> + * No need to generate IRQs for the rising edge for gpio IRQs >> + * configured with falling edge only; and vice versa. >> +

RE: [PATCH 06/20] OMAP: McBSP: Use appropriate value for startup delay

2009-07-31 Thread ext-Eero.Nurkkala
Jarkko Nikula [jhnik...@gmail.com] wrote: > Are you sure this change is necessary? CLKSRG is kind of master clock > to McBSP so original stetson guessed (?) 100 us should be fine for all > serial links where bit clock is higher than 20 kHz. The McBSP / DMA stuff doesn't really work properly, when

RE: [PATCH 2/2] OMAP: McBSP: Do not enable or disable clocks on failed path

2009-03-11 Thread ext-Eero.Nurkkala
> Didn't check any deeply can clk_disable sleep in any case but anyway > there is no need to cover it with spinlock so better to not hold the > lock while disabling. > > > Jarkko Actually, is there any room for the race? I remember someone saying the clk:s have counters, so: 1. If mcbsp is "ta

RE: [PATCH 2/2] OMAP: McBSP: Do not enable or disable clocks on failed path

2009-03-10 Thread ext-Eero.Nurkkala
> Race here? See, McBSP is marked free before disabling the clocks and > thus omap_mcbsp_request can start enabling them. So should you keep > clock disabling after test for mcbsp->free as here now but mark McBSP > free only after clocks are disabled? > > I think you should send this as an separa

RE: tHigh tLow discussion (was [pacth] I2C bug fixes for L-O and L-Z)

2009-02-24 Thread ext-Eero.Nurkkala
> The problem with Eero's patch is that it changes the internal clock > (again thanks to that confusing table). You should be able to use same > for all modes. Also note that the noise filter is one internel clock > period. Currently the driver uses 19.2 MHz which exceeds the I2C spec > max. So 24

RE: tHigh tLow discussion (was [pacth] I2C bug fixes for L-O and L-Z)

2009-02-23 Thread ext-Eero.Nurkkala
> So, it might be worth considering my following proposition?" > Now, from a s/w perspective, If we would like to have it so that we can > configure tHigh and tLow based on devices, electrical characteristics on > a bus, not just speed of the bus, the current implementation would > probably need t

RE: tHigh tLow discussion (was [pacth] I2C bug fixes for L-O and L-Z)

2009-02-23 Thread ext-Eero.Nurkkala
> ;) Aye Aye I wonder if the equation you provided is based on > emperical measurement? if so would it vary based on electrical > characteristics of a platform? I mean beagleboard Vs Zoom Vs SDP > atleast have variances of i2c trace lengths and number of devices per > i2c bus.. wont the equat

RE: tHigh tLow discussion (was [pacth] I2C bug fixes for L-O and L-Z)

2009-02-23 Thread ext-Eero.Nurkkala
> But my question is this: why are we trying to a different equation > here compared to the equation in the TRM? Don't just blindly trust the TRM, all that matters is the real signal caught in the scope. That is what you want to verify. - Eero -- To unsubscribe from this list: send the line "uns

RE: tHigh tLow discussion (was [pacth] I2C bug fixes for L-O and L-Z)

2009-02-23 Thread ext-Eero.Nurkkala
> I am not entirely sure about the basis of Eero's equation: > > scll = (scl+3) * iclk > sclh = (scl+9) * iclk No, no: Exactly the opposite, + fsscll = internal_clk / (dev->speed * 2) - 3; + fssclh = internal_clk / (dev->speed * 2) - 9; means a longer