* [GIT PULL] sound fixes for 3.6-rc6
@ 2012-09-13 11:43 Takashi Iwai
2012-09-13 11:51 ` Linus Torvalds
0 siblings, 1 reply; 8+ messages in thread
From: Takashi Iwai @ 2012-09-13 11:43 UTC (permalink / raw)
To: Linus Torvalds; +Cc: linux-kernel
Linus,
The following changes since commit 2e4a263ca80a203ac6109f5932722a716c265395:
ALSA: snd-usb: fix cross-interface streaming devices (2012-08-31 21:04:53 +0200)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-linus
for you to fetch changes up to 3737e2be505d872bf2b3c1cd4151b2d2b413d7b5:
ALSA: ice1724: Use linear scale for AK4396 volume control. (2012-09-12 16:17:41 +0200)
----------------------------------------------------------------
Sound fixes for 3.6-rc6
Just a few small / trivial regression fixes at this time.
----------------------------------------------------------------
Catalin Iacob (1):
ALSA: hda_intel: add position_fix quirk for Asus K53E
Dan Carpenter (1):
ALSA: compress_core: fix open flags test in snd_compr_open()
Matteo Frigo (1):
ALSA: ice1724: Use linear scale for AK4396 volume control.
Takashi Iwai (3):
ALSA: hda - Fix missing Master volume for STAC9200/925x
ALSA: usb-audio: Fix bogus error messages for delay accounting
ALSA: hda - Fix Oops at codec reset/reconfig
sound/core/compress_offload.c | 8 +++-----
sound/pci/hda/hda_codec.c | 2 +-
sound/pci/hda/hda_intel.c | 1 +
sound/pci/hda/patch_sigmatel.c | 2 +-
sound/pci/ice1712/prodigy_hifi.c | 3 ++-
sound/usb/pcm.c | 6 ++++++
6 files changed, 14 insertions(+), 8 deletions(-)
diff --git a/sound/core/compress_offload.c b/sound/core/compress_offload.c
index ec2118d..eb60cb8 100644
--- a/sound/core/compress_offload.c
+++ b/sound/core/compress_offload.c
@@ -80,14 +80,12 @@ static int snd_compr_open(struct inode *inode, struct file *f)
int maj = imajor(inode);
int ret;
- if (f->f_flags & O_WRONLY)
+ if ((f->f_flags & O_ACCMODE) == O_WRONLY)
dirn = SND_COMPRESS_PLAYBACK;
- else if (f->f_flags & O_RDONLY)
+ else if ((f->f_flags & O_ACCMODE) == O_RDONLY)
dirn = SND_COMPRESS_CAPTURE;
- else {
- pr_err("invalid direction\n");
+ else
return -EINVAL;
- }
if (maj == snd_major)
compr = snd_lookup_minor_data(iminor(inode),
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c
index f25c24c..1c65cc5 100644
--- a/sound/pci/hda/hda_codec.c
+++ b/sound/pci/hda/hda_codec.c
@@ -2353,6 +2353,7 @@ int snd_hda_codec_reset(struct hda_codec *codec)
}
if (codec->patch_ops.free)
codec->patch_ops.free(codec);
+ memset(&codec->patch_ops, 0, sizeof(codec->patch_ops));
snd_hda_jack_tbl_clear(codec);
codec->proc_widget_hook = NULL;
codec->spec = NULL;
@@ -2368,7 +2369,6 @@ int snd_hda_codec_reset(struct hda_codec *codec)
codec->num_pcms = 0;
codec->pcm_info = NULL;
codec->preset = NULL;
- memset(&codec->patch_ops, 0, sizeof(codec->patch_ops));
codec->slave_dig_outs = NULL;
codec->spdif_status_reset = 0;
module_put(codec->owner);
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
index 60882c6..228cdf9 100644
--- a/sound/pci/hda/hda_intel.c
+++ b/sound/pci/hda/hda_intel.c
@@ -2701,6 +2701,7 @@ static struct snd_pci_quirk position_fix_list[] __devinitdata = {
SND_PCI_QUIRK(0x1043, 0x813d, "ASUS P5AD2", POS_FIX_LPIB),
SND_PCI_QUIRK(0x1043, 0x81b3, "ASUS", POS_FIX_LPIB),
SND_PCI_QUIRK(0x1043, 0x81e7, "ASUS M2V", POS_FIX_LPIB),
+ SND_PCI_QUIRK(0x1043, 0x1b43, "ASUS K53E", POS_FIX_POSBUF),
SND_PCI_QUIRK(0x104d, 0x9069, "Sony VPCS11V9E", POS_FIX_LPIB),
SND_PCI_QUIRK(0x10de, 0xcb89, "Macbook Pro 7,1", POS_FIX_LPIB),
SND_PCI_QUIRK(0x1297, 0x3166, "Shuttle", POS_FIX_LPIB),
diff --git a/sound/pci/hda/patch_sigmatel.c b/sound/pci/hda/patch_sigmatel.c
index 6f806d3..3d4722f 100644
--- a/sound/pci/hda/patch_sigmatel.c
+++ b/sound/pci/hda/patch_sigmatel.c
@@ -1075,7 +1075,7 @@ static struct snd_kcontrol_new stac_smux_mixer = {
static const char * const slave_pfxs[] = {
"Front", "Surround", "Center", "LFE", "Side",
- "Headphone", "Speaker", "IEC958",
+ "Headphone", "Speaker", "IEC958", "PCM",
NULL
};
diff --git a/sound/pci/ice1712/prodigy_hifi.c b/sound/pci/ice1712/prodigy_hifi.c
index 764cc93..075d5aa 100644
--- a/sound/pci/ice1712/prodigy_hifi.c
+++ b/sound/pci/ice1712/prodigy_hifi.c
@@ -297,6 +297,7 @@ static int ak4396_dac_vol_put(struct snd_kcontrol *kcontrol, struct snd_ctl_elem
}
static const DECLARE_TLV_DB_SCALE(db_scale_wm_dac, -12700, 100, 1);
+static const DECLARE_TLV_DB_LINEAR(ak4396_db_scale, TLV_DB_GAIN_MUTE, 0);
static struct snd_kcontrol_new prodigy_hd2_controls[] __devinitdata = {
{
@@ -307,7 +308,7 @@ static struct snd_kcontrol_new prodigy_hd2_controls[] __devinitdata = {
.info = ak4396_dac_vol_info,
.get = ak4396_dac_vol_get,
.put = ak4396_dac_vol_put,
- .tlv = { .p = db_scale_wm_dac },
+ .tlv = { .p = ak4396_db_scale },
},
};
diff --git a/sound/usb/pcm.c b/sound/usb/pcm.c
index fd5e982..f782ce1 100644
--- a/sound/usb/pcm.c
+++ b/sound/usb/pcm.c
@@ -1140,6 +1140,12 @@ static void retire_playback_urb(struct snd_usb_substream *subs,
int processed = urb->transfer_buffer_length / stride;
int est_delay;
+ /* ignore the delay accounting when procssed=0 is given, i.e.
+ * silent payloads are procssed before handling the actual data
+ */
+ if (!processed)
+ return;
+
spin_lock_irqsave(&subs->lock, flags);
est_delay = snd_usb_pcm_delay(subs, runtime->rate);
/* update delay with exact number of samples played */
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [GIT PULL] sound fixes for 3.6-rc6
2012-09-13 11:43 [GIT PULL] sound fixes for 3.6-rc6 Takashi Iwai
@ 2012-09-13 11:51 ` Linus Torvalds
2012-09-13 12:03 ` Takashi Iwai
0 siblings, 1 reply; 8+ messages in thread
From: Linus Torvalds @ 2012-09-13 11:51 UTC (permalink / raw)
To: Takashi Iwai; +Cc: linux-kernel, Junio C Hamano, Git Mailing List
On Thu, Sep 13, 2012 at 7:43 PM, Takashi Iwai <tiwai@suse.de> wrote:
> are available in the git repository at:
>
> git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-linus
*PLEASE* don't do this.
You point to a branch, but then the pull request clearly implies there
is a tag with extra information in it.
And indeed, the actual thing I should pull is not at all "for-linus",
it seems to be your "tags/sound-3.6" tag.
I don't know if this is the old "git pull-request" breakage where it
stupidly "corrects" the remote branch when it verifies the branch
name, or whether it's some other scripting problem. I think current
git versions should not mess up the tag information, if that's the
cause, but please verify.
Linus
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [GIT PULL] sound fixes for 3.6-rc6
2012-09-13 11:51 ` Linus Torvalds
@ 2012-09-13 12:03 ` Takashi Iwai
2012-09-13 12:28 ` Takashi Iwai
0 siblings, 1 reply; 8+ messages in thread
From: Takashi Iwai @ 2012-09-13 12:03 UTC (permalink / raw)
To: Linus Torvalds; +Cc: linux-kernel, Junio C Hamano, Git Mailing List
At Thu, 13 Sep 2012 19:51:14 +0800,
Linus Torvalds wrote:
>
> On Thu, Sep 13, 2012 at 7:43 PM, Takashi Iwai <tiwai@suse.de> wrote:
> > are available in the git repository at:
> >
> > git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-linus
>
> *PLEASE* don't do this.
>
> You point to a branch, but then the pull request clearly implies there
> is a tag with extra information in it.
>
> And indeed, the actual thing I should pull is not at all "for-linus",
> it seems to be your "tags/sound-3.6" tag.
>
> I don't know if this is the old "git pull-request" breakage where it
> stupidly "corrects" the remote branch when it verifies the branch
> name, or whether it's some other scripting problem. I think current
> git versions should not mess up the tag information, if that's the
> cause, but please verify.
Oops, yes, it's indeed intended to be tags/sound-3.6.
So please pull from:
git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-3.6
FWIW, it was an output from git-pull-request, which fell back to the
equivalent branch. Usually I check it manually but I forgot it at
this time just before going to a meeting.
This was with git 1.7.11.5. I'll check whether this still happens
with 1.7.12.
Takashi
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [GIT PULL] sound fixes for 3.6-rc6
2012-09-13 12:03 ` Takashi Iwai
@ 2012-09-13 12:28 ` Takashi Iwai
2012-09-13 13:03 ` Jeff King
0 siblings, 1 reply; 8+ messages in thread
From: Takashi Iwai @ 2012-09-13 12:28 UTC (permalink / raw)
To: Linus Torvalds; +Cc: linux-kernel, Junio C Hamano, Git Mailing List
At Thu, 13 Sep 2012 14:03:16 +0200,
Takashi Iwai wrote:
>
> At Thu, 13 Sep 2012 19:51:14 +0800,
> Linus Torvalds wrote:
> >
> > On Thu, Sep 13, 2012 at 7:43 PM, Takashi Iwai <tiwai@suse.de> wrote:
> > > are available in the git repository at:
> > >
> > > git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git for-linus
> >
> > *PLEASE* don't do this.
> >
> > You point to a branch, but then the pull request clearly implies there
> > is a tag with extra information in it.
> >
> > And indeed, the actual thing I should pull is not at all "for-linus",
> > it seems to be your "tags/sound-3.6" tag.
> >
> > I don't know if this is the old "git pull-request" breakage where it
> > stupidly "corrects" the remote branch when it verifies the branch
> > name, or whether it's some other scripting problem. I think current
> > git versions should not mess up the tag information, if that's the
> > cause, but please verify.
>
> Oops, yes, it's indeed intended to be tags/sound-3.6.
> So please pull from:
> git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git tags/sound-3.6
>
>
> FWIW, it was an output from git-pull-request, which fell back to the
> equivalent branch. Usually I check it manually but I forgot it at
> this time just before going to a meeting.
>
> This was with git 1.7.11.5. I'll check whether this still happens
> with 1.7.12.
The same problem still happens with git 1.7.12.
This is rather annoying than useful.
Takashi
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [GIT PULL] sound fixes for 3.6-rc6
2012-09-13 12:28 ` Takashi Iwai
@ 2012-09-13 13:03 ` Jeff King
2012-09-13 13:25 ` Takashi Iwai
0 siblings, 1 reply; 8+ messages in thread
From: Jeff King @ 2012-09-13 13:03 UTC (permalink / raw)
To: Takashi Iwai
Cc: Linus Torvalds, linux-kernel, Junio C Hamano, Git Mailing List
On Thu, Sep 13, 2012 at 02:28:51PM +0200, Takashi Iwai wrote:
> > FWIW, it was an output from git-pull-request, which fell back to the
> > equivalent branch. Usually I check it manually but I forgot it at
> > this time just before going to a meeting.
> >
> > This was with git 1.7.11.5. I'll check whether this still happens
> > with 1.7.12.
>
> The same problem still happens with git 1.7.12.
> This is rather annoying than useful.
I can't reproduce here. What is your exact request-pull invocation? Is
request-pull showing a warning like:
warn: You locally have sound-3.6 but it does not (yet)
warn: appear to be at git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git
warn: Do you want to push it there, perhaps?
(it should do so since v1.7.11.2). Maybe we need to make it possible to
bump that warning to a fatal error?
-Peff
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [GIT PULL] sound fixes for 3.6-rc6
2012-09-13 13:03 ` Jeff King
@ 2012-09-13 13:25 ` Takashi Iwai
2012-09-13 15:14 ` Junio C Hamano
0 siblings, 1 reply; 8+ messages in thread
From: Takashi Iwai @ 2012-09-13 13:25 UTC (permalink / raw)
To: Jeff King; +Cc: Linus Torvalds, linux-kernel, Junio C Hamano, Git Mailing List
At Thu, 13 Sep 2012 09:03:44 -0400,
Jeff King wrote:
>
> On Thu, Sep 13, 2012 at 02:28:51PM +0200, Takashi Iwai wrote:
>
> > > FWIW, it was an output from git-pull-request, which fell back to the
> > > equivalent branch. Usually I check it manually but I forgot it at
> > > this time just before going to a meeting.
> > >
> > > This was with git 1.7.11.5. I'll check whether this still happens
> > > with 1.7.12.
> >
> > The same problem still happens with git 1.7.12.
> > This is rather annoying than useful.
>
> I can't reproduce here. What is your exact request-pull invocation? Is
> request-pull showing a warning like:
>
> warn: You locally have sound-3.6 but it does not (yet)
> warn: appear to be at git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git
> warn: Do you want to push it there, perhaps?
Hm, it looks like the check is performed only for tag objects.
In the example below, no warning appears:
% git tag mytest for-next
% git request-pull mytest~ git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git mytest
With an annotated or a signed tag, git seems giving a warning like
above, indeed. So my test seemed wrong. Sorry for the noise.
In the previous case, I don't know what really screwed up, since it
was against a signed tag. Maybe I overlooked the warning as I'm
redirecting the output to a file.
> (it should do so since v1.7.11.2). Maybe we need to make it possible to
> bump that warning to a fatal error?
Yes, please! It's easily overlooked.
Better to be "strict but correct" than "friendly but wrong".
Just give an option to ignore the error if people really want to
ignore it.
thanks,
Takashi
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [GIT PULL] sound fixes for 3.6-rc6
2012-09-13 13:25 ` Takashi Iwai
@ 2012-09-13 15:14 ` Junio C Hamano
2012-09-13 15:26 ` Takashi Iwai
0 siblings, 1 reply; 8+ messages in thread
From: Junio C Hamano @ 2012-09-13 15:14 UTC (permalink / raw)
To: Takashi Iwai; +Cc: Jeff King, Linus Torvalds, linux-kernel, Git Mailing List
Takashi Iwai <tiwai@suse.de> writes:
>> I can't reproduce here. What is your exact request-pull invocation?
This question was not answerd. Did you ask request-pull to ask for
a branch to be pulled, or did you ask it to ask for the tag to be
pulled?
If the former, I would have say it is a pebcak. Linus asked you to
ask a signed tag to be pulled, and you want to have the tag to be
pulled, but if you do not give "git request-pull" the tag but a
branch that the tag points at, the command does not have a good
reason to countermand your (apparent) wish that the branch is what
is to be pulled.
>> Is request-pull showing a warning like:
>>
>> warn: You locally have sound-3.6 but it does not (yet)
>> warn: appear to be at git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git
>> warn: Do you want to push it there, perhaps?
>
> Hm, it looks like the check is performed only for tag objects.
> In the example below, no warning appears:
> % git tag mytest for-next
> % git request-pull mytest~ git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git mytest
>
> With an annotated or a signed tag, git seems giving a warning like
> above, indeed. So my test seemed wrong. Sorry for the noise.
OK.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [GIT PULL] sound fixes for 3.6-rc6
2012-09-13 15:14 ` Junio C Hamano
@ 2012-09-13 15:26 ` Takashi Iwai
0 siblings, 0 replies; 8+ messages in thread
From: Takashi Iwai @ 2012-09-13 15:26 UTC (permalink / raw)
To: Junio C Hamano; +Cc: Jeff King, Linus Torvalds, linux-kernel, Git Mailing List
At Thu, 13 Sep 2012 08:14:27 -0700,
Junio C Hamano wrote:
>
> Takashi Iwai <tiwai@suse.de> writes:
>
> >> I can't reproduce here. What is your exact request-pull invocation?
>
> This question was not answerd.
It was (a sort of), but let me clarify again.
In my original pull request, I did git-request-pull for a signed tag,
but I apparently overlooked the warning.
Then the next test with git 1.7.12, I did it using no annotated/signed
tag, so git-request-pull didn't complain it. When I do it with a
signed tag, it starts warning.
> Did you ask request-pull to ask for
> a branch to be pulled, or did you ask it to ask for the tag to be
> pulled?
>
> If the former, I would have say it is a pebcak. Linus asked you to
> ask a signed tag to be pulled, and you want to have the tag to be
> pulled, but if you do not give "git request-pull" the tag but a
> branch that the tag points at, the command does not have a good
> reason to countermand your (apparent) wish that the branch is what
> is to be pulled.
Yeah I can understand that. But the problem is that a warning is
moderate so it can be so easily overlooked. It'd be user- (or
subsystem-maintainer-) friendly if this automatic conversion can be
suppressed.
Takashi
> >> Is request-pull showing a warning like:
> >>
> >> warn: You locally have sound-3.6 but it does not (yet)
> >> warn: appear to be at git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git
> >> warn: Do you want to push it there, perhaps?
> >
> > Hm, it looks like the check is performed only for tag objects.
> > In the example below, no warning appears:
> > % git tag mytest for-next
> > % git request-pull mytest~ git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound.git mytest
> >
> > With an annotated or a signed tag, git seems giving a warning like
> > above, indeed. So my test seemed wrong. Sorry for the noise.
>
> OK.
>
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2012-09-13 15:26 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-13 11:43 [GIT PULL] sound fixes for 3.6-rc6 Takashi Iwai
2012-09-13 11:51 ` Linus Torvalds
2012-09-13 12:03 ` Takashi Iwai
2012-09-13 12:28 ` Takashi Iwai
2012-09-13 13:03 ` Jeff King
2012-09-13 13:25 ` Takashi Iwai
2012-09-13 15:14 ` Junio C Hamano
2012-09-13 15:26 ` Takashi Iwai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®