[PATCH 2/2] ASoC: hdmi-codec: add channel mapping control

2016-12-13 Thread Takashi Sakamoto
On 2016年12月13日 22:23, Takashi Sakamoto wrote: > Hi Arnaud, >>> This table is invariant in lifetime of the storage object, as well. >>> Let's put into .rodata section, too. >>> >> This table is updated in hdmi_codec_cea_init_channel_alloc so can not be >> constant. In theory i could declare al

[PATCH 2/2] ASoC: hdmi-codec: add channel mapping control

2016-12-13 Thread Takashi Sakamoto
Hi Arnaud, On Dec 12 2016 22:46, Arnaud Pouliquen wrote: > On 12/12/2016 01:03 PM, Takashi Sakamoto wrote: >> On 2016年12月12日 18:38, Arnaud Pouliquen wrote: > + */ > +static struct hdmi_codec_cea_spk_alloc hdmi_codec_channel_alloc[] = { > +/* channel: 7

[PATCH 2/2] ASoC: hdmi-codec: add channel mapping control

2016-12-13 Thread Arnaud Pouliquen
On 12/13/2016 02:58 PM, Takashi Sakamoto wrote: > On 2016年12月13日 22:23, Takashi Sakamoto wrote: >> Hi Arnaud, This table is invariant in lifetime of the storage object, as well. Let's put into .rodata section, too. >>> This table is updated in hdmi_codec_cea_init_channel_allo

[PATCH 2/2] ASoC: hdmi-codec: add channel mapping control

2016-12-12 Thread Takashi Sakamoto
On Dec 12 2016 21:55, Takashi Iwai wrote: > On Mon, 12 Dec 2016 13:12:16 +0100, > Takashi Sakamoto wrote: >> >> On Dec 12 2016 18:54, Takashi Iwai wrote: >> +enum hdmi_codec_cea_spk_placement { >> +FL = (1 << 0),/* Front Left */ >> +FC = (1 << 1),

[PATCH 2/2] ASoC: hdmi-codec: add channel mapping control

2016-12-12 Thread Takashi Sakamoto
On Dec 12 2016 18:54, Takashi Iwai wrote: +enum hdmi_codec_cea_spk_placement { + FL = (1 << 0),/* Front Left */ + FC = (1 << 1),/* Front Center */ + FR = (1 << 2),/* Front Right */ + FLC = (1 << 3),/* Fro

[PATCH 2/2] ASoC: hdmi-codec: add channel mapping control

2016-12-12 Thread Takashi Sakamoto
On 2016年12月12日 18:38, Arnaud Pouliquen wrote: >>> + */ >>> +static struct hdmi_codec_cea_spk_alloc hdmi_codec_channel_alloc[] = { >>> +/* channel: 7 6543 210 */ >>> +{ .ca_index = 0x00, .speakers = { 0,0, 0, 0, 0,0, FR, >>>

[PATCH 2/2] ASoC: hdmi-codec: add channel mapping control

2016-12-12 Thread Arnaud Pouliquen
static const struct snd_kcontrol_new hdmi_controls[] = { { .access = SNDRV_CTL_ELEM_ACCESS_READ | @@ -79,6 +400,17 @@ static const struct snd_kcontrol_new hdmi_controls[] = { .info = hdmi_eld_ctl_info, .get = hdmi_eld_ctl_get,

[PATCH 2/2] ASoC: hdmi-codec: add channel mapping control

2016-12-12 Thread Arnaud Pouliquen
On 12/12/2016 03:05 PM, Takashi Sakamoto wrote: > On Dec 12 2016 21:55, Takashi Iwai wrote: >> On Mon, 12 Dec 2016 13:12:16 +0100, >> Takashi Sakamoto wrote: >>> >>> On Dec 12 2016 18:54, Takashi Iwai wrote: >>> +enum hdmi_codec_cea_spk_placement { >>> + FL = (1 << 0),/* F

[PATCH 2/2] ASoC: hdmi-codec: add channel mapping control

2016-12-12 Thread Arnaud Pouliquen
On 12/12/2016 01:03 PM, Takashi Sakamoto wrote: > On 2016年12月12日 18:38, Arnaud Pouliquen wrote: + */ +static struct hdmi_codec_cea_spk_alloc hdmi_codec_channel_alloc[] = { +/* channel: 7 6543 21 0 */ +{ .ca_ind

[PATCH 2/2] ASoC: hdmi-codec: add channel mapping control

2016-12-12 Thread Takashi Iwai
On Mon, 12 Dec 2016 13:12:16 +0100, Takashi Sakamoto wrote: > > On Dec 12 2016 18:54, Takashi Iwai wrote: > +enum hdmi_codec_cea_spk_placement { > +FL = (1 << 0),/* Front Left */ > +FC = (1 << 1),/* Front Center */ > +

[PATCH 2/2] ASoC: hdmi-codec: add channel mapping control

2016-12-12 Thread Takashi Iwai
On Mon, 12 Dec 2016 10:38:45 +0100, Arnaud Pouliquen wrote: > > > > On 12/11/2016 07:09 AM, Takashi Sakamoto wrote: > > On Dec 9 2016 01:37, Arnaud Pouliquen wrote: > >> Add user interface to provide channel mapping. > >> In a first step this control is read only. > >> > >> As TLV type, the cont

[PATCH 2/2] ASoC: hdmi-codec: add channel mapping control

2016-12-12 Thread Arnaud Pouliquen
On 12/11/2016 07:09 AM, Takashi Sakamoto wrote: > On Dec 9 2016 01:37, Arnaud Pouliquen wrote: >> Add user interface to provide channel mapping. >> In a first step this control is read only. >> >> As TLV type, the control provides all configurations available for >> HDMI sink(ELD), and provides c

[PATCH 2/2] ASoC: hdmi-codec: add channel mapping control

2016-12-11 Thread Takashi Sakamoto
On Dec 9 2016 01:37, Arnaud Pouliquen wrote: > Add user interface to provide channel mapping. > In a first step this control is read only. > > As TLV type, the control provides all configurations available for > HDMI sink(ELD), and provides current channel mapping selected by codec > based on ELD a

[PATCH 2/2] ASoC: hdmi-codec: add channel mapping control

2016-12-08 Thread Arnaud Pouliquen
Add user interface to provide channel mapping. In a first step this control is read only. As TLV type, the control provides all configurations available for HDMI sink(ELD), and provides current channel mapping selected by codec based on ELD and number of channels specified by user on open. When co