Re: [PATCH v2 0/1] *** SUBJECT HERE ***

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

 



________________________________________
From: alsa-devel-bounces@xxxxxxxxxxxxxxxx [alsa-devel-bounces@xxxxxxxxxxxxxxxx] On Behalf Of ext Mark Brown [broonie@xxxxxxxxxxxxxxxxxxxxxxxxxxx]
Sent: Thursday, July 22, 2010 2:02 PM
To: Aaltonen Matti.J (Nokia-MS/Tampere)
Cc: alsa-devel@xxxxxxxxxxxxxxxx; Ujfalusi Peter (Nokia-MS/Tampere); lrg@xxxxxxxxxxxxxxx
Subject: Re:  [PATCH v2 0/1] *** SUBJECT HERE ***

>On Thu, Jul 22, 2010 at 01:18:32PM +0200, matti.j.aaltonen@xxxxxxxxx wrote:
>> From: ext Mark Brown [broonie@xxxxxxxxxxxxxxxxxxxxxxxxxxx]
>
>> OK, sorry... The problem in a sense is that the codec supports three
>> different modes: BT, FM RX and FM TX. All digital audio goes over a
>> single McBSP connection. The BT part handles the audio routing, which
>> is completely external to the radio driver and this codec. And the user
>> of the codec is in principle responsible for keeping the codec mode in
>> sync with the route setting. And the soc_card driver needs to know the
>> setting also to do its thing.
>
>Which is...
>
>You've still not provided any information about what use this will be
>put to.

Yes, sorry I didn't get your point. I guess I tought that it's irrelevant, what
the soc_card driver actually does. But it actually does this:

	switch (wl1273_get_codec_mode(codec)) {
	case WL1273_MODE_FM_RX:
	case WL1273_MODE_FM_TX:
		fmt =	SND_SOC_DAIFMT_I2S |
			SND_SOC_DAIFMT_NB_NF |
			SND_SOC_DAIFMT_CBM_CFM;

		break;
	case WL1273_MODE_BT:
		fmt =	SND_SOC_DAIFMT_DSP_A |
			SND_SOC_DAIFMT_IB_NF |
			SND_SOC_DAIFMT_CBM_CFM;

		break;
	default:
		return -EINVAL;
	}

	r = snd_soc_dai_set_fmt(cpu_dai, fmt);

Cheers,
Matti A.






_______________________________________________
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


[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux